I have problem in resizing the text view .
I have a Layout like this with below components
ImageView| TextView | ImageView
placed in relativelayout(horizontal)
and each one width is wrap content and height is fill parent.
PROBLEM
I have a text like this "My name","My name is xyzmnop"
now, i have fixed the TextView
size to 15sp, so what is happening is in larger devices since Textviews width increases the text "My name is xyzmnop" will fit but in smaller devices since the width is small it will spill out to second line. But i want it to be in same line, as I have the flexibility to decrease the size of the text if the text is lengthy.
please help me with this problem.
i have seen this
- Android TextView doesn't resize after changing text size
- Android EditText Resize Programatically
- Resizing TextView does not shrink its height on Android 3.1
EDIT:
I have also added setSingleLine = "true"; in my xml