Text size within an PreferenceScreen

后端 未结 2 736
半阙折子戏
半阙折子戏 2021-02-10 08:52

I have xml file that defines some preference screens like the following example



        
2条回答
  •  萌比男神i
    2021-02-10 09:20

    You can make a TextView layout xml that looks something like this:

    
    

    and set the layout of your preference category in your preferences.xml like this:

    
    

    As long as the TextView has the id @+android:id/title you can make the layout look however you want. There is also a way to do this with styles that I haven't quite figured out.

提交回复
热议问题