xml - Android textview not fit for all the screen -


i developed 1 of application , facing problem show in nexus7 when viewing other device screens text view not fitting want screen same nexus7. can know better solution please. unfortunately don't have enough reputation cant post screenshot here xml code

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"  android:layout_gravity="center" android:background="@color/white">   <relativelayout  android:layout_width="match_parent"  android:layout_height="match_parent"  android:gravity="center"  android:paddingbottom="16dp"  android:paddingleft="64dp"  android:paddingright="64dp"  android:paddingtop="16dp" >   <imageview     android:id="@+id/pointer"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_gravity="center"     android:layout_centerinparent="true"     android:src="@drawable/point" />   </relativelayout>     <relativelayout  android:layout_width="match_parent"  android:layout_height="match_parent"  android:gravity="bottom"  android:paddingbottom="16dp"  android:paddingleft="64dp"  android:paddingright="64dp"  android:paddingtop="16dp" >          <textview             android:id="@+id/name2"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentbottom="true"             android:layout_centerhorizontal="true"             android:layout_marginbottom="97dp"             android:text="@string/numberusers"             android:textcolor="@color/no_users"             android:textsize="30sp"             android:textstyle="bold" />          <textview             android:id="@+id/name"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparenttop="true"             android:layout_centerhorizontal="true"             android:layout_margintop="19dp"             android:text="@string/number"             android:textcolor="@color/no_users"             android:textsize="30sp"             android:textstyle="bold" />   <relativelayout      android:layout_width="fill_parent"      android:layout_height="wrap_content"      android:gravity="center"      android:paddingbottom="16dp"      android:paddingleft="64dp"      android:paddingright="64dp"      android:paddingtop="355dp" >          <listview             android:id="@android:id/list"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_centerhorizontal="true"             android:layout_gravity="center_horizontal"             android:clickable="false" >          </listview>       </relativelayout>      </relativelayout>    </relativelayout> 

i m not sure remove relative layout , use linear layout more better relative


Comments