xml - Android - Is it possible to change a property specifically for each ListPreference entry? -


i have ordinary android listpreference defined in code -

<listpreference         android:title="font"         android:summary="choose font of reader"         android:key="fontlist"         android:entries="@array/fonts"         android:entryvalues="@array/fontvalues">      </listpreference> 

it gives list of couple of different font types user can pick from, nothing special. wondering is, there way set each list item's font font displays? nice feature allow user see have pick before having test out.

i can't see obvious way of doing it, or @ least way wouldn't destroy nice default ui.

any appreciated.

the best way extend listpreference class , implement own preference. memory think need override oncreatedialogview, onbinddialogview, onsetinitialvalue , ondialogclosed methods. best place @ the list preference page on developer.android.com


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -