From 7f0a48469381746990931282888d1b51e861e4dd Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 14 Feb 2020 18:51:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/widget/text/AccentBgTextView.kt | 2 +- .../main/java/io/legado/app/ui/widget/text/BadgeView.kt | 2 +- app/src/main/res/layout/activity_book_info.xml | 8 ++++---- app/src/main/res/layout/item_bookshelf_grid.xml | 2 +- app/src/main/res/layout/item_import_book.xml | 2 +- app/src/main/res/layout/item_search.xml | 6 +++--- app/src/main/res/values/attrs.xml | 8 +++++--- 7 files changed, 16 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/text/AccentBgTextView.kt b/app/src/main/java/io/legado/app/ui/widget/text/AccentBgTextView.kt index 58c914143..846f34204 100644 --- a/app/src/main/java/io/legado/app/ui/widget/text/AccentBgTextView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/text/AccentBgTextView.kt @@ -15,7 +15,7 @@ class AccentBgTextView(context: Context, attrs: AttributeSet) : init { val typedArray = context.obtainStyledAttributes(attrs, R.styleable.AccentBgTextView) val radios = - typedArray.getDimensionPixelOffset(R.styleable.AccentBgTextView_bg_radius, 0) + typedArray.getDimensionPixelOffset(R.styleable.AccentBgTextView_radius, 0) typedArray.recycle() background = Selector.shapeBuild() .setCornerRadius(radios) diff --git a/app/src/main/java/io/legado/app/ui/widget/text/BadgeView.kt b/app/src/main/java/io/legado/app/ui/widget/text/BadgeView.kt index bcade49c7..33fc8b3a2 100644 --- a/app/src/main/java/io/legado/app/ui/widget/text/BadgeView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/text/BadgeView.kt @@ -77,7 +77,7 @@ class BadgeView @JvmOverloads constructor( init { val typedArray = context.obtainStyledAttributes(attrs, R.styleable.BadgeView) val radios = - typedArray.getDimensionPixelOffset(R.styleable.BadgeView_bv_radius, 8) + typedArray.getDimensionPixelOffset(R.styleable.BadgeView_radius, 8) flatangle = typedArray.getBoolean(R.styleable.BadgeView_up_flat_angle, false) typedArray.recycle() diff --git a/app/src/main/res/layout/activity_book_info.xml b/app/src/main/res/layout/activity_book_info.xml index 727e29ae9..0c98f4cda 100644 --- a/app/src/main/res/layout/activity_book_info.xml +++ b/app/src/main/res/layout/activity_book_info.xml @@ -96,7 +96,7 @@ android:paddingRight="5dp" android:text="@string/change_origin" android:textSize="16sp" - app:bg_radius="2dp" /> + app:radius="2dp" /> @@ -118,7 +118,7 @@ android:singleLine="true" android:text="@string/app_name" android:textSize="14sp" - app:bg_radius="2dp" /> + app:radius="2dp" /> + app:radius="2dp" /> + app:radius="2dp" /> diff --git a/app/src/main/res/layout/item_bookshelf_grid.xml b/app/src/main/res/layout/item_bookshelf_grid.xml index b99bd4aa2..666d67098 100644 --- a/app/src/main/res/layout/item_bookshelf_grid.xml +++ b/app/src/main/res/layout/item_bookshelf_grid.xml @@ -55,7 +55,7 @@ android:layout_gravity="center" android:includeFontPadding="false" android:singleLine="true" - app:bv_radius="1dp" + app:radius="1dp" app:up_flat_angle="true" app:layout_constraintLeft_toLeftOf="@id/iv_cover" app:layout_constraintBottom_toBottomOf="@id/iv_cover" diff --git a/app/src/main/res/layout/item_import_book.xml b/app/src/main/res/layout/item_import_book.xml index 6d360e666..1ad9742bd 100644 --- a/app/src/main/res/layout/item_import_book.xml +++ b/app/src/main/res/layout/item_import_book.xml @@ -68,7 +68,7 @@ android:text="TXT" android:maxLines="1" android:maxWidth="50dp" - app:bg_radius="2dp" + app:radius="2dp" tools:ignore="HardcodedText,RtlHardcoded" /> + app:radius="2dp" /> + app:radius="2dp" /> + app:radius="2dp" /> diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 1589ee99c..e42a82a0d 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -1,6 +1,8 @@ + + @@ -102,7 +104,7 @@ - + @@ -145,11 +147,11 @@ - + - + \ No newline at end of file