Evolver: Lockscreen: Add more LS Clocks [2/2]
Signed-off-by: Subratam6296 <padraramesh420@gmail.com> Change-Id: I6399e0e30f81d409d723e6e9324e1dd92b5813bf
This commit is contained in:
7
res/drawable/circle.xml
Normal file
7
res/drawable/circle.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<solid android:color="#FFFD1540" />
|
||||
|
||||
</shape>
|
||||
10
res/drawable/hexagon_shape.xml
Normal file
10
res/drawable/hexagon_shape.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="50dp"
|
||||
android:height="50dp"
|
||||
android:viewportWidth="50"
|
||||
android:viewportHeight="50">
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M50,1 L95,25 95,75 50,99 5,75 5,25Z"/>
|
||||
</vector>
|
||||
BIN
res/font/BR_SC.ttf
Executable file
BIN
res/font/BR_SC.ttf
Executable file
Binary file not shown.
BIN
res/font/BebasNeue_Bold.ttf
Executable file
BIN
res/font/BebasNeue_Bold.ttf
Executable file
Binary file not shown.
BIN
res/font/FontsFree-Net-Carthart.ttf
Executable file
BIN
res/font/FontsFree-Net-Carthart.ttf
Executable file
Binary file not shown.
BIN
res/font/Future.ttf
Executable file
BIN
res/font/Future.ttf
Executable file
Binary file not shown.
BIN
res/font/Futurist-Fixed-width-Bold.ttf
Executable file
BIN
res/font/Futurist-Fixed-width-Bold.ttf
Executable file
Binary file not shown.
BIN
res/font/Sans_Bold.ttf
Executable file
BIN
res/font/Sans_Bold.ttf
Executable file
Binary file not shown.
BIN
res/font/filled.ttf
Normal file
BIN
res/font/filled.ttf
Normal file
Binary file not shown.
BIN
res/font/filled1.ttf
Normal file
BIN
res/font/filled1.ttf
Normal file
Binary file not shown.
BIN
res/font/hollow.ttf
Normal file
BIN
res/font/hollow.ttf
Normal file
Binary file not shown.
BIN
res/font/hollow1.ttf
Normal file
BIN
res/font/hollow1.ttf
Normal file
Binary file not shown.
BIN
res/font/slim.ttf
Normal file
BIN
res/font/slim.ttf
Normal file
Binary file not shown.
BIN
res/font/steelfish-rounded-bd.ttf
Executable file
BIN
res/font/steelfish-rounded-bd.ttf
Executable file
Binary file not shown.
@@ -17,7 +17,7 @@
|
||||
android:textSize="75sp"
|
||||
android:textColor="@*android:color/system_accent1_100"
|
||||
android:gravity="center"
|
||||
android:fontFamily="googlesans-clock"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAlignment="center"
|
||||
|
||||
46
res/layout/keyguard_clock_dual.xml
Normal file
46
res/layout/keyguard_clock_dual.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
android:gravity="start|center"
|
||||
android:layout_gravity="start|center"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-10.0dip"
|
||||
android:layout_marginStart="13dp">
|
||||
<TextClock
|
||||
android:textSize="140.0dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@android:color/white"
|
||||
android:singleLine="true"
|
||||
android:fontFamily="@font/filled1"
|
||||
android:format12Hour="hh"/>
|
||||
<TextClock
|
||||
android:textSize="140.0dp"
|
||||
android:textColor="@android:color/system_accent1_100"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:fontFamily="@font/hollow1"
|
||||
android:format12Hour="mm"/>
|
||||
</LinearLayout>
|
||||
<TextClock
|
||||
android:textSize="20.0dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/hollow1"
|
||||
android:textAllCaps="true"
|
||||
android:layout_marginStart="26dp"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
android:layout_marginTop="-15dp"
|
||||
android:format12Hour="EEEE"
|
||||
android:format24Hour="EEEE"/>
|
||||
</LinearLayout>
|
||||
95
res/layout/keyguard_clock_fluid.xml
Normal file
95
res/layout/keyguard_clock_fluid.xml
Normal file
@@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal|top">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/clock_view"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:foregroundGravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/clock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/time_clock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:format12Hour="h:mm"
|
||||
android:format24Hour="kk:mm"
|
||||
android:letterSpacing="0.02"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:textSize="50.0dip"
|
||||
android:textColor="@android:color/white"
|
||||
android:paddingBottom="10dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/seconds_clock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:format12Hour="ss"
|
||||
android:format24Hour="ss"
|
||||
android:textSize="50.0dip"
|
||||
android:letterSpacing="0.02"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:textColor="@android:color/system_accent1_400" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/clock_day"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:format12Hour="EEEE, "
|
||||
android:format24Hour="EEEE, "
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16dp" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/clock_date"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:format12Hour="dd MMMM "
|
||||
android:format24Hour="dd MMMM "
|
||||
android:textColor="@android:color/system_accent1_400"
|
||||
android:textSize="16dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/clock_year"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:format12Hour="yyyy"
|
||||
android:format24Hour="yyyy"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
45
res/layout/keyguard_clock_hyper.xml
Normal file
45
res/layout/keyguard_clock_hyper.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
android:gravity="start|center"
|
||||
android:layout_gravity="start|center"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-10.0dip"
|
||||
android:layout_marginStart="13dp">
|
||||
<TextClock
|
||||
android:textSize="160.0dp"
|
||||
android:textColor="@android:color/system_accent1_400"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:fontFamily="@font/filled"
|
||||
android:format12Hour="hh"/>
|
||||
<TextClock
|
||||
android:textSize="160.0dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:fontFamily="@font/hollow"
|
||||
android:format12Hour="mm"/>
|
||||
</LinearLayout>
|
||||
<TextClock
|
||||
android:textSize="20.0dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAllCaps="true"
|
||||
android:layout_marginStart="21dp"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
android:layout_marginTop="-15dp"
|
||||
android:format12Hour="EEEE"
|
||||
android:format24Hour="EEEE"/>
|
||||
</LinearLayout>
|
||||
335
res/layout/keyguard_clock_ide.xml
Normal file
335
res/layout/keyguard_clock_ide.xml
Normal file
@@ -0,0 +1,335 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start|top">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_gravity="start|top"
|
||||
android:layout_marginStart="50dp"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start|top"
|
||||
android:gravity="start"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textInclude"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="#include "
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="\u003Cstring\u003E"
|
||||
android:textColor="#3DDB86"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textUsingNamespace"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="using namespace "
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textStd"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="std;"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textIntMain"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="int main "
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="()"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="{"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textTimeDateDayMonth"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="\tstring time, date, day, month;"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="\ttime = \u0022"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/clockTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:format12Hour="hh:mm"
|
||||
android:format24Hour="kk:mm"
|
||||
android:letterSpacing="0.03"
|
||||
android:textColor="#3DDB86"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:paddingStart="-0.5dip"
|
||||
android:text="\u0022;"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="\tday = \u0022"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/clockDay"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:format12Hour="EEEE"
|
||||
android:format24Hour="EEEE"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="0.3"
|
||||
android:textAllCaps="true"
|
||||
android:textColor="#3DDB86"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:paddingStart="-0.5dip"
|
||||
android:text="\u0022;"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="\tdate = \u0022"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/clockDate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:format12Hour="yyyy.MM.dd"
|
||||
android:format24Hour="yyyy.MM.dd"
|
||||
android:textColor="#0040ff"
|
||||
android:letterSpacing="0.03"
|
||||
android:singleLine="true"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:paddingStart="-0.5dip"
|
||||
android:text="\u0022;"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="\tmonth = \u0022"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/clockMonth"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:format12Hour="MMMM"
|
||||
android:format24Hour="MMMM"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="0.3"
|
||||
android:textColor="#ff0000"
|
||||
android:singleLine="true"
|
||||
android:textAllCaps="true"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:paddingStart="-0.5dip"
|
||||
android:text="\u0022;"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="10sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="\treturn 0;"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
||||
android:text="}"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
53
res/layout/keyguard_clock_lottie.xml
Normal file
53
res/layout/keyguard_clock_lottie.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<!-- LottieAnimationView for the background -->
|
||||
<com.airbnb.lottie.LottieAnimationView
|
||||
android:id="@+id/lottieAnimationView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="300dp"
|
||||
android:layout_centerInParent="true"
|
||||
app:lottie_rawRes="@raw/loop"
|
||||
app:lottie_autoPlay="true"
|
||||
app:lottie_loop="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_marginTop="65.0dip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal|top">
|
||||
|
||||
<!-- Hour TextClock -->
|
||||
<TextClock
|
||||
android:id="@+id/clockHour"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="right"
|
||||
android:paddingRight="4dp"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:format12Hour="hh"
|
||||
android:format24Hour="kk"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="108sp" />
|
||||
|
||||
<!-- Minute TextClock -->
|
||||
<TextClock
|
||||
android:id="@+id/clockMinute"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingLeft="4dp"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:format12Hour="mm"
|
||||
android:format24Hour="mm"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="56sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
53
res/layout/keyguard_clock_lottie2.xml
Normal file
53
res/layout/keyguard_clock_lottie2.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<!-- LottieAnimationView for the background -->
|
||||
<com.airbnb.lottie.LottieAnimationView
|
||||
android:id="@+id/lottieAnimationView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="300dp"
|
||||
android:layout_centerInParent="true"
|
||||
app:lottie_rawRes="@raw/dual_layer"
|
||||
app:lottie_autoPlay="true"
|
||||
app:lottie_loop="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_marginTop="75.0dip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal|top">
|
||||
|
||||
<!-- Hour TextClock -->
|
||||
<TextClock
|
||||
android:id="@+id/clockHour"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="right"
|
||||
android:paddingRight="4dp"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:format12Hour="hh"
|
||||
android:format24Hour="kk"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="108sp" />
|
||||
|
||||
<!-- Minute TextClock -->
|
||||
<TextClock
|
||||
android:id="@+id/clockMinute"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingLeft="4dp"
|
||||
android:fontFamily="@*android:string/config_clockFontFamily"
|
||||
android:format12Hour="mm"
|
||||
android:format24Hour="mm"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="56sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
66
res/layout/keyguard_clock_minimal.xml
Normal file
66
res/layout/keyguard_clock_minimal.xml
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="20.0dip"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/curvedText1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="35sp"
|
||||
android:fontFamily="@font/BebasNeue_Bold"
|
||||
android:textColor="#FFFF39EA"
|
||||
android:layout_marginTop="20dp"
|
||||
android:format12Hour="EEEE"
|
||||
android:format24Hour="EEEE"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="20dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/ofText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="35sp"
|
||||
android:fontFamily="@font/BebasNeue_Bold"
|
||||
android:textColor="#FF56C1FF"
|
||||
android:text="of "/>
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/monthNameText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="35sp"
|
||||
android:format12Hour="MMMM"
|
||||
android:fontFamily="@font/BebasNeue_Bold"
|
||||
android:textColor="#FF56C1FF"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/curvedText3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="35sp"
|
||||
android:fontFamily="@font/BebasNeue_Bold"
|
||||
android:textColor="#FFFFD700"
|
||||
android:layout_marginTop="20dp"
|
||||
android:format12Hour="dd, yyyy"
|
||||
android:format24Hour="dd, yyyy"/>
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/curvedText4_12hour"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="40sp"
|
||||
android:fontFamily="@font/BebasNeue_Bold"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginTop="20dp"
|
||||
android:format12Hour="h:mm a"/>
|
||||
</LinearLayout>
|
||||
84
res/layout/keyguard_clock_minimal2.xml
Normal file
84
res/layout/keyguard_clock_minimal2.xml
Normal file
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center">
|
||||
|
||||
<!-- Month and Date -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginStart="-35dp"
|
||||
android:gravity="center">
|
||||
|
||||
<TextClock
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="30sp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:fontFamily="@font/Futurist-Fixed-width-Bold"
|
||||
android:format12Hour="MMMM"
|
||||
android:format24Hour="MMMM" />
|
||||
|
||||
<TextClock
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:fontFamily="@font/Futurist-Fixed-width-Bold"
|
||||
android:format12Hour="dd, yyyy"
|
||||
android:format24Hour="dd, yyyy" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Divider Shape -->
|
||||
<View
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="6dp"
|
||||
android:layout_marginEnd="3dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:background="#FFFFFF"
|
||||
android:rotation="180"/>
|
||||
|
||||
<!-- Day and Time -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="35dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center">
|
||||
|
||||
<TextClock
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="30sp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:format12Hour="EEEE"
|
||||
android:format24Hour="EEEE"
|
||||
android:fontFamily="@font/Futurist-Fixed-width-Bold" />
|
||||
|
||||
<TextClock
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:format12Hour="h:mm"
|
||||
android:format24Hour="H:mm"
|
||||
android:fontFamily="@font/Futurist-Fixed-width-Bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Divider Shape -->
|
||||
<View
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="6dp"
|
||||
android:background="#FFFFFF"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:rotation="180.0"/>
|
||||
|
||||
</LinearLayout>
|
||||
75
res/layout/keyguard_clock_minimal3.xml
Normal file
75
res/layout/keyguard_clock_minimal3.xml
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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="140dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<!-- Time and Day Circles and Texts -->
|
||||
<ImageView
|
||||
android:id="@+id/timeCircle1"
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:src="@drawable/circle"
|
||||
android:tint="#FF004D"/>
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/timeTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:format12Hour="h:mm a"
|
||||
android:fontFamily="@font/steelfish-rounded-bd"
|
||||
android:textSize="30sp"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_toEndOf="@id/timeCircle1"
|
||||
android:layout_marginStart="5dp"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/timeCircle2"
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_below="@id/timeTextView"
|
||||
android:layout_marginTop="5dp"
|
||||
android:src="@drawable/circle"
|
||||
android:tint="#F8DE22"/>
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/dayTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:format12Hour="EEEE"
|
||||
android:fontFamily="@font/steelfish-rounded-bd"
|
||||
android:textSize="30sp"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_toEndOf="@id/timeCircle2"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_below="@id/timeTextView"
|
||||
android:layout_marginTop="5dp"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/timeCircle3"
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_below="@id/dayTextView"
|
||||
android:layout_marginTop="5dp"
|
||||
android:src="@drawable/circle"
|
||||
android:tint="#00AD7C"/>
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/dateTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:format12Hour="MMM.dd"
|
||||
android:fontFamily="@font/steelfish-rounded-bd"
|
||||
android:textSize="30sp"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_toEndOf="@id/timeCircle3"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_below="@id/dayTextView"
|
||||
android:layout_marginTop="5dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
46
res/layout/keyguard_clock_miui.xml
Normal file
46
res/layout/keyguard_clock_miui.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
android:gravity="start|center"
|
||||
android:layout_gravity="start|center"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="40.0dip"
|
||||
android:layout_marginStart="25dp">
|
||||
<TextClock
|
||||
android:textSize="70.0dip"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:fontFamily="@font/slim"
|
||||
android:format12Hour="hh:mm"
|
||||
android:format24Hour="HH:mm"/>
|
||||
<TextClock
|
||||
android:textSize="60.0dip"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
android:fontFamily="@font/slim"
|
||||
android:textAllCaps="true"
|
||||
android:format12Hour="EEE"
|
||||
android:format24Hour="EEE"/>
|
||||
<TextClock
|
||||
android:textSize="50.0dip"
|
||||
android:textColor="@android:color/white"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
android:fontFamily="@font/slim"
|
||||
android:format12Hour="MM/dd "
|
||||
android:format24Hour="MM/dd "/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -48,7 +48,7 @@
|
||||
android:format24Hour="HH:mm"/>
|
||||
<TextClock
|
||||
android:textSize="40dp"
|
||||
android:textColor="@android:color/system_accent1_200"
|
||||
android:textColor="@android:color/system_accent1_600"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
|
||||
134
res/layout/keyguard_clock_sidebar.xml
Normal file
134
res/layout/keyguard_clock_sidebar.xml
Normal file
@@ -0,0 +1,134 @@
|
||||
<?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>
|
||||
@@ -60,4 +60,88 @@
|
||||
android:layout_height="320dp">
|
||||
<include layout="@layout/keyguard_clock_custom_3"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/keyguard_clock_style_miui"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_miui"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/keyguard_clock_style_ide"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_ide"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/keyguard_clock_style_lottie"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_lottie"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:id="@+id/keyguard_clock_style_lottie2"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_lottie2" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:id="@+id/keyguard_clock_style_fluid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_fluid" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:id="@+id/keyguard_clock_style_hyper"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_hyper" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:id="@+id/keyguard_clock_style_dual"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_dual" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:id="@+id/keyguard_clock_style_stylish"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_stylish" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="start"
|
||||
android:id="@+id/keyguard_clock_style_sidebar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_sidebar" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:id="@+id/keyguard_clock_style_minimal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_minimal" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:id="@+id/keyguard_clock_style_minimal2"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_minimal2" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:id="@+id/keyguard_clock_style_minimal3"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/keyguard_clock_minimal3" />
|
||||
</LinearLayout>
|
||||
</com.crdroid.settings.preferences.ClockStyle>
|
||||
|
||||
74
res/layout/keyguard_clock_stylish.xml
Normal file
74
res/layout/keyguard_clock_stylish.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal|top">
|
||||
|
||||
<!-- Overlapping Text Modules -->
|
||||
<LinearLayout
|
||||
android:id="@+id/overlap_layer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:foregroundGravity="center"
|
||||
android:layout_marginTop="40dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- Text for Date -->
|
||||
<TextClock
|
||||
android:id="@+id/text_date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:fontFamily="@font/BR_SC"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="200sp"
|
||||
android:format12Hour="dd"/>
|
||||
|
||||
<!-- Text for Day -->
|
||||
<TextClock
|
||||
android:id="@+id/text_day"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/FontsFree-Net-Carthart"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center"
|
||||
android:textSize="140sp"
|
||||
android:textColor="#FFFD1540"
|
||||
android:layout_marginTop="-120dp"
|
||||
android:layout_marginRight="30dp"
|
||||
android:format12Hour="EEE"/>
|
||||
|
||||
<!-- Stack Layer for Time and Separator -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-10dp"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- Text for Time -->
|
||||
<TextClock
|
||||
android:id="@+id/text_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/Sans_Bold"
|
||||
android:textSize="27sp"
|
||||
android:textAllCaps="true"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@android:color/white"
|
||||
android:format12Hour="hh:mm a"/>
|
||||
|
||||
<!-- Shape for Separator -->
|
||||
<View
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="6dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="#FFFD1540"
|
||||
android:layout_marginTop="5dp"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
1
res/raw/dual_layer.json
Normal file
1
res/raw/dual_layer.json
Normal file
@@ -0,0 +1 @@
|
||||
{"nm":"Success","ddd":0,"h":512,"w":512,"meta":{"g":"@lottiefiles/toolkit-js 0.33.2"},"layers":[{"ty":4,"nm":"Shape Layer 2","sr":1,"st":0,"op":3600,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[160,160,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[256,256,0],"ix":2},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[160],"t":0},{"s":[880],"t":600}],"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":60,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Polystar 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sr","bm":0,"hd":false,"mn":"ADBE Vector Shape - Star","nm":"Polystar Path 1","ix":1,"d":1,"ir":{"a":0,"k":100,"ix":6},"is":{"a":0,"k":85,"ix":8},"pt":{"a":0,"k":10,"ix":3},"p":{"a":0,"k":[0,0],"ix":4},"or":{"a":0,"k":110,"ix":7},"os":{"a":0,"k":75,"ix":9},"r":{"a":0,"k":0,"ix":5},"sy":1},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.6157,0.1294,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":4,"nm":"Shape Layer 1","sr":1,"st":0,"op":3600,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[160,160,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[256,256,0],"ix":2},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"s":[360],"t":599}],"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":60,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Polystar 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sr","bm":0,"hd":false,"mn":"ADBE Vector Shape - Star","nm":"Polystar Path 1","ix":1,"d":1,"ir":{"a":0,"k":100,"ix":6},"is":{"a":0,"k":85,"ix":8},"pt":{"a":0,"k":10,"ix":3},"p":{"a":0,"k":[0,0],"ix":4},"or":{"a":0,"k":110,"ix":7},"os":{"a":0,"k":75,"ix":9},"r":{"a":0,"k":0,"ix":5},"sy":1},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0.6353,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2}],"v":"5.5.2","fr":60,"op":600,"ip":0,"assets":[]}
|
||||
1
res/raw/loop.json
Normal file
1
res/raw/loop.json
Normal file
File diff suppressed because one or more lines are too long
@@ -932,6 +932,18 @@
|
||||
<item>Clock Custom 1</item>
|
||||
<item>Clock Custom 2</item>
|
||||
<item>Clock Custom 3</item>
|
||||
<item>Clock MIUI</item>
|
||||
<item>Clock IDE</item>
|
||||
<item>Clock Lottie</item>
|
||||
<item>Clock Lottie2</item>
|
||||
<item>Clock Fluid</item>
|
||||
<item>Clock Dualtone</item>
|
||||
<item>Clock Dualtone2</item>
|
||||
<item>Clock Stylish</item>
|
||||
<item>Clock Sidebar</item>
|
||||
<item>Clock Minimal</item>
|
||||
<item>Clock Minimal2</item>
|
||||
<item>Clock Minimal3</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="clock_style_values">
|
||||
@@ -943,5 +955,17 @@
|
||||
<item>5</item>
|
||||
<item>6</item>
|
||||
<item>7</item>
|
||||
<item>8</item>
|
||||
<item>9</item>
|
||||
<item>10</item>
|
||||
<item>11</item>
|
||||
<item>12</item>
|
||||
<item>13</item>
|
||||
<item>14</item>
|
||||
<item>15</item>
|
||||
<item>16</item>
|
||||
<item>17</item>
|
||||
<item>18</item>
|
||||
<item>19</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
||||
@@ -21,7 +21,19 @@ public class ClockStyle extends RelativeLayout {
|
||||
R.id.keyguard_clock_style_custom,
|
||||
R.id.keyguard_clock_style_custom1,
|
||||
R.id.keyguard_clock_style_custom2,
|
||||
R.id.keyguard_clock_style_custom3
|
||||
R.id.keyguard_clock_style_custom3,
|
||||
R.id.keyguard_clock_style_miui,
|
||||
R.id.keyguard_clock_style_ide,
|
||||
R.id.keyguard_clock_style_lottie,
|
||||
R.id.keyguard_clock_style_lottie2,
|
||||
R.id.keyguard_clock_style_fluid,
|
||||
R.id.keyguard_clock_style_hyper,
|
||||
R.id.keyguard_clock_style_dual,
|
||||
R.id.keyguard_clock_style_stylish,
|
||||
R.id.keyguard_clock_style_sidebar,
|
||||
R.id.keyguard_clock_style_minimal,
|
||||
R.id.keyguard_clock_style_minimal2,
|
||||
R.id.keyguard_clock_style_minimal3
|
||||
};
|
||||
|
||||
private static final int DEFAULT_STYLE = 0; //Disabled
|
||||
|
||||
Reference in New Issue
Block a user