码迷,mamicode.com
首页 >  
搜索关键字:linearlayout    ( 1715个结果
Android LinearLayout Why Gravity Not Work
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
Android自定义适配器和ListView的点击事件相结合的使用
下边演示一个使用ListView和自定义适配器的案例,点击ListView中的条目会出现一个对话框,进行成绩的修改,修改之后会立即通知适配器进行数据的重新加载,如下: (1)、用于显示listView的布局文件:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http...
分类:移动开发   时间:2015-04-04 18:29:35    阅读次数:195
极客学院Android之2048游戏开发全过程
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
android布局学习-使用FrameLayout和LinearLayout制作QQ空间底部导航栏
【声明:本博客通过学习“J灬叶小超 ”博客而写,链接:http://www.cnblogs.com/yc-755909659/p/4288260.html】------------------------------------------------------------------------...
分类:移动开发   时间:2015-04-03 13:16:27    阅读次数:841
android 开发:使用SwipeRefreshLayout实现下拉刷新
SwipeRefreshLayout google官方的下拉刷新控件,我是使用在ListView上的。定义布局文件: 1 LinearLayout 2 xmlns:android="http://schemas.android.com/apk/res/android" 3 andro...
分类:移动开发   时间:2015-04-03 10:58:57    阅读次数:156
开源Android-PullToRefresh下拉刷新源码分析
PullToRefresh 这个库用的是非常至多,github  今天主要分析一下源码实现. 我们通过ListView的下拉刷新进行分析,其它的类似。 整个下拉刷新  父View是LinearLayout, 在LinearLayout添加了Header View ,Footer View,和ListView PullToRefreshBase 是父类 扩展了 LinearLayout水平布局...
分类:移动开发   时间:2015-04-02 15:07:19    阅读次数:128
Android实现指南针功能
(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
Android 使用LinearLayout.getChildAt(i)获取一个线性布局的view,并实现content中实现方法
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
Android实现长按QQ列表时弹出菜单效果
这里只是简单讲述原理,实现很简单功能,有兴趣的读者可自行优化修改 布局文件 <?xml?version="1.0"?encoding="utf-8"?> <LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android" ????...
分类:移动开发   时间:2015-04-01 13:41:17    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!