I’m looking to implement a font picker for my Android app. I already found some nice color pickers, can anybody point me to an example of a font picker that I can pop into my app?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It should be pretty simple to make one using a ListView. Each row in the list could simply be a TextView where the text is set to the name of the font and the typeface used is the actual font.
There doesn’t need to be anything special about the listview. A simple listview with an ArrayAdapter should be sufficient. Using an adapter like this should work.
NOTE this code isn’t meant to compile rather to illustrate what you would need to do to solve the problem. It should be enough though to get you started.
Also you can look at this:
http://www.netmite.com/android/mydroid/1.0/development/apps/FontLab/src/com/android/fontlab/FontPicker.java