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

  • Kenneth Håkonsen

    Kenneth Håk

    13 Mart 2011
  • technodromeband's channel

    technodromeb

    28 NİSAN 2011
  • Titan Lee Hai

    Titan Lee Ha

    14 Temmuz 2008