![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
view
文章平均质量分 60
张漂亮2号
既然选择了远方.便只顾风雨兼程
展开
-
Android RecyclerView 去掉滑动边缘阴影效果
设置滑动到边缘时无效果模式:android:overScrollMode="never"设置不显示滚动条:android:scrollbars="none"<android.support.v7.widget.RecyclerView android:id="@+id/rlv_message_list" android:layout_width="match_...原创 2018-01-22 16:51:07 · 16287 阅读 · 2 评论 -
AndroidStudio mipmap图片大小,读取顺序各个目录对应的尺寸
面试题:Android资源目录的读取顺序?Android资源文件可以定义在不同分辨率、屏幕方向、语言等(甚至还有夜间模式),当我们的应用需要使用一个资源,这个资源(图片、Layout或者别的)可能在很多res下的子目录中都存在,那么Android系统是如何确认使用哪一个资源呢?可以先看一下官方文档提供资源(https://developer.android.com/guide/topics...原创 2018-01-22 16:57:48 · 10561 阅读 · 0 评论 -
Android 设置TextView或者view其他视图的图标
/** * 设置TextView右侧图标 * * @param textView */public static void setTextViewRightDrawable(TextView textView, int icon) { Drawable drawable = textView.getContext().getResources().getDrawable(icon原创 2018-01-17 18:07:46 · 590 阅读 · 0 评论 -
EditText把软键盘上的回车键改为搜索、发送或者 下一步,窗口随软键盘弹出而改变。
Android Edittext获取焦点后,弹出的软键盘显示搜索、发送、完成等功能在EditText加一个属性android:imeOptions="actionSearch"(搜索)android:imeOptions="actionSend"(发送) android:imeOptions="actionNext"(下一项),android:imeOptions=原创 2018-01-22 17:24:42 · 4023 阅读 · 0 评论 -
android 隐藏软键盘,显示软键盘
/** * 隐藏软键盘,显示软键盘 * Created by g on 2018/1/22. */public class KeyboardUtils { /** * 隐藏软键盘 */ public static void hinKeyboard(Context context, View view) { InputMethodManag原创 2018-01-22 17:44:50 · 302 阅读 · 0 评论