widget_layout.xml 873 B

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/layout"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:padding="@dimen/widget_margin" >
  7. <!-- android:background="@drawable/myshape" -->
  8. <ImageView
  9. android:id="@+id/flashlight_widget_imageview"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:layout_centerInParent="true"
  13. android:layout_gravity="center_vertical"
  14. android:adjustViewBounds="true"
  15. android:contentDescription="@string/flashlight_widget_imageview_content_description"
  16. android:minHeight="72dp"
  17. android:minWidth="72dp"
  18. android:scaleType="fitCenter"
  19. android:src="@drawable/light_on" />
  20. </RelativeLayout>