页面布局文件 代码:private int[] res={R.id.imageView_a,R.id.imageView_b,R.id.imageView_c, R.id.imageView_d,R.id.imageV...
分类:
其他好文 时间:
2015-01-16 19:04:18
阅读次数:
204
(1)布局文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height...
分类:
移动开发 时间:
2015-01-16 16:43:49
阅读次数:
138
(1)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="ma...
分类:
移动开发 时间:
2015-01-16 14:43:14
阅读次数:
182
urllib来解析域名import urllib
print "--"*40
for url in urls:
proto, rest = urllib.splittype(url)
res, rest = urllib.splithost(rest)
print "unkonw" if not res else res...
分类:
编程语言 时间:
2015-01-16 13:09:03
阅读次数:
204
今天开始陆续整理一下一些常规的Android常用开发实用程序。
第一季:Android播放动画的方法示例
1. 通常动画都是gif图像,推荐使用easygifanimator工具来将其拆解为多个图片,建议是png的;
2. 在Android工程的res目录下新增anim目录,新建一个xml文件,比如loading.xml:
xmlns:android="http://sch...
分类:
移动开发 时间:
2015-01-16 13:04:20
阅读次数:
159
一个Android应用最基本的文件结构:
1.res 存放资源文件
2.src 存放Java源文件
3.AndroidManifest.xml
这中间,Java负责逻辑的处理,而界面设计的布局信息由XML负责。
设计用户界面的方法通常有两种:过程性设计和声明性设计。Android应用开发同时支持上述两种。但事实上,谷歌建议尽可能用声明性的XML语言,因为它更简洁,更高效。
下面介绍XM...
分类:
移动开发 时间:
2015-01-16 10:05:31
阅读次数:
203
(1)该文件下载主要演示异步任务下载图片
(2)布局代码如下:一个ImageView用于存放下载的图片,Button用于开始异步任务下载
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
...
分类:
移动开发 时间:
2015-01-16 10:05:20
阅读次数:
211
(1)布局文件layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_...
分类:
移动开发 时间:
2015-01-15 22:12:06
阅读次数:
204
我们经常要用到圆角矩形,这也是现在的流行的样式..但是今天在工作中,遇到要写圆角矩形有边框但无背景色的button,本来想让妹子帮忙切图的,但是不想麻烦妹子,自己撑着,说可以做,结果弄了老半天菜搞定的,现在给大家看看,以后避免这麻烦...()
<shape xmlns:android="http://schemas.android.com/apk/res/android"
androi...
分类:
移动开发 时间:
2015-01-15 22:06:02
阅读次数:
133
首先,android 程序大致分为资源和代码资源就是assets和res,assets里可以放文件,在打包成akp的过程中,此目录下的文件会原封不动的封入包里。AssetManageram=getAssets(); InputStreamis=assset.open("filename");res目...
分类:
移动开发 时间:
2015-01-15 20:17:57
阅读次数:
266