Advertisement
erwinprasetyo97

activity_main.xml

Aug 19th, 2018
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:id="@+id/activity_main"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:paddingBottom="@dimen/activity_vertical_margin"
  8. android:paddingLeft="@dimen/activity_horizontal_margin"
  9. android:paddingRight="@dimen/activity_horizontal_margin"
  10. android:paddingTop="@dimen/activity_vertical_margin"
  11. android:orientation="vertical"
  12. tools:context="com.erprasetyo.myasynctaskloader.MainActivity">
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:orientation="horizontal"
  17. android:gravity="center"
  18. android:weightSum="1"
  19. >
  20. <EditText
  21. android:id="@+id/edit_kota"
  22. android:layout_width="0dp"
  23. android:layout_height="wrap_content"
  24. android:text="@string/id_jakarta_bandung_semararang"
  25. android:hint="@string/masukkan_nama_kota"
  26. android:layout_weight="0.8"/>
  27. <Button
  28. android:id="@+id/btn_kota"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:text="@string/cari"
  32. android:layout_weight="0.2"
  33. />
  34. </LinearLayout>
  35. <ListView
  36. android:layout_width="match_parent"
  37. android:layout_height="match_parent"
  38. android:id="@+id/listView"/>
  39. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement