Skip to content

Commit

Permalink
LS Clock 21: Add new animated clock
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmud0808 committed Apr 11, 2024
1 parent 0a22e90 commit 6fbb187
Show file tree
Hide file tree
Showing 2 changed files with 12,537 additions and 0 deletions.
88 changes: 88 additions & 0 deletions app/src/main/res/layout/preview_lockscreen_clock_21.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="start|top"
android:gravity="start|top"
android:orientation="vertical">

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginVertical="10dp"
android:layout_marginStart="-20dp"
android:gravity="center_vertical"
android:orientation="horizontal"
tools:ignore="UselessParent">

<LinearLayout
android:layout_width="140dp"
android:layout_height="140dp"
android:tag="lottie"
tools:ignore="UselessLeaf" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="-20dp"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:orientation="horizontal">

<TextClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/bebasneue_bold"
android:format12Hour="hh"
android:format24Hour="HH"
android:maxLength="2"
android:singleLine="true"
android:tag="accent1"
android:textColor="@android:color/system_accent1_300"
android:textSize="60dp" />

<TextClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:fontFamily="@font/bebasneue_bold"
android:format12Hour="mm"
android:format24Hour="mm"
android:singleLine="true"
android:tag="text1"
android:textColor="@android:color/white"
android:textSize="44dp" />

</LinearLayout>

<TextClock
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-8dp"
android:format12Hour="EEEE"
android:format24Hour="EEEE"
android:singleLine="true"
android:tag="text1|nolineheight"
android:textAlignment="viewStart"
android:textColor="@android:color/white"
android:textSize="28dp" />

<TextClock
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:format12Hour="MMMM dd"
android:format24Hour="dd MMMM"
android:singleLine="true"
android:tag="text1"
android:textAlignment="viewStart"
android:textColor="@android:color/white"
android:textSize="20dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>

0 comments on commit 6fbb187

Please sign in to comment.