android - Does Custom PreferenceActivity Need To Define List -


does custom preferenceactivity need define list?

if not define list part of content associated custom preferenceactivity, following runtimeexception:

your content must have listview id attribute 'android.r.id.list'

i trying create custom preferenceactivity shows 2 lists:

  1. one list adds selections other list
  2. one list allows user move items or down, or delete them (probably context menu)

what "preferred" way of doing this?

thanks, wts

preferenceactivity extends listactivity, assume needs list.

when don't understand things preferred way use source® : preferenceactivity

edited:

i'd take approach:

  1. copy preferenceactivity new class.

  2. create own layout activity (take @ listactivity docs). add second listview it.

  3. make sure works original preferenceactivity.

  4. start adding code second listview.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -