简体   繁体   中英

Allow user to set font size, font color, background color for android app

I want to allow user to choose font size/color, background color for whole app.

For that, I am getting his preferred values and saving them in default shared preferences provided by android.

But what can be best way to use these values for complete app ?

I tried using it on each activity basis. this approach is mentioned in not-able-to-set-theme-to-android-activity which is not working.

Request you all to pls guide.

Please try it.

textview.setTextAppearance(mContext, R.style.boldText);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM