Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: None  |  size: 1.79 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ListView footer not center
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="fill_parent"
  5. android:layout_height="wrap_content"
  6. android:paddingTop="10dp"
  7. android:paddingBottom="10dp"
  8. android:orientation="horizontal"
  9. android:gravity="center">
  10.  
  11. <TextView
  12.     android:layout_width="wrap_content"
  13.     android:layout_height="wrap_content"
  14.     android:gravity="center"
  15.     android:textSize="12sp"
  16.     android:textColor="@color/author_text"
  17.     android:text="LOADING DATA..."
  18.     />
  19.  
  20. <ProgressBar
  21.     android:layout_width="15dp"
  22.     android:layout_height="15dp"
  23.     android:layout_marginLeft="10dp"
  24.     />
  25. </LinearLayout>
  26.        
  27. <LinearLayout
  28.     xmlns:android="http://schemas.android.com/apk/res/android"
  29.     android:layout_width="fill_parent"
  30.     android:layout_height="wrap_content"
  31.     android:paddingTop="10dp"
  32.     android:paddingBottom="10dp"
  33.     android:orientation="vertical"
  34.     >
  35.  
  36.     <LinearLayout
  37.         android:layout_width="wrap_content"
  38.         android:layout_height="wrap_content"
  39.         android:orientation="horizontal"
  40.         android:gravity="center"
  41.         android:layout_gravity="center_horizontal">
  42.         <TextView
  43.             android:layout_width="wrap_content"
  44.             android:layout_height="wrap_content"
  45.             android:gravity="center"
  46.             android:textSize="12sp"
  47.             android:textColor="@color/author_text"
  48.             android:text="LOADING DATA..."
  49.             />
  50.  
  51.         <ProgressBar
  52.             android:layout_width="15dp"
  53.             android:layout_height="15dp"
  54.             android:layout_marginLeft="10dp"
  55.             />
  56.     </LinearLayout>
  57. </LinearLayout>
  58.        
  59. <ListView
  60.     android:id="@+id/android:list"
  61.     android:layout_width="fill_parent"
  62.     android:layout_height="wrap_content"
  63.     style="@style/MyList"
  64.     />