@ -5,6 +5,9 @@
|
||||
<variable
|
||||
name="viewModel"
|
||||
type="com.tommasoberlose.anotherwidget.ui.viewmodels.CustomDateViewModel" />
|
||||
<variable
|
||||
name="isdCapitalizeEnabled"
|
||||
type="Boolean" />
|
||||
</data>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
@ -113,24 +116,45 @@
|
||||
app:cardElevation="2dp"
|
||||
app:cardCornerRadius="0dp"
|
||||
app:cardBackgroundColor="@color/colorPrimary">
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:id="@+id/date_format_value"
|
||||
android:textAppearance="@style/AnotherWidget.Settings.Title"
|
||||
android:letterSpacing="0"
|
||||
android:textColor="@color/colorPrimaryText"
|
||||
android:textSize="20sp"
|
||||
app:textAllCaps="false"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:lines="1"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp" />
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:id="@+id/date_format_value"
|
||||
android:textAppearance="@style/AnotherWidget.Settings.Title"
|
||||
android:letterSpacing="0"
|
||||
android:textColor="@color/colorPrimaryText"
|
||||
android:textSize="20sp"
|
||||
app:textAllCaps="false"
|
||||
android:gravity="center_vertical|start"
|
||||
android:paddingEnd="32dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:textAlignment="viewStart"
|
||||
android:maxLines="1"
|
||||
android:lines="1"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginLeft="32dp"
|
||||
android:layout_marginRight="32dp"
|
||||
android:layout_marginBottom="16dp" />
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:padding="5dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/round_keyboard_capslock"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
app:tint="@color/colorPrimaryText"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:alpha="@{isdCapitalizeEnabled ? 1f : 0.3f, default=0.3}"
|
||||
android:id="@+id/action_capitalize" />
|
||||
</RelativeLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -77,8 +77,6 @@
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-80dp"
|
||||
android:layout_marginStart="-80dp"
|
||||
android:scaleType="fitStart"
|
||||
android:adjustViewBounds="true"
|
||||
android:id="@+id/widget_bg" />
|
||||
|
Reference in New Issue
Block a user