有的时候,我们配置好的布局文件,在加载完成添加到我们的Activity中后发现,并没有安装我们设置的属性来布局,比为我们设置了android:layout_marginTop="100dip",但是运行程序后发现一点作用都没有,相似的还有layout_height等以android:layout_开...
分类:
移动开发 时间:
2015-05-09 18:52:04
阅读次数:
158
最近用到了com.handmark.pulltorefresh.library.PullToRefreshListView的下拉刷新
发现了两个问题
1.PullToRefreshListView的layout_height必须要设为match_parent,之前ListView设为wrap_content是没有问题的,这一点要注意。
2.PullToRefreshListView的visi...
分类:
其他好文 时间:
2015-05-08 10:57:23
阅读次数:
127
1、效果图
2、功能实现
2.1 布局结构
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="80dip"
andr...
分类:
其他好文 时间:
2015-04-29 17:04:40
阅读次数:
169
主要布局如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="...
分类:
其他好文 时间:
2015-04-29 15:10:59
阅读次数:
177
view:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_...
分类:
其他好文 时间:
2015-04-26 09:33:14
阅读次数:
155
avtivity_cehua.xml
<android.support.v4.widget.DrawerLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer"
android:layout_width="match_parent"
android:layout_height="matc..
分类:
移动开发 时间:
2015-04-24 19:25:03
阅读次数:
159
布局文件layout背景色里:
<LinearLayout
android:layout_width="130dp"
android:layout_height="104dp"
android:background="@drawable/bg_frame"
android:orientation="vertical">
drawable/bg_frame.xml内容如下
<?xmlversion="1.0"encoding="UTF-8"?>
<laye..
分类:
移动开发 时间:
2015-04-24 16:45:31
阅读次数:
519
从手机中选择照片这是几乎所有应用的功能之一,主要考虑到一点的就是如果图片太大了,可能会OOM,简单的处理就是对图片进行压缩!
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
...
分类:
其他好文 时间:
2015-04-23 15:47:17
阅读次数:
160
需求:实现日历功能中的天数,在一个图标中显示当前日期的天数先上效果图:关键xml布局文件:<FrameLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_margin="4dp">
<ImageView
android:id="@+id/itemImage"
android..
分类:
移动开发 时间:
2015-04-22 16:16:03
阅读次数:
219
android:id="@+id/slidingdrawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:content="@+id/content"
android:handle="@+id/handle"
android:or...
分类:
移动开发 时间:
2015-04-22 11:38:22
阅读次数:
146