Possible Duplicate:
How to change a TextView's style at runtime
<ListView
android:id="@+id/listproducts"
android:layout_below="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="#C8C8C8"
android:dividerHeight="1dip" >
</ListView>
This is the code for the list i'm using. And below is the code for the text i want in my list.
<TextView
android:id="@+id/productname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginLeft="10dip"
android:layout_marginTop="25dip"
android:layout_marginBottom="10dip"
android:selectAllOnFocus="true"
/>
The ' android:selectAllOnFocus ' doesn't seem to work with textview, it does for a button. what should i do ?