ListView/GridView 按住拖动黑线框/桌面背景透上来【已解决】
本文标签: GridView , listview , 黑线框
方法1:listView.setDividerHeight(0);
方法2:this.getListView().setDivider(null);
方法3:android:divider="@null"
方法4:setCacheColorHint(0);
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);
==============================================================
声明: 本文由( 张飞不张,文采横飞 )原创编译,转载请保留链接: ListView/GridView 按住拖动黑线框/桌面背景透上来【已解决】
更多相关文章
- startActivity调用流程及生命周期
- android下图片处理方法[转]
- 【Android】NDK中log输出方法
- 【Android(安卓)开发教程】显示普通对话框
- Android(安卓)Studio 使用svn/git添加ignore忽略文件方法
- android 出现各种乱码解决方法汇总
- Unity3D 与Android(安卓)相互传递消息
- 百度地图SDK for Android(安卓)v2.1.2全新发布
- Android开源组件SlidingMenu的基本使用方法和SlidingMenuDemo