Fragment
文章平均质量分 73
JMathias
这个作者很懒,什么都没留下…
展开
-
解决在Fragment中不能自动弹出软键盘的问题
1.在Activity中,EditText 无法自动弹出软键盘,可以在尝试在AndroidManifest中设置android:windowSoftInputMode=adjustResize也可以edit.setFocusable(true); edit.setFocusableInTouchMode="true" edit.requestFocus(); 2.在Fragmen转载 2016-10-22 12:12:42 · 2894 阅读 · 0 评论 -
Activity和Fragment两两之间的数据传递
一、Activity之间传递数据1、使用Intent传递一般数据(如字符串)(1)发送数据Intent intent = new Intent(this,SecondActivity.class);intent.putExtra("data","sldkjfoei");startActivity(intent);(2)接收数据Intent inten原创 2016-05-02 23:35:15 · 1373 阅读 · 0 评论