How to programmatically set maxLength in Android TextView?
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 … Read more
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 … Read more
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 … Read more
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 … Read more
I want to specify my own text size in my application, but I am having a problem doing this. When I change the … Read more
As the title says, I want to know is it possible to achieve two different colored characters in a single textview element. 20 … Read more
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” … Read more
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 … Read more
Ran the new Lint tool against my code. It came up with a lot of good suggestions, but this one I cannot understand. … Read more