From 30da6dec23eeebbc271aa25479a4683145e3a03e Mon Sep 17 00:00:00 2001 From: jxr202 Date: Wed, 18 Jul 2018 17:30:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90Jiang=E3=80=91=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=AD=97=E7=AC=A6=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- colorful-ui-example/src/main/res/layout/activity_main.xml | 2 +- colorful-ui/src/main/java/com/jxr202/colorful_ui/ItemView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/colorful-ui-example/src/main/res/layout/activity_main.xml b/colorful-ui-example/src/main/res/layout/activity_main.xml index becb099..ba964cb 100644 --- a/colorful-ui-example/src/main/res/layout/activity_main.xml +++ b/colorful-ui-example/src/main/res/layout/activity_main.xml @@ -56,7 +56,7 @@ jxr202:mLeftTitleTextSize="15sp" jxr202:mRightImage="@drawable/ic_item_more" jxr202:mRightImageVisibility="visible" - jxr202:mRightText="24小时不停" + jxr202:mRightText="24小时不停24小时不停24小时不停24小时不停24小时不停24小时不停" jxr202:mRightTextColor="#999999" jxr202:mRightTextSize="14sp" jxr202:mRightTextVisibility="visible"/> diff --git a/colorful-ui/src/main/java/com/jxr202/colorful_ui/ItemView.java b/colorful-ui/src/main/java/com/jxr202/colorful_ui/ItemView.java index 4ff0d07..a1537f3 100644 --- a/colorful-ui/src/main/java/com/jxr202/colorful_ui/ItemView.java +++ b/colorful-ui/src/main/java/com/jxr202/colorful_ui/ItemView.java @@ -63,7 +63,7 @@ private void initTypedArray(Context context, AttributeSet attrs, int defStyleAtt mLeftTitle.setVisibility(array.getInteger(R.styleable.ItemView_mLeftTitleTextVisibility, VISIBLE)); mLeftTitle.setEllipsize(TextUtils.TruncateAt.END); mLeftTitle.setLines(1); - mLeftTitle.setPadding(dp2px(15), 0, dp2px(15), 0); + mLeftTitle.setPadding(dp2px(5), 0, dp2px(5), 0); mRightIconId = array.getResourceId(R.styleable.ItemView_mRightImageId, R.id.rightIconId); mRightIconVisibility = array.getInteger(R.styleable.ItemView_mRightImageVisibility, VISIBLE);