mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
fix #53, remove the top margin from the widgets time
This commit is contained in:
@ -126,7 +126,7 @@ class MyWidgetDateTimeProvider : AppWidgetProvider() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getMultiplyColoredBitmap(resourceId: Int, newColor: Int, context: Context): Bitmap {
|
private fun getMultiplyColoredBitmap(resourceId: Int, newColor: Int, context: Context): Bitmap {
|
||||||
val options = BitmapFactory.Options()
|
val options = BitmapFactory.Options()
|
||||||
options.inMutable = true
|
options.inMutable = true
|
||||||
val bmp = BitmapFactory.decodeResource(context.resources, resourceId, options)
|
val bmp = BitmapFactory.decodeResource(context.resources, resourceId, options)
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
android:id="@+id/widget_time"
|
android:id="@+id/widget_time"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/widget_time_height"
|
android:layout_height="@dimen/widget_time_height"
|
||||||
android:layout_marginTop="-2dp"
|
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:textSize="@dimen/widget_time_text_size"
|
android:textSize="@dimen/widget_time_text_size"
|
||||||
tools:text="00:00"/>
|
tools:text="00:00"/>
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
android:id="@+id/widget_time"
|
android:id="@+id/widget_time"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/widget_time_height"
|
android:layout_height="@dimen/widget_time_height"
|
||||||
android:layout_marginTop="-2dp"
|
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
android:shadowDy="1"
|
android:shadowDy="1"
|
||||||
|
Reference in New Issue
Block a user