Infos sur Layout d'application Foursquare
-
28-09-2019 - |
Question
regard
à ceci: http://www.eurodroid.com/pics/android_foursquare_update_1.jpg
Quelqu'un sait comment est structuré cette mise en page? Est-ce une mise en page 3 onglet, mais le contenu de cet onglet? Est une table, un ListAdapter, ce qui est?
Merci beaucoup.
La solution
Le contenu de cet onglet est spécifiquement juste un ListView personnalisé. Comme l'a souligné Bryan, vous pouvez parcourir le code source pour voir les mises en page XML exactes qu'ils utilisent.
Autres conseils
L'application Foursquare pour Android est open source. Je crois que ce que vous recherchez est leur main_activity.xml :
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<!-- Background color should be the last value in the selected tab gradient. -->
<LinearLayout
android:id="@+id/tabBackground"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="0dip"
android:background="#4d4d4d">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<!-- A paddingTop of zero will remove the strip below the tabs. -->
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingTop="5dip" />
</LinearLayout>
</TabHost>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow