-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
198 additions
and
39 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,10 @@ | |
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="ExpandTextView包含如下功能:\n1、实现类似微博@好友的功能,对@内容进行高亮显示,可以点击\n2、实现链接的高亮显示,可以点击,并且对链接进行原文隐藏\n3、实现内容超过指定行数折叠效果,点击可以展开内容\n4、在原文内容末尾添加指定内容,比如时间串,详情见效果图\n5、自定义高亮规则,实现自定义位置点击\n6、RecyclerView中可记住展开和收回状态\n7、可固定展开和收回按钮在最右边或紧贴内容后边\n\n联系我:\[email protected]\n\n博客地址:\nhttps://www.jianshu.com/p/5519fbab6907\n\nGithub地址(您的star是对我最大的鼓励):\nhttps://github.com/MZCretin/ExpandableTextView\n" | ||
android:textColor="#333333" | ||
android:textSize="14sp" /> | ||
|
@@ -30,10 +30,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="特别:在RecyclerView中的使用(ListView类似)" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -44,10 +44,10 @@ | |
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:orientation="horizontal" | ||
android:paddingBottom="20dp" | ||
android:paddingLeft="15dp" | ||
android:paddingTop="20dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="20dp"> | ||
android:paddingBottom="20dp"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
|
@@ -71,10 +71,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="1、正常带链接和@用户,没有展开和收回功能" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -93,10 +93,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="2、正常带链接,不带@用户,有展开和收回功能,有切换动画,有展开和回收的动作监听" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -119,10 +119,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="3、正常不带链接,不带@用户,有展开和收回功能,有切换动画" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -146,10 +146,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="4、正常带链接和@用户,有展开和收回功能,有切换动画" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -171,10 +171,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="5、正常带链接和@用户,有展开和收回功能,没有切换动画" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -196,10 +196,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="6、正常带链接和@用户,有展开,没有收回功能" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -221,10 +221,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="7、正常带链接和@用户,有展开,有收回功能,带附加内容(比如时间)" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -246,10 +246,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="8、正常带链接和@用户,有展开,没有收回功能,带附加内容(比如时间)" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -271,10 +271,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="9、正常带链接和@用户,有展开,有收回功能,有'展开'和'收起'始终靠右显示的功能" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -297,10 +297,10 @@ | |
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingBottom="10dp" | ||
android:paddingLeft="15dp" | ||
android:paddingRight="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="10、正常带链接和@用户,有展开,有收回功能,带自定义规则(解析[标题](规则)并处理,例如对一些字段进行自定义处理,比如文字中的'--习大大' 和 'Gitbub地址')" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
@@ -317,6 +317,32 @@ | |
app:ep_need_expand="true" | ||
app:ep_need_self="true" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_tips11" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#e6e6e6" | ||
android:lineSpacingExtra="4dp" | ||
android:paddingLeft="15dp" | ||
android:paddingTop="10dp" | ||
android:paddingRight="15dp" | ||
android:paddingBottom="10dp" | ||
android:text="11、正常带链接和@用户,有展开,有收回功能,文本中链接不转换成网页链接的文本提示,监听初始化完成" | ||
android:textColor="#666666" | ||
android:textSize="14sp" /> | ||
|
||
<com.ctetin.expandabletextviewlibrary.ExpandableTextView | ||
android:id="@+id/ep_11" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="15dp" | ||
android:lineSpacingExtra="5dp" | ||
android:textSize="14sp" | ||
app:ep_max_line="5" | ||
app:ep_need_contract="true" | ||
app:ep_need_convert_url="false" | ||
app:ep_need_expand="true" /> | ||
|
||
<LinearLayout | ||
android:id="@+id/ll_ad" | ||
android:layout_width="match_parent" | ||
|
Oops, something went wrong.