
android UI
fanciman
这个作者很懒,什么都没留下…
展开
-
Androi UI Intent
Intent理论介绍: http://www.cnblogs.com/skynet/archive/2010/07/20/1781644.html 自定义Action1. 建一个HelloWord 类似的project (名为 ActionTest)修改ActionTestMa原创 2011-07-19 11:26:05 · 500 阅读 · 0 评论 -
android 居中
添加android:gravity="center" android:layout_gravity="center"属性。(android:gravity用于设置View组件的对齐方式,而android:layout_gravity用于设置Container组件的对齐方式)比如把一组button放在一个Linearlayout里面,然后给该Linearlayout添加android:gravi原创 2012-02-28 11:34:43 · 586 阅读 · 0 评论 -
在Android 2.3状态栏中添加menu,home和back快捷键的方法
http://www.cnblogs.com/endlessli/archive/2011/04/01/2002336.html在Android 2.3状态栏中添加menu,home和back快捷键的方法在Android 2.3状态栏中添加menu,home和back快捷键的方法1、准备资源,修改XML文准备几张图,这里我们准备添加home back和menu图标,就需转载 2011-11-04 10:56:49 · 736 阅读 · 0 评论 -
android UI install APK 与 监测 ACTION_PACKAGE_ADDED 事件
public class World extends Activity { private final BroadcastReceiver mApplicationsReceiver = new ApplicationsIntentReceiver();@原创 2011-10-18 11:45:30 · 7573 阅读 · 1 评论 -
android ui 读取外部设备scdard的图片设置程序背景
private static int photo_pick = 1;/*调用select picture,如果是想选择audio 则把 “image” 变为 “audio”有关之类的技巧可以看 http://blog.youkuaiyun.com/chenzheng_java/a原创 2011-08-24 16:15:41 · 1448 阅读 · 0 评论 -
android ui 修改应用背景(background)
1. setContentView(R.layout.main);this.getWindow().setBackgroundDrawable(Drawable.createFromPath(Path));以上语句如果AndroidManifest.xml 有原创 2011-08-02 16:36:09 · 2843 阅读 · 0 评论 -
android UI 开机动画和LOGO
开机LOGO (开机文字("A N D R I O D")):1. 下载安装ImageMagickconvert -depth 8 logo.png rgb:logo.raw2. android自带的rgb2565工具,对raw文件进行rle565格式转换 ou原创 2011-08-02 16:25:02 · 1758 阅读 · 0 评论 -
android ui 休眠关机动画
因项目需要要在关屏幕前播放一个动画(和开机动画差不多)。1. copy frameworks/base/cmds/bootanimation shutdownanimation修改需要打开到文件bootanimation.zip 修改Android.mk 生成 shutdowna原创 2011-07-29 10:33:21 · 1983 阅读 · 0 评论 -
Android UI Button
添加一个button:res/layout/main.xml android:layout_width="wrap_content" // 定义为根据内容自适应大小 android:layout_height="wrap_content" android:原创 2011-07-19 11:11:52 · 536 阅读 · 0 评论 -
android layout
放图片的几个文件夹hdpi里面主要放高分辨率的图片,如WVGA (480x800),FWVGA (480x854)mdpi里面主要放中等分辨率的图片,如HVGA (320x480)ldpi里面主要放低分辨率的图片,如QVGA (240x320)android会根据用户手机的原创 2011-07-20 15:12:01 · 948 阅读 · 1 评论 -
android ui EditText
添加10个EditText,获取输入并保存到文件 xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="原创 2011-07-25 16:49:36 · 556 阅读 · 0 评论 -
android ui 调用setting方法
调用某个setting, 如 wireless: Intent intent = new Intent(); intent.setAction("android.intent.action.MAIN"); intent.setCompon原创 2011-07-22 09:59:07 · 1346 阅读 · 0 评论 -
android 在界面上添加一不会消失的按键
首先要有一个不会退出的service service source: package jian.test.AlwaysShowButton;import android.app.Service;import android.content.Context;import android.content.Intent;import android.graphics.Pix原创 2012-03-21 12:08:29 · 877 阅读 · 0 评论