- 博客(4)
- 资源 (1)
- 收藏
- 关注
转载 android隐藏关闭软键盘
现在有一个需求是说希望可以自动的隐藏和打开软键盘,场景是使用在alert dialog中有一个文本框,弹出dialog同时自动弹出键盘,编辑后点击完成直接关闭。使用的方式是:inputManager.showSoftInput(tvEditor, InputMethodManager.SHOW_FORCED);如果使用参数InputMethodManager.SHOW_IMPLICI
2017-06-30 12:01:50 287
原创 Intent隐式跳转及参数传递
简单来说intent隐式跳转就是用action打开activity,server,broadcast。intent传递参数的方式有两种,一种是大家熟悉的extra,键值对的形式,直接传递参数;另一种就是uri的方式,String str = "content://com.android.test?username=merlin&password=123456"; Uri uri = Uri.p
2017-03-23 10:35:19 5187 1
原创 android listview和scrollView兼容的一种方法
@Overrideprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.o
2016-06-22 14:16:24 554
原创 浅聊android中的继承
继承、封装、多态是java的三大特性。 继承 定义就是子类继承父类共有的属性和共有的方法。下边来举个栗子: public class Father { public static final String TAG= "father"; public int num1 = 1; private int num2 = 2; public St
2016-05-25 21:29:06 640
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人