Guest User

Untitled

a guest
Aug 3rd, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  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. tools:context="com.emanuelenberg.stormy.MainActivity"
  12. android:background="#FFFc970b">
  13.  
  14. <TextView
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:text="--"
  18. android:id="@+id/temperatureValue"
  19. android:layout_centerVertical="true"
  20. android:layout_centerHorizontal="true"
  21. android:textColor="@android:color/white"
  22. android:textSize="150sp"/>
  23.  
  24. <ImageView
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:id="@+id/degreeImageView"
  28. android:layout_alignTop="@+id/temperatureValue"
  29. android:layout_toRightOf="@+id/temperatureValue"
  30. android:layout_toEndOf="@+id/temperatureValue"
  31. android:src="@drawable/degree"
  32. android:layout_marginTop="50dp"/>
  33.  
  34. <TextView
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:id="@+id/timeLabel"
  38. android:layout_above="@+id/temperatureValue"
  39. android:layout_centerHorizontal="true"
  40. android:textColor="#80ffffff"
  41. android:text="At -- it will be"
  42. android:textSize="18sp"/>
  43.  
  44. <TextView
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:text="Umea, Sweden"
  48. android:id="@+id/locationLabel"
  49. android:layout_above="@+id/timeLabel"
  50. android:layout_centerHorizontal="true"
  51. android:layout_marginBottom="60dp"
  52. android:textColor="@android:color/white"
  53. android:textSize="24sp"/>
  54.  
  55. <ImageView
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:id="@+id/iconImageView"
  59. android:layout_alignBottom="@+id/locationLabel"
  60. android:layout_alignParentLeft="true"
  61. android:layout_alignParentStart="true"
  62. android:src="@drawable/partly_cloudy"/>
  63.  
  64. <LinearLayout
  65. android:orientation="horizontal"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:layout_below="@+id/temperatureValue"
  69. android:layout_centerHorizontal="true"
  70. android:layout_marginTop="10dp"
  71. android:id="@+id/linearLayout">
  72.  
  73. <LinearLayout
  74. android:orientation="vertical"
  75. android:layout_width="wrap_content"
  76. android:layout_height="match_parent"
  77. android:layout_below="@+id/temperatureValue"
  78. android:layout_centerHorizontal="true"
  79. android:layout_weight="1">
  80.  
  81. <TextView
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:text="HUMIDITY"
  85. android:id="@+id/humidityLabel"
  86. android:textColor="#80ffffff"
  87. android:gravity="center_horizontal"/>
  88.  
  89. <TextView
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:text="--"
  93. android:id="@+id/humidityValue"
  94. android:textColor="@android:color/white"
  95. android:textSize="24sp"
  96. android:gravity="center_horizontal"/>
  97. </LinearLayout>
  98.  
  99. <LinearLayout
  100. android:orientation="vertical"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_below="@+id/temperatureValue"
  104. android:layout_centerHorizontal="true"
  105. android:layout_weight="1">
  106.  
  107. <TextView
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:text="RAIN/SNOW?"
  111. android:id="@+id/precipLabel"
  112. android:textColor="#80ffffff"
  113. android:gravity="center_horizontal"/>
  114.  
  115. <TextView
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:text="--"
  119. android:id="@+id/precipValue"
  120. android:textColor="@android:color/white"
  121. android:textSize="24sp"
  122. android:gravity="center_horizontal"/>
  123. </LinearLayout>
  124.  
  125. </LinearLayout>
  126.  
  127. <TextView
  128. android:layout_width="match_parent"
  129. android:layout_height="wrap_content"
  130. android:text="Retrieving weather"
  131. android:id="@+id/summaryLabel"
  132. android:layout_below="@+id/linearLayout"
  133. android:layout_centerHorizontal="true"
  134. android:layout_marginTop="50dp"
  135. android:textSize="18dp"
  136. android:textColor="@android:color/white"
  137. android:gravity="center_horizontal"/>
  138.  
  139. <ImageView
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"
  142. android:id="@+id/refreshImageView"
  143. android:layout_alignParentTop="true"
  144. android:layout_centerHorizontal="true"
  145. android:src="@drawable/refresh"
  146. android:visibility="invisible"/>
  147.  
  148. <ProgressBar
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:id="@+id/progressBar"
  152. android:layout_alignBottom="@+id/refreshImageView"
  153. android:layout_centerHorizontal="true"
  154. android:indeterminate="true"/>
  155.  
  156. </RelativeLayout>
Add Comment
Please, Sign In to add comment