/Sky/res/layout/widget_tiny.xml

http://android-sky.googlecode.com/ · XML · 61 lines · 40 code · 7 blank · 14 comment · 0 complexity · b79ac6fb557b28a914c164ef987085ff 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="wrap_content"
  17. android:focusable="true">
  18. <ImageView
  19. android:id="@+id/icon"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_centerHorizontal="true" />
  23. <LinearLayout
  24. android:id="@+id/temp_block"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_below="@id/icon"
  28. android:layout_centerHorizontal="true"
  29. android:orientation="horizontal"
  30. android:duplicateParentState="true"
  31. style="@style/WidgetBackground">
  32. <TextView
  33. android:id="@+id/high"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:includeFontPadding="false"
  37. android:singleLine="true"
  38. android:ellipsize="none"
  39. style="@style/Text.High" />
  40. <TextView
  41. android:id="@+id/low"
  42. android:layout_width="wrap_content"
  43. android:layout_height="fill_parent"
  44. android:gravity="center_vertical"
  45. android:paddingLeft="4dip"
  46. android:includeFontPadding="false"
  47. android:singleLine="true"
  48. android:ellipsize="none"
  49. style="@style/Text.Low" />
  50. </LinearLayout>
  51. </RelativeLayout>