BIN
app/src/main/res/drawable-hdpi/round_format_size.png
Normal file
After Width: | Height: | Size: 206 B |
BIN
app/src/main/res/drawable-hdpi/round_format_size_black_24.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
app/src/main/res/drawable-hdpi/round_format_size_black_36.png
Normal file
After Width: | Height: | Size: 311 B |
BIN
app/src/main/res/drawable-hdpi/round_format_size_black_48.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
app/src/main/res/drawable-hdpi/round_keyboard_capslock.png
Normal file
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 268 B |
BIN
app/src/main/res/drawable-mdpi/round_format_size.png
Normal file
After Width: | Height: | Size: 159 B |
BIN
app/src/main/res/drawable-mdpi/round_format_size_black_24.png
Normal file
After Width: | Height: | Size: 156 B |
BIN
app/src/main/res/drawable-mdpi/round_format_size_black_36.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
app/src/main/res/drawable-mdpi/round_format_size_black_48.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
app/src/main/res/drawable-mdpi/round_keyboard_capslock.png
Normal file
After Width: | Height: | Size: 243 B |
After Width: | Height: | Size: 147 B |
After Width: | Height: | Size: 151 B |
After Width: | Height: | Size: 204 B |
BIN
app/src/main/res/drawable-xhdpi/round_format_size.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
app/src/main/res/drawable-xhdpi/round_format_size_black_24.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
app/src/main/res/drawable-xhdpi/round_format_size_black_36.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
app/src/main/res/drawable-xhdpi/round_format_size_black_48.png
Normal file
After Width: | Height: | Size: 405 B |
BIN
app/src/main/res/drawable-xhdpi/round_keyboard_capslock.png
Normal file
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 243 B |
After Width: | Height: | Size: 306 B |
BIN
app/src/main/res/drawable-xxhdpi/round_format_size.png
Normal file
After Width: | Height: | Size: 311 B |
BIN
app/src/main/res/drawable-xxhdpi/round_format_size_black_24.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
app/src/main/res/drawable-xxhdpi/round_format_size_black_36.png
Normal file
After Width: | Height: | Size: 545 B |
BIN
app/src/main/res/drawable-xxhdpi/round_format_size_black_48.png
Normal file
After Width: | Height: | Size: 519 B |
BIN
app/src/main/res/drawable-xxhdpi/round_keyboard_capslock.png
Normal file
After Width: | Height: | Size: 551 B |
After Width: | Height: | Size: 268 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 422 B |
BIN
app/src/main/res/drawable-xxxhdpi/round_format_size.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
app/src/main/res/drawable-xxxhdpi/round_format_size_black_24.png
Normal file
After Width: | Height: | Size: 405 B |
BIN
app/src/main/res/drawable-xxxhdpi/round_format_size_black_36.png
Normal file
After Width: | Height: | Size: 519 B |
BIN
app/src/main/res/drawable-xxxhdpi/round_format_size_black_48.png
Normal file
After Width: | Height: | Size: 688 B |
BIN
app/src/main/res/drawable-xxxhdpi/round_keyboard_capslock.png
Normal file
After Width: | Height: | Size: 724 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 551 B |
10
app/src/main/res/drawable/round_format_size_24.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M9,5.5c0,0.83 0.67,1.5 1.5,1.5H14v10.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5V7h3.5c0.83,0 1.5,-0.67 1.5,-1.5S21.33,4 20.5,4h-10C9.67,4 9,4.67 9,5.5zM4.5,12H6v5.5c0,0.83 0.67,1.5 1.5,1.5S9,18.33 9,17.5V12h1.5c0.83,0 1.5,-0.67 1.5,-1.5S11.33,9 10.5,9h-6C3.67,9 3,9.67 3,10.5S3.67,12 4.5,12z"/>
|
||||
</vector>
|
10
app/src/main/res/drawable/round_keyboard_capslock_24.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M12,8.41l3.89,3.89c0.39,0.39 1.02,0.39 1.41,0 0.39,-0.39 0.39,-1.02 0,-1.41L12.71,6.3c-0.39,-0.39 -1.02,-0.39 -1.41,0l-4.6,4.59c-0.39,0.39 -0.39,1.02 0,1.41 0.39,0.39 1.02,0.39 1.41,0L12,8.41zM7,18h10c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1H7c-0.55,0 -1,0.45 -1,1s0.45,1 1,1z"/>
|
||||
</vector>
|
@ -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" />
|
||||
|
@ -233,4 +233,5 @@
|
||||
<string name="settings_weather_icon_pack_title">Icon pack</string>
|
||||
<string name="settings_weather_icon_pack_default">Default</string>
|
||||
<string name="settings_weather_icon_pack_minimal">Minimal</string>
|
||||
<string name="action_capitalize_the_date">Capitalize the date</string>
|
||||
</resources>
|
||||
|