AlignTextView icon indicating copy to clipboard operation
AlignTextView copied to clipboard

字体对齐的textview

Results 26 AlignTextView issues
Sort by recently updated
recently updated
newest added

使用AlignTextView加载长文本, 限制最大行数10行 返回桌面,或者启动其他activity, 文本高度会缩小

如果给AlignTextView添加padding,那么内容会挤在一起。

Spann不起作用了

在process(boolean setText)方法中的settext之前处理newText,例如 SpannableString spannableString = new SpannableString(newText); int a = newText.toString().indexOf(data); Log.e(TAG, "a=" + a); while (a != -1) { ForegroundColorSpan colorSpan = new ForegroundColorSpan(ContextCompat.getColor(getContext(), R.color.colorAccent)); spannableString.setSpan(colorSpan, a, data.length() +...

麻烦问下RecyclerView中使用AlignTextView会产生错乱问题目前还是没有解决么?手动requestLayout();的方法也是无效

底部相当大的空白,无法使用。

在RecyclerView中adapter的适配器中用AlignTextView,会出现item显示的内容混乱。

所有的item的AlignTextView或CBAlignTextView在XML中设置android:ellipsize="end"和android:maxLines="4"后,点击第一页屏幕内可以见点击item的展开显示全部内容后,上滑第二页的item可以见的时候,会有某天个item默认是展开显示全部内容的,内容文本显示也有些不对比如: EOS从5.2美元(这是原本内容中的某一个部分),显示时:EOS从5. 2美元(5.后面空格了一大tab键) 这是在adapter中设置的点击事件 holder.alignTextView.reset(); holder.alignTextView.setText(s); holder.alignTextView.setOnClickListener(new View.OnClickListener() { boolean flag = true; @Override public void onClick(View v) { if (flag) { flag = false; holder.alignTextView.setSingleLine(flag); holder.alignTextView.setEllipsize(null); // 展开 }...

在RecyclerView中使用AlignTextView,会出现item显示错乱(假如列表为空,动态添加第一条正常,不会错乱,大于等于一条数据后,再做一次动态添加,显示位置就乱了),最后一行被裁减,最后一行会多出一行空行 implementation 'me.codeboy.android:align-text-view:2.3.2' 出现机型,红米note4 Samsung nexus6p 华为 vivo OPPO 魅族 系统版本(5.0-8.1都有) adapter中给AlignTextView赋值使用代码如下: AlignTextView replyTextView = helper.getView(R.id.tv_reply); SpannableStringBuilder spannableString = new SpannableStringBuilder(); spannableString.append("专家回复:").append(replyText); StyleSpan styleSpan = new StyleSpan(Typeface.BOLD);//粗体 spannableString.setSpan(styleSpan, 0, 5,...