I would like to programmatically set maxLength property of TextView as I don’t want to hard code it in the layout. I can’t see any set method related to...
Is there a way to bold the text in a TextView via XML? <TextView android:textSize="12dip" android:textAppearance="bold" -> ?? </TextView> Thanks 6 Answers 6
I have a TextView and I want to add a bullet symbol in my text through XML. Is it possible? 10 Answers 10
I’m measuring text using Paint.getTextBounds(), since I’m interested in getting both the height and width of the text to be rendered. However, the actual text rendered is always a...
Can this attribute be changed dynamically in Java code? android:layout_marginRight I have a TextView, that has to change its position some pixels to the left dynamically. How to do...
I want to specify my own text size in my application, but I am having a problem doing this. When I change the font size in the device settings,...
As the title says, I want to know is it possible to achieve two different colored characters in a single textview element. 20 Answers 20
I want a simple TextView to behave the way simple_list_item_1 in a ListView does. Here’s the XML: <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="fill_parent" android:gravity="center" android:focusable="true" android:minHeight="?android:attr/listPreferredItemHeight" android:textAppearance="?android:attr/textAppearanceLarge" android:background="@android:drawable/list_selector_background" /> Everything works...
I have some fixed strings inside my strings.xml, something like: <resources> <string name="somestring"> <B>Title</B><BR/> Content </string> </resources> and in my layout I’ve got a TextView which I’d like to...
How do I use a compound drawable instead of a LinearLayout that contains an ImageView and a TextView
Ran the new Lint tool against my code. It came up with a lot of good suggestions, but this one I cannot understand. This tag and its children can...