Signed-off-by: Subratam6296 <padraramesh420@gmail.com> Change-Id: I6399e0e30f81d409d723e6e9324e1dd92b5813bf
135 lines
4.6 KiB
XML
135 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start|center"
|
|
android:layout_gravity="start|center">
|
|
|
|
<!-- Time Section -->
|
|
<LinearLayout
|
|
android:id="@+id/timeSection"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginTop="40dp"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Vertical Color Bars -->
|
|
<View
|
|
android:layout_width="8dp"
|
|
android:layout_height="70dp"
|
|
android:background="#FFA2ECBB" />
|
|
|
|
<View
|
|
android:layout_width="8dp"
|
|
android:layout_height="70dp"
|
|
android:background="#FF89D8F6" />
|
|
|
|
<View
|
|
android:layout_width="8dp"
|
|
android:layout_height="70dp"
|
|
android:background="#FFF68989" />
|
|
</LinearLayout>
|
|
|
|
<!-- Time Text Section -->
|
|
<LinearLayout
|
|
android:id="@+id/timeTextSection"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginTop="40dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/timeLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Time is"
|
|
android:textSize="12sp"
|
|
android:textColor="#FFFFFF"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginBottom="-20dp"
|
|
android:fontFamily="@font/Future" />
|
|
|
|
<TextClock
|
|
android:id="@+id/timeValue"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="$df(h:mm a)$"
|
|
android:textSize="25sp"
|
|
android:textColor="#FFFFFF"
|
|
android:layout_marginBottom="20dp"
|
|
android:layout_marginTop="30dp"
|
|
android:fontFamily="@font/Futurist-Fixed-width-Bold" />
|
|
</LinearLayout>
|
|
|
|
<!-- Calendar Section -->
|
|
<LinearLayout
|
|
android:id="@+id/calendarSection"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginTop="110dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/calendarLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Calendar"
|
|
android:textSize="12sp"
|
|
android:textColor="#FFFFFF"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginBottom="-20dp"
|
|
android:fontFamily="@font/Future" />
|
|
|
|
<TextClock
|
|
android:id="@+id/calendarValue"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:format12Hour="MMMM dd"
|
|
android:format24Hour="MMMM dd"
|
|
android:textSize="25sp"
|
|
android:textAllCaps="true"
|
|
android:layout_marginBottom="20dp"
|
|
android:layout_marginTop="30dp"
|
|
android:textColor="#FFFFFF"
|
|
android:fontFamily="@font/Futurist-Fixed-width-Bold" />
|
|
</LinearLayout>
|
|
|
|
<!-- Today Section -->
|
|
<LinearLayout
|
|
android:id="@+id/todaySection"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginTop="180dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/todayLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Today is"
|
|
android:textSize="12sp"
|
|
android:textColor="#FFFFFF"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginBottom="-20dp"
|
|
android:fontFamily="@font/Future" />
|
|
|
|
<TextClock
|
|
android:id="@+id/todayValue"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:format12Hour="EEEE"
|
|
android:format24Hour="EEEE"
|
|
android:textSize="25sp"
|
|
android:textColor="#FFFFFF"
|
|
android:textAllCaps="true"
|
|
android:layout_marginBottom="20dp"
|
|
android:layout_marginTop="30dp"
|
|
android:fontFamily="@font/Futurist-Fixed-width-Bold" />
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|