/Sky/Sky/res/layout-land/widget_med.xml

http://android-sky.googlecode.com/ · XML · 83 lines · 60 code · 9 blank · 14 comment · 0 complexity · 9dc9f33e9d7595399bc7a803325bef7a MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2009 Jeff Sharkey, http://jsharkey.org/
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14. android:id="@+id/widget"
  15. android:layout_width="fill_parent"
  16. android:layout_height="fill_parent"
  17. android:focusable="true">
  18. <ImageView
  19. android:id="@+id/icon"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content" />
  22. <RelativeLayout
  23. android:layout_width="fill_parent"
  24. android:layout_height="wrap_content"
  25. android:layout_alignParentBottom="true"
  26. android:layout_marginLeft="32dip"
  27. android:duplicateParentState="true"
  28. style="@style/WidgetBackground">
  29. <TextView
  30. android:id="@+id/location"
  31. android:layout_width="fill_parent"
  32. android:layout_height="wrap_content"
  33. android:includeFontPadding="false"
  34. android:singleLine="true"
  35. android:ellipsize="end"
  36. style="@style/Text.Location" />
  37. <TextView
  38. android:id="@+id/conditions"
  39. android:layout_width="fill_parent"
  40. android:layout_height="wrap_content"
  41. android:layout_below="@id/location"
  42. android:includeFontPadding="false"
  43. android:paddingTop="2dip"
  44. android:paddingBottom="3dip"
  45. android:singleLine="true"
  46. android:ellipsize="end"
  47. style="@style/Text.Conditions" />
  48. <TextView
  49. android:id="@+id/high"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_below="@id/conditions"
  53. android:includeFontPadding="false"
  54. android:singleLine="true"
  55. android:ellipsize="none"
  56. style="@style/Text.High" />
  57. <TextView
  58. android:id="@+id/low"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_alignTop="@id/high"
  62. android:layout_alignBottom="@id/high"
  63. android:layout_toRightOf="@id/high"
  64. android:paddingLeft="4dip"
  65. android:gravity="center_vertical"
  66. android:includeFontPadding="false"
  67. android:singleLine="true"
  68. android:ellipsize="none"
  69. style="@style/Text.Low" />
  70. </RelativeLayout>
  71. </RelativeLayout>