* designed by Corex1402 * refactored by: rmp Change-Id: Idb5fdf7af497c1e1a58f9cc04a591e4718389589 Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
151 lines
6.5 KiB
XML
151 lines
6.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:gravity="center_vertical"
|
|
android:layout_gravity="center"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="220dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_marginVertical="10dp">
|
|
<LinearLayout
|
|
android:gravity="center"
|
|
android:layout_gravity="center_horizontal"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/custom_background"
|
|
android:padding="10dp"
|
|
android:layout_width="90dp"
|
|
android:layout_height="90dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:backgroundTint="@android:color/system_accent1_400"
|
|
android:clipToOutline="true">
|
|
<TextClock
|
|
android:textSize="40sp"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:layout_alignParentStart="true"
|
|
android:format12Hour="dd"
|
|
android:format24Hour="dd"/>
|
|
<TextClock
|
|
android:textSize="12sp"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:fontFamily="@font/dot57"
|
|
android:layout_alignParentStart="true"
|
|
android:format12Hour="EEEE"
|
|
android:format24Hour="EEEE"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:gravity="center|start"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/custom_background"
|
|
android:padding="10dp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="90dp"
|
|
android:layout_weight="1.0"
|
|
android:layout_marginStart="5dp"
|
|
android:backgroundTint="@android:color/white"
|
|
android:clipToOutline="true">
|
|
<RelativeLayout
|
|
android:gravity="start"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<TextClock
|
|
android:textSize="35sp"
|
|
android:textColor="@android:color/system_neutral1_1000"
|
|
android:layout_gravity="top"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:layout_alignParentTop="true"
|
|
android:fontFamily="@font/dot57"
|
|
android:format12Hour="hh.mm"
|
|
android:format24Hour="HH.mm"/>
|
|
<TextClock
|
|
android:textSize="18sp"
|
|
android:textColor="@android:color/system_neutral1_1000"
|
|
android:layout_gravity="bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:fontFamily="@font/dot57"
|
|
android:format12Hour="MMMM-yyy"
|
|
android:format24Hour="MMMM-yyy"/>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/custom_background"
|
|
android:padding="10dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp"
|
|
android:layout_marginTop="10dp"
|
|
android:backgroundTint="@android:color/system_neutral1_1000"
|
|
android:clipToOutline="true">
|
|
<LinearLayout
|
|
android:gravity="start"
|
|
android:orientation="vertical"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.2">
|
|
<RelativeLayout
|
|
android:gravity="start"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<ImageView
|
|
android:clickable="false"
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:src="@drawable/ic_lock"
|
|
android:tint="@android:color/system_accent1_0"
|
|
android:layout_alignParentTop="true"/>
|
|
<TextView
|
|
android:textSize="10sp"
|
|
android:textColor="@android:color/system_accent1_0"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Welcome back!"
|
|
android:layout_above="@+id/summary"/>
|
|
<TextView
|
|
android:textSize="16sp"
|
|
android:textColor="@android:color/system_accent1_100"
|
|
android:id="@+id/summary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="User"
|
|
android:layout_alignParentBottom="true"
|
|
android:fontFamily="@font/dot57"/>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:gravity="center|end"
|
|
android:orientation="horizontal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:background="@drawable/custom_background"
|
|
android:clickable="false"
|
|
android:layout_width="70dp"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/default_avatar"
|
|
android:scaleType="centerCrop"
|
|
android:layout_weight="1.0"
|
|
android:layout_marginEnd="5dp"
|
|
android:clipToOutline="true"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|