SORU
22 EYLÜL 2010, ÇARŞAMBA


Gösteren Liste Görünümü boş boş görüntüleyin

Nedense boş görünümü, birTextViewbu durumda, her zaman bile görünürListe görünümüboş değil. DüşündümListe görünümüotomatik olarak boş manzarayı göstermek için zaman bulsun.

<RelativeLayout android:id="@ id/LinearLayoutAR"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent">
    <ListView android:id="@ id/ARListView"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"></ListView>
    <ProgressBar android:id="@ id/arProgressBar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"></ProgressBar>
    <!-- Here is the view to show if the list is emtpy -->
    <TextView android:id="@id/android:empty"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:text="No Results" />
</RelativeLayout>

Ne kadar boş görünümü düzgün kanca miyim?

CEVAP
22 EYLÜL 2010, ÇARŞAMBA


Olmalıdır:

<TextView android:id="@android:id/empty"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:text="No Results" />

Notıdöznitelik.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Floortile83

    Floortile83

    16 Ocak 2010
  • Tracy Hairston

    Tracy Hairst

    22 Mayıs 2009
  • FF Radioo

    FF Radioo

    14 ŞUBAT 2007