activity_search.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. tools:context=".SearchActivity" >
  6. <ListView
  7. android:id="@android:id/list"
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:layout_above="@+id/foot"
  11. android:layout_alignParentLeft="true"
  12. android:layout_alignParentTop="true" >
  13. </ListView>
  14. <LinearLayout
  15. android:id="@+id/foot"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:layout_alignParentBottom="true"
  19. android:layout_alignParentLeft="true"
  20. android:orientation="horizontal" >
  21. <Button
  22. android:id="@+id/btncancel"
  23. style="?android:attr/buttonStyleSmall"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_weight="1"
  27. android:text="@android:string/cancel" />
  28. <Button
  29. android:id="@+id/btnok"
  30. style="?android:attr/buttonStyleSmall"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_weight="1"
  34. android:text="@string/search" />
  35. </LinearLayout>
  36. </RelativeLayout>