android 去掉listview之间的黑线
方法1:listView.setDividerHeight(0);
方法2:this.getListView().setDivider(null);
方法3:android:divider="@null"
android:cacheColorHint="#00000000"设置其为透明! 默认为黑色!
===============================================================
//解决ScrollView中顶部banner不置顶显示问题
ScrollView sv = (ScrollView)findViewById(R.id.sv);
sv.smoothScrollTo(0,0);
===============================================================
Android:键盘挡住输入框解决办法:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE |
WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
XML:
<ScrollView android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/Relative"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content">
。。。。。。
</LinearLayout>
</ScrollView>
==============================================================
Android:动态控制软键盘的弹出和收起:
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
==============================================================
更多相关文章
- Android:解决列表滚动时背景色变黑的方法
- 把android平板USB上输出LOG方法
- Windows下Android开发环境配置的一种方法
- Android Studio 3.0找不到Android Device Monitor的解决方法
- android 5.1 usb调试默认关闭设置方法
- Android--ListView滑动时出现黑屏解决方法(整合)
- Android软键盘手动显示、隐藏、布局上移和EditText上移
- [置顶] 调用Android发短信接口Intent.ACTION_SENDTO
- Android不错的图片压缩方法