6.6.3 - Alpha2 - 主题色扩充适配范围并支持更多控件类型

This commit is contained in:
SuperMonster003
2025-05-09 17:27:27 +08:00
parent a9f178ac8c
commit 9f82114757
94 changed files with 1451 additions and 565 deletions

View File

@@ -5,6 +5,7 @@ plugins {
android {
namespace = 'com.jaredrummler.android.colorpicker'
compileSdk = project.ext.compileSdk
resourcePrefix "cpv_"

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -9,32 +10,32 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_marginStart="24dip"
android:layout_marginTop="18dip"
android:layout_marginStart="24dip">
android:orientation="horizontal">
<TextView
android:id="@+id/title"
android:textSize="20sp"
android:textColor="?android:attr/textColorPrimary"
android:singleLine="true"
android:ellipsize="end"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end"
android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="?android:attr/textColorPrimary"
android:textSize="20sp"
tools:text="@string/cpv_custom" />
<ImageView
android:id="@+id/more_options"
android:tint="?android:attr/textColorPrimary"
android:paddingStart="5dp"
android:paddingEnd="20dp"
android:paddingVertical="5dp"
android:layout_width="47dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:src="@drawable/cpv_ic_more" />
android:paddingTop="4dp"
android:paddingStart="5dp"
android:paddingEnd="20dp"
android:src="@drawable/cpv_ic_more"
app:tint="?android:attr/textColorPrimary" />
</LinearLayout>