From 8bf69e3fe8774b0228aa8667b03be0f7dabaa4f6 Mon Sep 17 00:00:00 2001 From: nilupeng <qingingrunt2010@qq.com> Date: Sat, 29 Jan 2022 03:57:55 +0000 Subject: [PATCH] 弹框 部分框架代码优化 --- app/src/main/res/values/styles.xml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index f26a5c1..db5c358 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -12,4 +12,55 @@ <attr name="rightTextSize" format="dimension" /> <attr name="rightTextColor" format="color" /> </declare-styleable> + + + <declare-styleable name="LinearLayoutWithText"> + <attr name="linbackgroundColor" format="color" /> + <attr name="text_title" format="string" /> + <attr name="text_titleColor" format="color"/> + <attr name="text_right" format="string"/> + <attr name="hint_right" format="string" /> + <attr name="hint_title" format="string" /> + <attr name="text_rightColor" format="color"/> + <attr name="divider_visible"> + <enum name="visible" value="0" /> + <enum name="invisible" value="4" /> + <enum name="gone" value="8" /> + </attr> + <attr name="img_visible"> + <enum name="visible" value="0" /> + <enum name="invisible" value="4" /> + <enum name="gone" value="8" /> + </attr> + <attr name="text_rightSize" format="integer"/> + <attr name="text_titleSize" format="integer"/> + <attr name="red_poit_count" format="integer"/> + <attr name="paddingLeft" format="dimension" /> + <attr name="paddingRight" format="dimension" /> + <attr name="paddingTop" format="dimension" /> + <attr name="paddingBottom" format="dimension" /> + <attr name="padding" format="dimension" /> + <attr name="hint_titleColor" format="color"/> + <attr name="hint_rightColor" format="color"/> + <attr name="leftCompoundDrawable" format="reference" /> + <attr name="leftCompoundDrawableSize" format="integer"/> + <attr name="rightCompoundDrawable" format="reference" /> + <attr name="enable" format="boolean" /> + </declare-styleable> + + <declare-styleable name="CircleImageView"> + <attr name="border_width" format="dimension" /> + <attr name="border_color" format="color" /> + </declare-styleable> + + <style name="txt_normal"> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:textSize">@dimen/normal_text_size</item> + <item name="android:textColor">@color/txt_color</item> + </style> + + <style name="TransparentDialog" parent="Theme.AppCompat.Dialog"> + <item name="android:windowBackground">@color/transparent</item> + </style> </resources> \ No newline at end of file -- Gitblit v1.9.1