Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/Widget"
- style="@android:style/Widget"
- android:layout_width="72dip"
- android:layout_height="72dip"
- android:focusable="true"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/WidgetIcon"
- android:layout_width="match_parent"
- android:layout_height="50dip"
- android:gravity="center"
- android:paddingBottom="3dip"
- android:src="@mipmap/ic_launcher_round" />
- <TextView
- android:id="@+id/WidgetLabel"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:background="@drawable/corners"
- android:gravity="center"
- android:text="@string/appwidget_text"
- android:textColor="@android:color/white"
- android:textSize="12sp" />
- </LinearLayout>
- ................................................................
- <?xml version="1.0" encoding="utf-8"?>
- <shape xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/Corners">
- <stroke
- android:width="1dp"
- android:color="@android:color/transparent" />
- <padding
- android:bottom="1dp"
- android:left="1dp"
- android:right="1dp"
- android:top="1dp" />
- <corners android:radius="1dp" />
- </shape>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement