![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TextView
cxjwpp
这个作者很懒,什么都没留下…
展开
-
Android的TextView和EditText可复制
转载自:https://blog.csdn.net/iromkoear/article/details/75089673转载 2021-01-06 16:25:56 · 220 阅读 · 0 评论 -
TextView是如何实现弹窗复制粘贴
转载自:https://blog.csdn.net/huawuque183/article/details/78559605转载 2021-01-07 09:02:07 · 299 阅读 · 0 评论 -
TextView实现跑马灯效果
转载自:https://blog.csdn.net/suyimin2010/article/details/81270339转载 2020-12-31 16:01:21 · 694 阅读 · 1 评论 -
自定义TextView的drawable可设置大小
方式一:代码设置 TextView textView = findViewById(R.id.tv); Drawable drawable = getResources().getDrawable(R.drawable.apple); drawable.setBounds(0, 0, dp2px(45), dp2px(45)); textView.setCompoundDrawables(drawable, null, null, null)...原创 2020-06-06 13:16:09 · 588 阅读 · 0 评论 -
TextView的巧妙使用,利用drawableBottom实现控件下方带分割线的效果
1.以下是下划线(重点是要设置宽度,不然无法显示)原创 2020-05-18 10:00:59 · 479 阅读 · 0 评论 -
Textview控件包含两部分内容,需要调整前半部分内容省略显示,后半部分完全显示
判断是否省略了字符(最好是在addOnGlobalLayoutListener里面获取,否则容易获取为空)TextView textView = (TextView) findViewById(R.id.txt_course_introduce); Layout l=textView.getLayout(); if(l!=null){ int lines =l.getLineCount(); LogUtils.d(TAG,...原创 2020-05-13 10:21:44 · 261 阅读 · 0 评论