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

Untitled

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 1.21 KB  |  hits: 13  |  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 alterations with a 30px bar above?
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     android:orientation="vertical" >
  7.  
  8.     <LinearLayout
  9.         android:layout_width="match_parent"
  10.         android:layout_height="wrap_content" >
  11.  
  12.         <Button
  13.             android:id="@+id/button1"
  14.             android:layout_width="wrap_content"
  15.             android:layout_height="wrap_content"
  16.             android:text="Button1" />
  17.  
  18.         <Button
  19.             android:id="@+id/button2"
  20.             android:layout_width="wrap_content"
  21.             android:layout_height="wrap_content"
  22.             android:text="Button2" />
  23.  
  24.         <Button
  25.             android:id="@+id/button3"
  26.             android:layout_width="wrap_content"
  27.             android:layout_height="wrap_content"
  28.             android:text="Button3" />
  29.     </LinearLayout>
  30.  
  31.     <ListView
  32.         android:id="@+id/listView1"
  33.         android:layout_width="match_parent"
  34.         android:layout_height="wrap_content" >
  35.     </ListView>
  36.  
  37. </LinearLayout>
  38.        
  39. listView.setDivider(getResources().getDrawable(R.drawable.list_view_divider));