Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ChayChan
PowerfulViewLibrary
提交
b7dc9a71
P
PowerfulViewLibrary
项目概览
ChayChan
/
PowerfulViewLibrary
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
6
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PowerfulViewLibrary
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
6
Issue
6
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b7dc9a71
编写于
4月 10, 2017
作者:
C
chaychan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改expandableTextView,使用对齐的TextView(alignTextView)
上级
383f06fc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
1 deletion
+26
-1
ExpandableTextView/build.gradle
ExpandableTextView/build.gradle
+0
-1
app/build.gradle
app/build.gradle
+1
-0
app/src/main/java/com/chaychan/powerfulviewlibrary/MainActivity.java
...n/java/com/chaychan/powerfulviewlibrary/MainActivity.java
+5
-0
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/activity_main.xml
+20
-0
未找到文件。
ExpandableTextView/build.gradle
浏览文件 @
b7dc9a71
...
...
@@ -31,6 +31,5 @@ dependencies {
compile
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
testCompile
'junit:junit:4.12'
compile
'com.android.support:appcompat-v7:23.4.0'
compile
'me.codeboy.android:align-text-view:2.3.0'
compile
project
(
':AliagnTextView'
)
}
app/build.gradle
浏览文件 @
b7dc9a71
...
...
@@ -24,4 +24,5 @@ dependencies {
testCompile
'junit:junit:4.12'
compile
'com.android.support:appcompat-v7:24.2.1'
compile
project
(
':viewlib'
)
compile
project
(
':ExpandableTextView'
)
}
app/src/main/java/com/chaychan/powerfulviewlibrary/MainActivity.java
浏览文件 @
b7dc9a71
...
...
@@ -10,6 +10,8 @@ import android.widget.Toast;
import
com.chaychan.viewlib.ExpandableLinearLayout
;
import
com.chaychan.viewlib.PowerfulEditText
;
import
jaydenxiao.com.expandabletextview.ExpandableTextView
;
public
class
MainActivity
extends
AppCompatActivity
{
@Override
...
...
@@ -28,6 +30,9 @@ public class MainActivity extends AppCompatActivity {
}
});
ExpandableTextView
etv
=
(
ExpandableTextView
)
findViewById
(
R
.
id
.
tv_intro
);
etv
.
setText
(
"啊哈可接受的看哈市的哈数据库和的看就好撒看就好将卡上的空间哈看就好啊数据库和的空间哈市科空间哈市科技很多借口撒谎的健康哈数据库空间哈市科技很多借口撒谎的健康哈数据库空间哈市科技很多借口撒谎的健康哈数据库空间哈市科技很多借口撒谎的健康哈数据库技很多借口撒谎的健康哈数据库将撒谎的健康哈啊市科技哈看就好啊数据库的哈看将撒谎空间的哈市科技哈看将"
);
View
view1
=
View
.
inflate
(
this
,
R
.
layout
.
item_expandable_linear_layout
,
null
);
View
view2
=
View
.
inflate
(
this
,
R
.
layout
.
item_expandable_linear_layout
,
null
);
View
view3
=
View
.
inflate
(
this
,
R
.
layout
.
item_expandable_linear_layout
,
null
);
...
...
app/src/main/res/layout/activity_main.xml
浏览文件 @
b7dc9a71
...
...
@@ -28,4 +28,24 @@
app:hideText=
"查看更多"
/>
<jaydenxiao.com.expandabletextview.ExpandableTextView
android:id=
"@+id/tv_intro"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_margin=
"10dp"
android:ellipsize=
"end"
android:textColor=
"#666"
app:animDuration=
"200"
app:collapseDrawable=
"@drawable/icon_green_arrow_down"
app:collapseExpandGrarity=
"right"
app:collapseExpandTextColor=
"@color/main_color"
app:contentTextSize=
"12sp"
app:expandDrawable=
"@drawable/icon_green_arrow_up"
app:maxCollapsedLines=
"3"
app:textCollapse=
"@string/collapse"
app:textExpand=
"@string/expand"
/>
</LinearLayout>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录