码迷,mamicode.com
首页 >  
搜索关键字:layout_width    ( 981个结果
安卓--信息提示框(Toast)实例
main.xml代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertica...
分类:移动开发   时间:2015-01-20 15:45:26    阅读次数:205
Android学习笔记之广播意图及广播接收者MyBroadcastReceiver、Broadcast
(1)第一种使用xml文件进行注册 布局文件,添加一个button点击的时候进行广播 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="mat...
分类:移动开发   时间:2015-01-20 15:43:35    阅读次数:154
Android开发屏幕自适应方法
先来看一下效果图: 上图是通过设置layout_weight来解决Android多屏幕自适应。该属性的作用是决定控件在其父布局中的显示权重,一般用于线性布局中。 其值越小,则对应的layout_width或layout_height的优先级就越高,一般横向布局中,决定的是layout_width的优先级;纵向布局中,决 定的是layout_height的优先级。     传统的...
分类:移动开发   时间:2015-01-20 09:03:49    阅读次数:169
Android控件-TextView
Android的控件中有很多公共的属性,这些公共属性都将以TextView为例在进行记录。1 基本使用1.1 layout_width、layout_height android:layout_width与android:layout_height可以有三种值,介绍如下:1)fill_pare...
分类:移动开发   时间:2015-01-20 00:56:44    阅读次数:293
Android的Style和Theme 译文
Style 是Window和View的一种外观和格式的属性集合。它可以作为高度,间距,字体大小,背景颜色等属性。Style是一种 xml 资源文件,放在和布局文件不同的文件夹里; Style 的设计理念和 Web一脉相承——即它们都允许你把内容和样式分离。 例如,你用Style可以把下面这个xml文件: <TextView android:layout_width="fill_par...
分类:移动开发   时间:2015-01-19 23:37:36    阅读次数:441
Android-WebView基本使用
小编一直任务将web和android组件结合起来做应用可以事半功倍,html5一来就更有说服力了,特别是对于以前从事web开发的兄弟来说 1. webview加入布局文件: http://schemas.android.com/apk/res/android"  android:id="@+id/allPage"  android:layout_width="fill_parent" ...
分类:移动开发   时间:2015-01-19 17:20:52    阅读次数:329
Dialog确定和删除按钮
main.xml代码下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical...
分类:其他好文   时间:2015-01-19 12:56:22    阅读次数:109
Android学习笔记之数据的Sdcard存储方法及操作sdcard的工具类
(1)文件的目录 (2)各文件的代码: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andr...
分类:移动开发   时间:2015-01-18 18:36:59    阅读次数:246
Android学习笔记之数据的内部存储方式实习数据的读写
(1)目录结构 (2) 布局文件: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" androi...
分类:移动开发   时间:2015-01-18 14:24:30    阅读次数:187
Android学习笔记之数据的共享存储SharedPreferences
(1)布局文件,一个简单的登录文件; <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:la...
分类:移动开发   时间:2015-01-17 20:56:16    阅读次数:273
981条   上一页 1 ... 74 75 76 77 78 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!