242 lines
12 KiB
XML
242 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:layout_width="match_parent"
|
|
android:background="@drawable/widget_bg"
|
|
android:backgroundTint="?androidprv:attr/colorSurface"
|
|
android:orientation="vertical"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="20dp"
|
|
android:padding="10dp">
|
|
<LinearLayout
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
|
android:background="@drawable/clock_bg"
|
|
android:layout_width="0dp"
|
|
android:layout_height="90dp"
|
|
android:layout_weight="1.0"
|
|
android:layout_marginEnd="5dp"
|
|
android:backgroundTint="@android:color/system_accent1_200"
|
|
android:backgroundTintMode="multiply"
|
|
android:clipToOutline="true">
|
|
<LinearLayout
|
|
android:gravity="center|end|fill_horizontal|start"
|
|
android:orientation="vertical"
|
|
android:paddingTop="10dp"
|
|
android:paddingBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingEnd="5dp"
|
|
android:layout_marginStart="85dp">
|
|
<TextClock
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:alpha="0.7"
|
|
android:textAlignment="viewStart"
|
|
android:format12Hour="a"
|
|
android:format24Hour="a" />
|
|
<TextClock
|
|
android:textSize="25sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAlignment="viewStart"
|
|
android:format12Hour="h:mm"
|
|
android:format24Hour="h:mm" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:background="@drawable/calendar_bg"
|
|
android:layout_width="0dp"
|
|
android:layout_height="90dp"
|
|
android:layout_weight="1.0"
|
|
android:layout_marginStart="5dp"
|
|
android:backgroundTint="@android:color/system_accent3_200"
|
|
android:backgroundTintMode="multiply"
|
|
android:clipToOutline="true">
|
|
<LinearLayout
|
|
android:gravity="center|end|fill_horizontal|start"
|
|
android:orientation="vertical"
|
|
android:paddingTop="10dp"
|
|
android:paddingBottom="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingEnd="5dp"
|
|
android:layout_marginStart="90dp">
|
|
<TextClock
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:alpha="0.7"
|
|
android:textAlignment="viewStart"
|
|
android:format12Hour="EEE"
|
|
android:format24Hour="EEE" />
|
|
<TextClock
|
|
android:textSize="24sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAlignment="viewStart"
|
|
android:format12Hour="dd"
|
|
android:format24Hour="dd" />
|
|
<TextClock
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAlignment="viewStart"
|
|
android:format12Hour="MMMM"
|
|
android:format24Hour="MMMM" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp">
|
|
<LinearLayout
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="5dp">
|
|
<FrameLayout
|
|
android:gravity="center_vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp">
|
|
<ProgressBar
|
|
android:id="@+id/volume_progressbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:indeterminateOnly="false"
|
|
android:indeterminateDrawable="@drawable/widget_progress_track"
|
|
android:progressDrawable="@drawable/widget_progress_track"
|
|
android:progressTint="@android:color/system_accent1_400" />
|
|
<RelativeLayout
|
|
android:gravity="center_vertical"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingHorizontal="10dp">
|
|
<TextView
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:ellipsize="end"
|
|
android:gravity="start"
|
|
android:layout_gravity="start"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Media volume"
|
|
android:singleLine="true"
|
|
android:drawablePadding="3dp"
|
|
android:drawableStart="@drawable/ic_widget_media"
|
|
android:layout_alignParentStart="true"
|
|
android:drawableTint="@android:color/white" />
|
|
<TextView
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:ellipsize="end"
|
|
android:gravity="end"
|
|
android:layout_gravity="end"
|
|
android:id="@+id/volume_level"
|
|
android:text="0%"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:layout_alignParentEnd="true" />
|
|
</RelativeLayout>
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp">
|
|
<FrameLayout
|
|
android:gravity="center_vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp">
|
|
<ProgressBar
|
|
android:id="@+id/battery_progressbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:indeterminateOnly="false"
|
|
android:indeterminateDrawable="@drawable/widget_progress_track"
|
|
android:progressDrawable="@drawable/widget_progress_track"
|
|
android:progressTint="@android:color/system_accent3_400" />
|
|
<RelativeLayout
|
|
android:gravity="center_vertical"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingHorizontal="10dp">
|
|
<TextView
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:ellipsize="end"
|
|
android:gravity="start"
|
|
android:layout_gravity="start"
|
|
android:text="Battery Status"
|
|
android:id="@+id/battery_status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:drawablePadding="3dp"
|
|
android:drawableStart="@drawable/ic_widget_power"
|
|
android:layout_alignParentStart="true"
|
|
android:drawableTint="@android:color/white" />
|
|
<TextView
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
android:ellipsize="end"
|
|
android:gravity="end"
|
|
android:layout_gravity="end"
|
|
android:id="@+id/battery_level"
|
|
android:text="0%"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:layout_alignParentEnd="true" />
|
|
</RelativeLayout>
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|