首页 > 2014年12月07日 > 全部分享
android之网格布局GridLayout
TableLayout(网格布局)需要注意的:网格布局需要最低版本支持:API14也就是最低andriod4.0:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"..
分类:移动平台   时间:2014-12-07 06:50:46    收藏:0  评论:0  赞:0  阅读:326
简易煮面条
简介未经允许,不得转载!挂面是以小麦粉添加盐、碱、水经悬挂干燥后切制成一定长度的干面条。南方大多都吃这挂面,一日三餐都可以拿来作为主食食用。食材主料挂面150g辅料油适量盐适量生抽适量味精适量步骤1.先来张食材的图2.坐锅,开火,倒水3.水沸后,加入面条4.准备凉白开一..
分类:其他   时间:2014-12-07 06:50:36    收藏:0  评论:0  赞:0  阅读:224
android之线性布局LinearLayout以及weight权重使用
LinearLayout(线性布局)::layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orient..
分类:移动平台   时间:2014-12-07 06:50:26    收藏:0  评论:0  赞:0  阅读:327
android之网格布局和线性布局实现注册页面
android之网格布局和线性布局实现注册页面(注意:1、再用weight的时候,各个组件要设置宽度为0dp,高度也要设置,2、即使没有设置weight,再用linear布局时,比如view和button都要设置宽度高度。3、如果出现运行错误,可以先检查哪个组件没设置高度):values/strings.xml<..
分类:移动平台   时间:2014-12-07 06:50:16    收藏:0  评论:0  赞:0  阅读:349
android之实现各个组件点击事件处理
android之实现各个组件点击事件处理:注意:(TextView这个组件要点击产生效果的话,要设置,android:clickable="true"这个属性)布局:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.andr..
分类:移动平台   时间:2014-12-07 06:50:06    收藏:0  评论:0  赞:0  阅读:253
服务器运维常用的python模块概述
最近开始复习python的使用,把服务器运维常用的模块的用法进行了实例化概述。==========sort========================= python排序; ls=[1,31,13,141,41] ls.sort() printls 元组sort: >>>lst=[(‘wyl‘,24),(‘hjj‘,25),(‘zs‘,22),(‘lisi‘,14)] >>>sorted(l..
分类:编程语言   时间:2014-12-07 06:49:56    收藏:0  评论:0  赞:0  阅读:362
android之实现各个组件点击事件监听
布局:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical">&l..
分类:移动平台   时间:2014-12-07 06:49:46    收藏:0  评论:0  赞:0  阅读:217
android之实现ProgressBar进度条组件
android之实现ProgressBar进度条组件:(注意:横向那个进度条要android4.0以上版本支持,也就是最低(android:minSdkVersion="14")支持)布局:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://sch..
分类:移动平台   时间:2014-12-07 06:49:36    收藏:0  评论:0  赞:0  阅读:319
android之实现SeekBar拖动组件
android之实现SeekBar拖动组件:布局:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"androi..
分类:移动平台   时间:2014-12-07 06:49:26    收藏:0  评论:0  赞:0  阅读:300
android之实现注册功能
2014-11-2317:3217人阅读评论(0)收藏编辑删除android之实现注册功能:注意:(1、之前一直找不到不成功的原因,经过调试,找到了,原来是:Toast.makeText(this,"用户名不能为空",2000).show()没调用show方法;2、在switch下的case语句后一定要加break,不然他就会一直执行下一..
分类:移动平台   时间:2014-12-07 06:49:16    收藏:0  评论:0  赞:0  阅读:457
android之无返回结果跳转intent
android之无返回结果跳转intent:(注意跳转的时候要传像user的对象必须实现Serializable接口)登陆页面布局:layout/activity_login.xml:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:..
分类:移动平台   时间:2014-12-07 06:49:06    收藏:0  评论:0  赞:0  阅读:403
android之有返回结果跳转intent
android之有返回结果跳转intent:(1、注意跳转的时候要传像user的对象必须实现Serializable接口,2、login的java代码中setResult(RESULT_OK,intent);后一定要调用finish()方法)主页面布局:layout/activity_main.xml:<RelativeLayoutxmlns:android="http://schemas.andro..
分类:移动平台   时间:2014-12-07 06:48:56    收藏:0  评论:0  赞:0  阅读:297
14章类型信息
1、初始化被延迟到了对静态方法(构造器隐式地是静态的)或者非常数静态域进行首次引用时才执行01、staticfinalintstaticFinal=47;这样直接引用class就可以不用初始化,因为这个是编译期常量,这个值不需要对Initable类进行初始化就可以被读龋02、staticfinalintstaticFinal2=C..
分类:其他   时间:2014-12-07 06:48:46    收藏:0  评论:0  赞:0  阅读:189
android之activities的生命周期
生命周期图片:测试主页面布局::layout/activity_main.xml<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:p..
分类:移动平台   时间:2014-12-07 06:48:26    收藏:0  评论:0  赞:0  阅读:388
android之bundle传递数据--两个activities之间
登陆页面布局:layout/activity_login.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertic..
分类:移动平台   时间:2014-12-07 06:48:16    收藏:0  评论:0  赞:0  阅读:437
android之纵横屏幕切换时保存数据
java代码:packagecom.sxt.day04_05;importjava.io.IOException;importjava.io.InputStream;importjava.net.MalformedURLException;importjava.net.URL;importjava.net.URLConnection;importcom.sxt.day04_05.R;importandroid.app.Activity;importandroid.os.Bundle;importandr..
分类:移动平台   时间:2014-12-07 06:48:06    收藏:0  评论:0  赞:0  阅读:303
《LUA游戏开发实践指南》学习笔记1
本文只做个人学习笔记!Lua脚本语言的优点:免费、小巧、快速和易移植。游戏项目中的Lua,可以完成以下工作编辑游戏用户界面(玩家和你的游戏进行交互的媒介)定义、存储和管理游戏数据(Lua本人并没有直接访问外部数据库的能力,但可以使用C++组件)管理游戏实时事件创建和维..
分类:其他   时间:2014-12-07 06:47:56    收藏:0  评论:0  赞:0  阅读:277
android之启动桌面activity
主页面布局:layout\activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><Buttonandroid:id="@+id/btnHome"android..
分类:移动平台   时间:2014-12-07 06:47:46    收藏:0  评论:0  赞:0  阅读:386
android之ListView和adapter配合显示图片和文字列表
listView页面布局:layout/activity_main.xml:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="ho..
分类:移动平台   时间:2014-12-07 06:47:26    收藏:0  评论:0  赞:0  阅读:372
android之simpleAdaper应用
listView页面布局:layout/activity_main.xml:<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:paddingBottom..
分类:移动平台   时间:2014-12-07 06:47:16    收藏:0  评论:0  赞:0  阅读:309
1072条   上一页 1 ... 42 43 44 45 46 ... 54 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!