- 博客(4)
- 收藏
- 关注
转载 Android WebView的简单使用方法
1.Layout中添加Webview控件 <WebView android:id="@+id/my_webview" android:layout_width="fill_parent" android:layout_height="fill_parent" /> 2.设置支持Javascript WebSettings myWeb
2013-11-28 17:15:43 485
转载 解决Android Listview添加ImageButton,ListView点击无响应的问题
1.在imageButton的xml,属性里添加如下属性: android:focusable="false" android:focusableInTouchMode="false" 2.在listview item的xml中添加如下属性: android:descendantFocusability="blocksDescendants"
2013-11-28 16:44:46 1078
转载 ImageButton设置 android:background添加点击效果
今天在ImageButton的xml属性里直接设置了android:background="@android:color/black",可能父View的背景色也是black,点击这个ImageButton没有点击效果,而且不知道怎么回事ImageButton大小总是不对。最后在网上找了一种方法,用selector。 1.在drawable目录下建立mage_button_click.xml文件
2013-11-28 15:24:18 2101
转载 Android使用Handler异步更新UI
1.创建Handler对象: Handler myHandler = new Handler(){ @Override public void handleMessage(Message msg) { // Handle the UI thread here. // TODO Auto-generated method stub super.handleMessa
2013-11-01 11:51:04 722
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人