ExpandableTextView icon indicating copy to clipboard operation
ExpandableTextView copied to clipboard

如何出现结尾省略号呢

Open crazyzjw opened this issue 4 years ago • 3 comments

看demo也不需要设置什么就出现,但是实际使用最新的1.6.1的库确没出现结尾自动省略无论在收起还是展开

crazyzjw avatar Oct 23 '19 09:10 crazyzjw

+1

inshyma avatar May 20 '20 07:05 inshyma

@crazyzjw 这里有这样的逻辑 我觉得你应该明白了

/** * 设置展开的文案 * * @return */ private String getHideEndContent() { if (TextUtils.isEmpty(mEndExpandContent)) { return String.format(Locale.getDefault(), mNeedAlwaysShowRight ? " %s" : "... %s", mExpandString); } else { return String.format(Locale.getDefault(), mNeedAlwaysShowRight ? " %s %s" : "... %s %s", mEndExpandContent, mExpandString); } }

inshyma avatar May 20 '20 07:05 inshyma

如果你设置了 mNeedAlwaysShowRight  为true   就没有...

------------------ 原始邮件 ------------------ 发件人: "notifications"<[email protected]>; 发送时间: 2020年5月20日(星期三) 下午4:41 收件人: "MZCretin/ExpandableTextView"<[email protected]>; 抄送: "洋葱头 "<[email protected]>; "Mention"<[email protected]>; 主题: Re: [MZCretin/ExpandableTextView] 如何出现结尾省略号呢 (#46)

@inshyma 没明白...还请不吝赐教.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

inshyma avatar Jun 01 '20 04:06 inshyma