java - Android TextView does not work properly in HTC NEW ONE -


android textview not show correctly in htc new 1 following: right word truncated ( in htc new 1 )

enter image description here

my xml code following:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingleft="5dp" android:paddingright="5dp" android:paddingtop="3dp" android:paddingbottom="3dp" android:background="@layout/date_bar"> <relativelayout android:layout_width="fill_parent"     android:layout_height="wrap_content" android:paddingleft="5dp"     android:paddingright="5dp" android:paddingtop="4dp" android:paddingbottom="5dp"     android:background="@layout/round_corner">      <imageview android:id="@+id/left_arrow" android:visibility="gone"         android:scaletype="fitcenter" android:layout_height="wrap_content"         android:layout_width="14dp" android:src="@drawable/arrowleft"         android:layout_alignparentleft="true" android:layout_centervertical="true"         android:paddingright="3dp" />     <imageview android:id="@+id/right_arrow" android:visibility="gone"         android:scaletype="fitcenter" android:layout_height="wrap_content"         android:layout_width="14dp" android:src="@drawable/arrowright"         android:layout_alignparentright="true" android:layout_centervertical="true"         android:paddingleft="3dp" />      <imageview android:id="@+id/summary_page_battery"         android:layout_toleftof="@id/right_arrow" android:scaletype="fitcenter"         android:adjustviewbounds="true" android:visibility="visible"         android:layout_height="80sp" android:layout_width="wrap_content"         android:layout_alignwithparentifmissing="true" />      <textview android:id="@+id/summary_page_title" style="@style/summarypagetitlestyle"         android:layout_width="wrap_content" android:layout_height="wrap_content"         android:layout_alignparenttop="true" android:layout_torightof="@id/left_arrow" />     <textview android:id="@+id/summary_page_date" style="@style/summarypagetitlestyle"         android:layout_width="wrap_content" android:layout_height="wrap_content"         android:layout_alignparenttop="true"         android:gravity="right"         android:singleline="true"         android:lines="1"          android:layout_toleftof="@id/summary_page_battery"         android:layout_torightof="@id/summary_page_title"         android:layout_alignwithparentifmissing="true" />      <textview android:id="@+id/summary_page_item1_label" style="@style/summarypageitemnormalstyle"         android:layout_width="wrap_content" android:layout_height="wrap_content"         android:singleline="true" android:ellipsize="end"         android:layout_torightof="@id/left_arrow" android:layout_below="@id/summary_page_date" />     <textview android:id="@+id/summary_page_item1_content"         android:layout_alignwithparentifmissing="true" android:gravity="right"         android:layout_height="wrap_content" android:layout_width="wrap_content"         android:layout_below="@id/summary_page_date" android:paddingleft="8dp"         android:singleline="true" android:ellipsize="middle"         android:layout_toleftof="@id/summary_page_battery"         android:layout_torightof="@id/summary_page_item1_label" />      <textview android:id="@+id/summary_page_item2_label" style="@style/summarypageitemnormalstyle"         android:layout_width="wrap_content" android:layout_height="wrap_content"         android:singleline="true" android:ellipsize="end"         android:layout_torightof="@id/left_arrow" android:layout_below="@id/summary_page_item1_label" />     <textview android:id="@+id/summary_page_item2_content"         android:gravity="right" android:layout_alignwithparentifmissing="true"         android:layout_width="wrap_content" android:layout_height="wrap_content"         android:layout_toleftof="@id/summary_page_battery"         android:layout_below="@id/summary_page_item1_content"         android:paddingleft="8dp" android:singleline="true"         android:ellipsize="middle" android:layout_torightof="@id/summary_page_item2_label" />      <textview android:id="@+id/summary_page_item3_label" style="@style/summarypageitemnormalstyle"         android:layout_width="wrap_content" android:layout_height="wrap_content"         android:singleline="true" android:ellipsize="end"         android:layout_torightof="@id/left_arrow" android:layout_below="@id/summary_page_item2_label" />     <textview android:id="@+id/summary_page_item3_content"         android:paddingleft="8dp" android:layout_alignwithparentifmissing="true"         android:layout_width="wrap_content" android:layout_height="wrap_content"         android:layout_toleftof="@id/summary_page_battery"         android:layout_below="@id/summary_page_item2_content"         android:gravity="right" android:singleline="true" android:ellipsize="middle"         android:layout_torightof="@id/summary_page_item3_label" /> </relativelayout> </relativelayout> 

what's wrong code ? have try on phone , various simulators. work properly. don't know how solve it

pay attention paddingright and/or marginright of textviews on left or marginleft and/or paddingleft of imageview


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -