Use compose clock widget
This commit is contained in:
@@ -129,13 +129,10 @@
|
||||
android:paddingTop="8dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<de.mm20.launcher2.view.ElevationImageView
|
||||
<Space
|
||||
android:id="@+id/widgetSpacer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:elevation="@dimen/card_elevation"
|
||||
android:src="@drawable/ic_arrow_up"
|
||||
android:tint="#fff" />
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<de.mm20.launcher2.ui.legacy.widget.ClockWidget
|
||||
android:id="@+id/clockWidget"
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/clockWidgetContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:animateLayoutChanges="true"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/clockWidgetDivider"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@+id/dateTimeTimeView"
|
||||
android:elevation="2dp">
|
||||
|
||||
<View
|
||||
android:id="@+id/bottomPadding"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:background="@color/color_divider"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/dateTimeTimeView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:clickable="true"
|
||||
android:elevation="2dp"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-light"
|
||||
android:foreground="?selectableItemBackgroundBorderless"
|
||||
android:paddingStart="20dp"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="36sp"/>
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user