activity_detail.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <LinearLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical">
  7. <include layout="@layout/toolbar"/>
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:gravity="center_vertical"
  12. android:orientation="horizontal"
  13. android:paddingLeft="@dimen/activity_horizontal_margin"
  14. android:paddingRight="@dimen/activity_horizontal_margin"
  15. android:paddingTop="@dimen/activity_vertical_margin"
  16. tools:ignore="UseCompoundDrawables">
  17. <ImageView
  18. android:id="@+id/icon"
  19. android:layout_width="64dp"
  20. android:layout_height="64dp"
  21. tools:ignore="ContentDescription"
  22. tools:src="@mipmap/ic_launcher"/>
  23. <TextView
  24. android:id="@+id/weatherDescription"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_margin="@dimen/spacing_xlarge"
  28. android:textAppearance="@style/TextAppearance.AppCompat.Display1"
  29. tools:text="Few clouds"/>
  30. </LinearLayout>
  31. <LinearLayout
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content">
  34. <TextView
  35. android:id="@+id/maxTemperature"
  36. android:layout_width="0dp"
  37. android:layout_height="wrap_content"
  38. android:layout_margin="@dimen/spacing_xlarge"
  39. android:layout_weight="1"
  40. android:gravity="center_horizontal"
  41. android:textAppearance="@style/TextAppearance.AppCompat.Display3"
  42. tools:text="30º"/>
  43. <TextView
  44. android:id="@+id/minTemperature"
  45. android:layout_width="0dp"
  46. android:layout_height="wrap_content"
  47. android:layout_margin="@dimen/spacing_xlarge"
  48. android:layout_weight="1"
  49. android:gravity="center_horizontal"
  50. android:textAppearance="@style/TextAppearance.AppCompat.Display3"
  51. tools:text="10º"/>
  52. </LinearLayout>
  53. </LinearLayout>