|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<LinearLayout |
3 | | - xmlns:android="http://schemas.android.com/apk/res/android" |
4 | | - android:gravity="center" |
5 | | - android:layout_gravity="center_horizontal" |
6 | | - android:orientation="vertical" |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
7 | 4 | android:layout_width="match_parent" |
8 | | - android:layout_height="wrap_content"> |
| 5 | + android:layout_height="wrap_content" |
| 6 | + android:layout_gravity="center_horizontal|top" |
| 7 | + android:gravity="center_horizontal|top" |
| 8 | + android:orientation="vertical"> |
9 | 9 | <LinearLayout |
10 | | - android:layout_gravity="center_horizontal" |
11 | | - android:orientation="vertical" |
12 | 10 | android:layout_width="match_parent" |
13 | 11 | android:layout_height="wrap_content" |
14 | | - android:layout_marginTop="40dp" |
15 | | - android:layout_marginHorizontal="20dp"> |
16 | | - <TextClock |
17 | | - android:textSize="20dp" |
18 | | - android:textColor="@android:color/white" |
19 | | - android:gravity="center" |
| 12 | + android:layout_gravity="center_horizontal" |
| 13 | + android:orientation="vertical"> |
| 14 | + <LinearLayout |
20 | 15 | android:layout_width="match_parent" |
21 | 16 | android:layout_height="wrap_content" |
22 | | - android:singleLine="true" |
23 | | - android:textAlignment="center" |
24 | | - android:format12Hour="EEE, MMM d" |
25 | | - android:format24Hour="EEE, d MMM"/> |
| 17 | + android:gravity="center"> |
| 18 | + <TextClock |
| 19 | + android:id="@+id/date" |
| 20 | + android:layout_width="wrap_content" |
| 21 | + android:layout_height="wrap_content" |
| 22 | + android:format12Hour="EEE, MMM d" |
| 23 | + android:format24Hour="EEE, d MMM" |
| 24 | + android:gravity="center" |
| 25 | + android:singleLine="true" |
| 26 | + android:tag="text1|nolineheight" |
| 27 | + android:textAlignment="center" |
| 28 | + android:textColor="@android:color/white" |
| 29 | + android:fontFamily="@*android:string/config_clockFontFamily" |
| 30 | + android:textSize="20dp" /> |
| 31 | + <com.rising.settings.fragments.lockscreen.DummyWeatherImageView |
| 32 | + android:id="@+id/weather_image" |
| 33 | + android:layout_width="wrap_content" |
| 34 | + android:layout_height="wrap_content" |
| 35 | + android:fontFamily="@*android:string/config_clockFontFamily" |
| 36 | + android:layout_marginStart="8dp" |
| 37 | + android:layout_marginEnd="4dp" |
| 38 | + android:visibility="gone" /> |
| 39 | + <com.rising.settings.fragments.lockscreen.DummyWeatherTextView |
| 40 | + android:id="@+id/weather_text" |
| 41 | + android:layout_width="wrap_content" |
| 42 | + android:layout_height="wrap_content" |
| 43 | + android:layout_marginStart="4dp" |
| 44 | + android:layout_marginEnd="8dp" |
| 45 | + android:fontFamily="@*android:string/config_clockFontFamily" |
| 46 | + android:textColor="@android:color/white" |
| 47 | + android:textSize="20dp" |
| 48 | + android:visibility="gone" /> |
| 49 | + </LinearLayout> |
26 | 50 | <TextClock |
27 | | - android:textSize="100dp" |
28 | | - android:textStyle="bold" |
29 | | - android:textColor="@android:color/white" |
30 | | - android:gravity="center" |
| 51 | + android:id="@+id/clock" |
31 | 52 | android:layout_width="match_parent" |
32 | 53 | android:layout_height="wrap_content" |
| 54 | + android:alpha="0.9" |
| 55 | + android:layout_marginTop="8dp" |
| 56 | + android:fontFamily="@*android:string/config_clockFontFamily" |
| 57 | + android:format12Hour="hh:mm" |
| 58 | + android:format24Hour="HH:mm" |
| 59 | + android:gravity="center" |
33 | 60 | android:singleLine="true" |
| 61 | + android:tag="text1" |
34 | 62 | android:textAlignment="center" |
35 | | - android:format12Hour="hh:mm" |
36 | | - android:format24Hour="HH:mm"/> |
| 63 | + android:textColor="@android:color/white" |
| 64 | + android:textSize="100dp" |
| 65 | + android:textStyle="bold" /> |
37 | 66 | </LinearLayout> |
38 | 67 | </LinearLayout> |
0 commit comments