码迷,mamicode.com
首页 >  
搜索关键字:布局文件    ( 2238个结果
Android学习笔记之fragment的静态加载和动态加载
1.xml布局文件:main.xml 1 4 5 10 11 12 19 20 30 31 41 42 52 53 63 ...
分类:移动开发   时间:2014-11-28 20:11:12    阅读次数:308
【安卓笔记】气泡式ListView
实现效果: 要想实现这个效果,我们需要找到气泡背景的9.png图片,大家可以从qq微信等apk包中提取。 实现步骤: 1.编写布局文件。 每个条目的布局 activity_chat_singlemessage.xml <LinearLayout xmlns:android="http://schemas.androi...
分类:移动开发   时间:2014-11-28 18:22:01    阅读次数:231
【安卓笔记】ExpandableListView的使用
实现效果: 即可伸展的ListView 其实跟普通的ListView使用没啥区别,只是ListView改为了ExpandableListView,另外适配器由BaseAdapter也换成了BaseExpandableListAdapter。 步骤: 1.编写布局文件。 分为三个,分别是主布局,group分组布局,...
分类:移动开发   时间:2014-11-28 18:21:47    阅读次数:238
Android基本组件-Activity
什么是Activity 在Android程序中,每个Activity继承自android.app.Activity, 有一个与之对应的xml布局文件, 一个界面对应一个Activity, 每个Activity都需要在AndroidManifest.xml中注册 Activity通过布局管理方式组织控...
分类:移动开发   时间:2014-11-28 16:17:04    阅读次数:226
Android ListView的item背景色设置
1.如何改变item的背景色和按下颜色   listview默认情况下,item的背景色是黑色,在用户点击时是黄色的。如果需要修改为自定义的背景颜色,一般情况下有三种方法:   1)设置listSelector   2)在布局文件中设置item的background   3)在adapter的getview中设置...
分类:移动开发   时间:2014-11-27 16:23:32    阅读次数:174
spinner使用自定义的Adapter
运行效果                                定义每一个Item的布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_w...
分类:其他好文   时间:2014-11-27 14:34:36    阅读次数:220
Android布局文件layout.xml的一些属性值
第一类:属性值 true或者 falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_centerInparent 相对于父元素完全居中android:layout_alignP...
分类:移动开发   时间:2014-11-27 01:29:52    阅读次数:278
让你的APP和你的服务器畅快通讯
做安卓开发有很多时候都是要和web交互的,我们很难制作本地应用,这次把小弟整出来的安卓和服务器通讯贡献出来,希望能帮到需要的朋友,同时也是加深印象。我们先来搭建安卓客户端,首先写好布局文件:1.布局文件Register.xml:Xml代码2.Activity文件:RegisterActivity.j...
分类:移动开发   时间:2014-11-26 15:49:36    阅读次数:231
Android布局规范
文章转载禁止用于商业用途,且不能带有虚拟货币、积分、注册等附加条件。转载须注明出处莫高雷草原以及作者@JiongBull。 布局规范 单位 1. 尺寸 除了在代码中会使用到像素单位的尺寸外,在布局文件中必须使用dp单位的尺寸。由于部分机型用户可以调整手机字体大小,为了避免字体大小的调整影响到布局结构,字号的单位也要求使用dp单位的尺寸。 ...
分类:移动开发   时间:2014-11-26 14:20:32    阅读次数:224
Android学习笔记之控件Spinner
1.mian.xml布局文件 1 2 6 7 13 14 19 20 21 2.item.xml样式布局文件 1 2 6 7 12 13 20 21 22 3.java代码 1 public class Ma...
分类:移动开发   时间:2014-11-26 13:58:32    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!