|
@@ -1,16 +1,30 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:id="@+id/layout"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- android:layout_margin="0dp">
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <ProgressBar
|
|
|
+ android:id="@+id/progressBar"
|
|
|
+ android:indeterminate="false"
|
|
|
+ android:max="0"
|
|
|
+ android:layout_width="25dp"
|
|
|
+ android:layout_height="25dp"
|
|
|
+ android:layout_alignBottom="@+id/text_layout"
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:elevation="1dp"
|
|
|
+ />
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:orientation="vertical"
|
|
|
+ android:id="@+id/text_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="69dp"
|
|
|
- android:background="@drawable/my_backgrnd_shape">
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ android:layout_marginTop="0dp"
|
|
|
+ android:background="@drawable/my_background_shape"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/appwidget_text"
|
|
@@ -18,16 +32,17 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
android:layout_gravity="center"
|
|
|
- android:layout_margin="0dip"
|
|
|
+ android:layout_marginStart="0dip"
|
|
|
+ android:layout_marginTop="0dip"
|
|
|
+ android:layout_marginEnd="0dip"
|
|
|
+ android:layout_marginBottom="0dip"
|
|
|
android:gravity="center_horizontal|center_vertical"
|
|
|
- android:text="Text"
|
|
|
- android:textSize="28dp"
|
|
|
+ android:text="@string/widget_default_text"
|
|
|
android:textColor="@color/black"
|
|
|
- android:textStyle="bold">
|
|
|
- </TextView>
|
|
|
+ android:textSize="28sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-</LinearLayout>
|
|
|
+ </RelativeLayout>
|