android - set the textsize of a listview -


i have custom listview , have defined style it. not able change textsize of items on listview. trying change through layout can dynamically change depending on device.

styles.xml

<style parent="@android:attr/listviewstyle" name="liststyle">     <item name="android:background">@android:color/white</item>     <item name="android:divider">@drawable/divider</item>     <item name="android:textsize">26dp</item>     <item name="android:textstyle">bold</item> </style> 

xml layout

<tvlist style="liststyle"      android:id="@+id/mainview"      android:layout_height="300dp"     android:layout_width="wrap_content" /> 

i know can use settextsize in code changing font size . want change applying styles. suggestions on how go changing it?

thanks

the size of text within list view defined listview's adapter's item resource. if create custom view list view item , define textview, can change size of font within text view, define size of text in each item within list.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -