去除启动edittext时候默认的焦点
16lz
2021-01-23
<LinearLayout
android:focusable="true" android:focusableInTouchMode="true"
android:layout_width="0px" android:layout_height="0px"/>//必须写这里
<EditText
android:layout_width="fill_parent"
android:id="@+id/showlrcet"
android:layout_height="fill_parent"
android:textSize="15dip"
android:scrollbars="vertical"
></EditText>
其他: 这个方法测试时候没有成功
String str = lm.read(lrcpath); editlrc = (EditText)findViewById(R.id.showlrcet); editlrc.setText(str);editlrc.clearFocus();
更多相关文章
- 更改Android AVD模拟器创建路径位置的方法
- Google Android测试工程师:使用Android 进行丰富开发
- Android自动化测试之MonkeyRunner-startActivity之component(十四
- Android Button的背景图片拉伸变形解决方法
- Android中的Junit单元测试
- android设置textview限制字数以省略号显示的方法
- Android子控件超出父控件方法