From ee8b4b9d17bc63310aeecb5f80ab7ad2be2c3cda Mon Sep 17 00:00:00 2001 From: lygttpod Date: Fri, 6 Jan 2017 17:08:58 +0800 Subject: [PATCH 1/7] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a2cd64c..b938822 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ dependencies { ... - compile 'com.github.lygttpod:SuperTextView:1.0.8' + compile 'com.github.lygttpod:SuperTextView:1.0.9' } 以下依赖方式将在2016年11月16号之后停止使用(老用户请注意) @@ -196,6 +196,14 @@ #更新日志 +### V1.0.9 +* SuperTextView新增左右图标可自定义大小的功能 + + stv:sRightIconWidth="30dp" + stv:sRightIconHeight="30dp" + stv:sLeftIconWidth="30dp" + stv:lefticonHeight="30dp" + ### V1.0.8 * 修复CommonTextView点击事件无效的bug From 89b6c4a82715e947fe4a658876a659071190d73e Mon Sep 17 00:00:00 2001 From: lygttpod Date: Fri, 6 Jan 2017 17:09:51 +0800 Subject: [PATCH 2/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b938822..7742513 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ stv:sRightIconWidth="30dp" stv:sRightIconHeight="30dp" stv:sLeftIconWidth="30dp" - stv:lefticonHeight="30dp" + stv:slefticonHeight="30dp" ### V1.0.8 * 修复CommonTextView点击事件无效的bug From 798d0849c74bf3ed57567be7640796fed0c753bc Mon Sep 17 00:00:00 2001 From: lygttpod Date: Tue, 17 Jan 2017 12:46:38 +0800 Subject: [PATCH 3/7] Update CommonTextView_Readme.md --- CommonTextView_Readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CommonTextView_Readme.md b/CommonTextView_Readme.md index 26fe365..c4d6d14 100644 --- a/CommonTextView_Readme.md +++ b/CommonTextView_Readme.md @@ -34,7 +34,7 @@ ctv:cLeftIconDrawablePadding="10dp" ctv:cLeftIconResForDrawableLeft="@drawable/uu" ctv:cLeftTextColor="@color/colorAccent" - ctv:cLeftTextSize="15dp" +                ctv:cLeftTextSize="15sp" ctv:cLeftTextString="左边文字" ctv:cLeftViewPaddingLeft="10dp" ctv:cLeftViewPaddingRight="10dp" @@ -43,7 +43,7 @@ ctv:cCenterIconDrawablePadding="10dp" ctv:cCenterIconResForDrawableLeft="@drawable/uu" ctv:cCenterTextColor="@color/colorAccent" - ctv:cCenterTextSize="15dp" + ctv:cCenterTextSize="15sp" ctv:cCenterTextString="中间文字" ctv:cCenterViewPaddingLeft="10dp" ctv:cCenterViewPaddingRight="10dp" @@ -52,7 +52,7 @@ ctv:cRightIconDrawablePadding="10dp" ctv:cRightIconResForDrawableLeft="@drawable/uu" ctv:cRightTextColor="@color/colorAccent" - ctv:cRightTextSize="15dp" + ctv:cRightTextSize="15sp" ctv:cRightTextString="右边文字" ctv:cRightViewPaddingLeft="10dp" ctv:cRightViewPaddingRight="10dp" From 8ec0d37237fc0027d4e3a3fae04e0f00f63c9162 Mon Sep 17 00:00:00 2001 From: lygttpod Date: Tue, 17 Jan 2017 15:24:31 +0800 Subject: [PATCH 4/7] Update README.md --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7742513..445e4e5 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,9 @@ stv:sRightCheckBoxRes="@drawable/circular_check_bg" stv:sRightCheckBoxShow="true" stv:sLineShow="bottom" + stv:sLeftTopViewIsClickable="true" + stv:sLeftBottomViewIsClickable="true" + stv:sLeftBottomView2IsClickable="true" /> 注意: 1、上下的线可以通过 sLineShow 设置 有四种显示方式 none,top,bottom,both @@ -105,7 +108,17 @@ }); ###4.点击事件(可根据需求选择实现某个点击事件) - superTextView.setOnSuperTextViewClickListener(new SuperTextView.OnSuperTextViewClickListener() { +          点击事件配合两种方法使用才有效果 +         ①、xml配置使用 +               stv:sLeftTopViewIsClickable="true" + stv:sLeftBottomViewIsClickable="true" + stv:sLeftBottomView2IsClickable="true" +          ②、代码中设置 +         superTextView.setLeftTopViewIsClickable(true) + .setLeftBottomViewIsClickable(true) + .setLeftBottomView2IsClickable(true) + +         superTextView.setOnSuperTextViewClickListener(new SuperTextView.OnSuperTextViewClickListener() { @Override public void onSuperTextViewClick() { super.onSuperTextViewClick(); @@ -185,6 +198,10 @@ + + + + @@ -195,7 +212,8 @@ .into((ImageView) superTextView.getView(SuperTextView.leftImageViewId)); #更新日志 - +### V1.1 +* 修复SuperTextView和CommonTextView点击事件被子View消耗掉的bug(具体使用请参考文档) ### V1.0.9 * SuperTextView新增左右图标可自定义大小的功能 From 534a1599f360de9e3ca6f79b3dd80952b4844312 Mon Sep 17 00:00:00 2001 From: lygttpod Date: Tue, 17 Jan 2017 15:28:29 +0800 Subject: [PATCH 5/7] Update README.md --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 445e4e5..e89c99a 100644 --- a/README.md +++ b/README.md @@ -108,17 +108,17 @@ }); ###4.点击事件(可根据需求选择实现某个点击事件) -          点击事件配合两种方法使用才有效果 -         ①、xml配置使用 -               stv:sLeftTopViewIsClickable="true" - stv:sLeftBottomViewIsClickable="true" - stv:sLeftBottomView2IsClickable="true" -          ②、代码中设置 -         superTextView.setLeftTopViewIsClickable(true) + +         点击事件配合两种方法使用才有效果 + ①、xml配置使用 + stv:sLeftTopViewIsClickable="true" + stv:sLeftBottomViewIsClickable="true" + stv:sLeftBottomView2IsClickable="true" + ②、代码中设置 + superTextView.setLeftTopViewIsClickable(true) .setLeftBottomViewIsClickable(true) - .setLeftBottomView2IsClickable(true) - -         superTextView.setOnSuperTextViewClickListener(new SuperTextView.OnSuperTextViewClickListener() { + .setLeftBottomView2IsClickable(true) + superTextView.setOnSuperTextViewClickListener(new SuperTextView.OnSuperTextViewClickListener() { @Override public void onSuperTextViewClick() { super.onSuperTextViewClick(); @@ -214,6 +214,7 @@ #更新日志 ### V1.1 * 修复SuperTextView和CommonTextView点击事件被子View消耗掉的bug(具体使用请参考文档) + ### V1.0.9 * SuperTextView新增左右图标可自定义大小的功能 From 83d9b570dd33fc854d41608aec9167311b412341 Mon Sep 17 00:00:00 2001 From: lygttpod Date: Tue, 17 Jan 2017 15:29:49 +0800 Subject: [PATCH 6/7] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e89c99a..5b74476 100644 --- a/README.md +++ b/README.md @@ -110,10 +110,12 @@ ###4.点击事件(可根据需求选择实现某个点击事件)         点击事件配合两种方法使用才有效果 + ①、xml配置使用 stv:sLeftTopViewIsClickable="true" stv:sLeftBottomViewIsClickable="true" stv:sLeftBottomView2IsClickable="true" + ②、代码中设置 superTextView.setLeftTopViewIsClickable(true) .setLeftBottomViewIsClickable(true) From e1b5f716b32d48a437cebad43409ac289ec5987f Mon Sep 17 00:00:00 2001 From: lygttpod Date: Tue, 17 Jan 2017 15:36:11 +0800 Subject: [PATCH 7/7] Update CommonTextView_Readme.md --- CommonTextView_Readme.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/CommonTextView_Readme.md b/CommonTextView_Readme.md index c4d6d14..a285b21 100644 --- a/CommonTextView_Readme.md +++ b/CommonTextView_Readme.md @@ -22,7 +22,7 @@ dependencies { ... - compile 'com.github.lygttpod:SuperTextView:1.0.8' + compile 'com.github.lygttpod:SuperTextView:1.1' } ###2.布局中如何使用(列出所有属性使用方法) @@ -89,6 +89,12 @@ ctv:cLeftTextViewGravity="left_center|center|right_center" ctv:cCenterTextViewGravity="left_center|center|right_center" ctv:cRightTextViewGravity="left_center|center|right_center" + + + //点击事件配合onClick事件使用 + ctv:cLeftViewIsClickable="true" + ctv:cCenterViewIsClickable="true" + ctv:cRightViewIsClickable="true" 注意: @@ -176,6 +182,18 @@ }); ###4.点击事件(可根据需求选择实现某个点击事件) + +         点击事件配合两种方法使用才有效果 + + ①、xml配置使用 + ctv:cLeftViewIsClickable="true" + ctv:cCenterViewIsClickable="true" + ctv:cRightViewIsClickable="true" + + ②、代码中设置 + commonTextView.setLeftViewIsClickable(true) + .setCenterViewIsClickable(true) + .setRightViewIsClickable(true) commonTextView. setOnCommonTextViewClickListener(new CommonTextView.OnCommonTextViewClickListener(){ @Override @@ -286,6 +304,9 @@ + + + #意见反馈