سؤال

It's a Setting Screenshot of Honeycomb(new users aren't allowed to post images...) I think it is implemented by using ListFragment, but is it just using Selector?

Because it seems to me that it's a basic application within Honeycomb, I'm thinking that android will support that particular layout... How will i need to implement this?

هل كانت مفيدة؟

المحلول

What you posted is a settings display implemented using fragments. Look in your SDK directory for /android-13/ApiDemos/src/com/example/android/apis/preference. Note that depending on what version of Honeycomb you are using the '13' may be '11', '12','13'. Specifically what you are looking for is is the PreferenceWithHeaders.java file. The headers are the list you see on the left, everything else is fragment preferences.

[EDIT] In light of the comments below, perhaps you should examine how PreferenceActivity builds its Lists. There should be no reason why you cant extract the information you need from this source file (/android-sdks/sources/android-13/android/preference/PreferenceActivity) to see how it builds the lists.

نصائح أخرى

I think I understand you now. There are no hard standards regarding the UI design, however there are definite suggestions, most if not all of which exist to improve the user experience by ensuring that different pieces of software behave similarly so that the user does not have to deal with learning new UI quirks for each new application. See the Android UI Guidelines here for more details. I'm sorry if I am still misunderstanding your question.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top