Some Android Developer may not know well of Linearlayout . This may help you to know sth about the gravity of its chilren; -------------------CONET ------------------ 1) wahts the diffrence between...
分类:
移动开发 时间:
2015-04-04 18:33:26
阅读次数:
169
下边演示一个使用ListView和自定义适配器的案例,点击ListView中的条目会出现一个对话框,进行成绩的修改,修改之后会立即通知适配器进行数据的重新加载,如下:
(1)、用于显示listView的布局文件:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http...
分类:
移动开发 时间:
2015-04-04 18:29:35
阅读次数:
195
2048完整开发
课1、游戏2048玩法介绍
同一条线上的相同数字折叠
课2、创建2048游戏项目
修改布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:...
分类:
移动开发 时间:
2015-04-03 17:24:56
阅读次数:
183
【声明:本博客通过学习“J灬叶小超 ”博客而写,链接:http://www.cnblogs.com/yc-755909659/p/4288260.html】------------------------------------------------------------------------...
分类:
移动开发 时间:
2015-04-03 13:16:27
阅读次数:
841
SwipeRefreshLayout google官方的下拉刷新控件,我是使用在ListView上的。定义布局文件: 1 LinearLayout 2 xmlns:android="http://schemas.android.com/apk/res/android" 3 andro...
分类:
移动开发 时间:
2015-04-03 10:58:57
阅读次数:
156
PullToRefresh 这个库用的是非常至多,github 今天主要分析一下源码实现.
我们通过ListView的下拉刷新进行分析,其它的类似。
整个下拉刷新 父View是LinearLayout, 在LinearLayout添加了Header View ,Footer View,和ListView
PullToRefreshBase 是父类 扩展了 LinearLayout水平布局...
分类:
移动开发 时间:
2015-04-02 15:07:19
阅读次数:
128
(1)布局文件如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"...
分类:
移动开发 时间:
2015-04-01 21:56:38
阅读次数:
260
1、定义接口content的方法,如ok,cancle;2、在View的处理类myview中实现content的方法。3、通过contently.getChildAt(i)的方法获得View v;4、可以使用 content ct = (content)v;5、使用ct.ok()和ct.cancel...
分类:
移动开发 时间:
2015-04-01 19:15:41
阅读次数:
508
不在xml中设置布局,在代码中直接写个布局,显示下载的图片,如下图所示,图片有点丑
XML中添加个linearLayout<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:l...
分类:
其他好文 时间:
2015-04-01 17:53:17
阅读次数:
272
这里只是简单讲述原理,实现很简单功能,有兴趣的读者可自行优化修改 布局文件 <?xml?version="1.0"?encoding="utf-8"?>
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android"
????...
分类:
移动开发 时间:
2015-04-01 13:41:17
阅读次数:
169