如果文本超过两行,我尝试在textView的末尾添加"Read more“,但我很难做到这一点。我的TextView如下所示:
<TextView
android:id="@+id/reviewText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:layout_marginLeft="1dp"
android:text=""
android:maxLines="2"
android:ems="3"
android:ellipsize="end"
android:textColor="#FFFFFF" />所以为了澄清,现在我得到了三个点,因为椭圆大小,但我真的希望它写成“阅读更多”。
顺便说一下,我的软件支持API级别的14+。
发布于 2015-03-17 01:28:38
尝试添加以下两行:
abdroid:focusable="true"
android:focusableInTouchMode="true"发送到您的TextView
https://stackoverflow.com/questions/29080032
复制相似问题