I have a textView with text=”Address”. In Android ICS, i sometimes see it in my screen like
Addres
s
and not in the same line
Address
How can i fix it?There is no problem with the available space in the screen..Thanks
This is the xml for the textView:
<TextView android:id="@+id/text_title"
android:textColor="#780000"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="26px"
android:textStyle="bold"
android:layout_gravity="center"
android:layout_marginLeft="20px"
/>
//use always “sp” for font and rest as “dp”
//here you are using wrap content then position is not enough to display you text content
try
android:layout_weight="1"or change you android:layout_width=”fill_parent”give 16sp default is 14sp.
if your running ICS i.e xhdpi then it will automatically adjust to