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);