summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/layout/custom_content_page_indicator_marker.xml16
-rw-r--r--res/layout/page_indicator_marker.xml12
2 files changed, 18 insertions, 10 deletions
diff --git a/res/layout/custom_content_page_indicator_marker.xml b/res/layout/custom_content_page_indicator_marker.xml
index 168599266..8fe3f8fdf 100644
--- a/res/layout/custom_content_page_indicator_marker.xml
+++ b/res/layout/custom_content_page_indicator_marker.xml
@@ -16,20 +16,24 @@
<com.android.launcher3.PageIndicatorMarker
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="16dp"
+ android:layout_height="16dp"
android:layout_gravity="center_vertical">
<ImageView
android:id="@+id/inactive"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="centerInside"
android:src="@drawable/custom_content_page"
/>
<ImageView
android:id="@+id/active"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="centerInside"
android:src="@drawable/custom_content_page"
android:alpha="0"
+ android:scaleX="0.5"
+ android:scaleY="0.5"
/>
</com.android.launcher3.PageIndicatorMarker>
diff --git a/res/layout/page_indicator_marker.xml b/res/layout/page_indicator_marker.xml
index ac7459de6..7c0c38920 100644
--- a/res/layout/page_indicator_marker.xml
+++ b/res/layout/page_indicator_marker.xml
@@ -21,15 +21,19 @@
android:layout_gravity="center_vertical">
<ImageView
android:id="@+id/inactive"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="centerInside"
android:src="@drawable/ic_pageindicator_default"
/>
<ImageView
android:id="@+id/active"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="centerInside"
android:src="@drawable/ic_pageindicator_current"
android:alpha="0"
+ android:scaleX="0.5"
+ android:scaleY="0.5"
/>
</com.android.launcher3.PageIndicatorMarker>