سؤال

انظر إلى هذا:http://www.eurodroid.com/pics/android_foursquare_update_1.jpg

شخص ما يعرف كيف يتم تنظيم هذا التصميم؟ هل تخطيط TAB 3 ، ولكن محتوى علامة التبويب هذه؟ هو جدول ، listadapter ، ما هو؟

شكرا جزيلا.

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

المحلول

إن محتوى علامة التبويب هذه على وجه التحديد هو مجرد عرض مخصص. كما أشار برايان ، يمكنك تصفح الكود المصدر لمشاهدة تخطيطات XML الدقيقة التي استخدموها.

نصائح أخرى

تطبيق Foursquare لنظام Android مفتوح المصدر. أعتقد أن ما تبحث عنه هو 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>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top