一、第一种方法:
(1)Fragment的第一种使用方法是使用fragment加载单独的布局文件:(也就是xml的方式实现)
结构如下:
activity_main.xml主要是在一个线性布局中添加两个线性布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:t...
分类:
移动开发 时间:
2015-01-19 22:46:36
阅读次数:
173
# /res/values 目录详解------**/res/values** 下可以放置的文件有:> * strings.xml > * arrays.xml > * dimens.xml > * colors.xml > * styles.xml### 绘制表格| 文件类型 |作用|temp| ...
分类:
其他好文 时间:
2015-01-19 22:40:20
阅读次数:
378
经过第二天的学习,我们正确的调用了百度天气API,将天气信息显示到了界面上,做到这一步,我们的工作就算是完成1%了,剩下99%的工作就需要不断的润色这个未成形的APP了。最首要的就是,我们要把那么一大堆字符转换为普通用户可以轻松理解的界面,那么我们来学习一下Android里面的界面布局。打开res/...
分类:
移动开发 时间:
2015-01-19 20:51:35
阅读次数:
207
小编一直任务将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
重写的TextView
package com.glory.room.view;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphic...
分类:
移动开发 时间:
2015-01-19 14:24:26
阅读次数:
219
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要实现启动画面可以这样做:
这是splash.xml布局文件的代码[code]
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layou...
分类:
移动开发 时间:
2015-01-19 12:54:50
阅读次数:
219
#tar xvzf redis-py-2.2.1.tar.gz#cd redis-py-2.2.1#python setup.py install附件:https://app.yinxiang.com/shard/s41/res/689fcc84-4411-4ee6-b7a9-6bbaefb8a3b...
分类:
编程语言 时间:
2015-01-19 12:34:46
阅读次数:
287
搜索引擎网站收录地址大全360搜索引擎登录入口:http://info.so.360.cn/site_submit.html即刻搜索网站提交入口:http://zz.jike.com/submit/genUrlForm盘古数据开放平台:http://open.panguso.com/data/res...
分类:
Web程序 时间:
2015-01-19 10:36:55
阅读次数:
677
下面以QQ登陆为案例介绍数据存储,需要提醒的是这是存储到文件里的。
功能:
①打开应用时,会自动去填充输入框的内容。
②登陆时,会有相关的提示。
运行效果:
视图页面xml代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http...
分类:
移动开发 时间:
2015-01-19 09:22:44
阅读次数:
144