- 浏览: 435834 次
- 性别:
- 来自: 苏州
-
最新评论
-
yehuiyan8002:
支持中文查询
快熟查找联系人 -
lehehe:
现成的接口,免费试用,http://www.haoservic ...
天气Widget -
D.Z:
android:focusable="false&q ...
CheckBox在ListView 而导致其OnItemClickListener不会被触发 -
freecode:
碰到该问题,CheckBox的android:focusabl ...
CheckBox在ListView 而导致其OnItemClickListener不会被触发 -
echohfut:
哥们,新博客是不是在墙外啊?不能访问。还有你怎么进行博客迁移的 ...
博客 迁移
文章列表
[功能]
大家都有如此需求 即 界面不是固定的 而是在程序中随着一些参数的变化 做实时的改动 那应该怎么做到呢? 在xml 中是不可行的 那在java 中呢?
[原理]
1. android 提供了一些 layout,比如:LinearLayout 我们大家可以运用这些
2. 使用layout: setContentView()
[代码]
1. 一个例子.
public class LayoutAdd1Usage extends Activity {
private static final int TEXTVIEW_1 = 1;
private static final i ...
自定义 Dialog
[功能]
android 提供给我们的只有2种Dialog 即 AlertDialog & ProgressDialog 但是 Dialog 有其自身的特点:1. 不是 Activity 2. 开销比 Activity 小得多
鉴于以上的优点 我们就有定制自己Dialog 的需求
[原理]
1. android 系统提供了一个class: Dialog. 而且你可以把自己的工作放在"protected void onCreate(Bundle savedInstanceState)" 在里面先调用系统的"super.onCreate ...
开机启动
[功能]
就像Windows XP 那样开机启动 当系统启动完毕 就会运行你的程序
[原理]
1.android 有一个系统Broadcast 其action = "android.intent.action.BOOT_COMPLETED" 用途就是 通知系统已经启动完毕
[做法]
1. 创建一个BroadcastReceiver 用来接收该Broadcast 在收到以后通过startActivity / startService 来启动目标应用
[代码]
1. UpNotificationListener 用于接收相应的Broadcast 然后启动相 ...
to import Activity or Context as following.
How to do:
1. public class MyExample extends Activity.
<activity android:name=".SystemUpApp"
android:label="@string/app_name">
<intent-filter>
<action android:name="an ...
first,it's all about android.
latter,...!
于公 android对中国的山寨是个机遇 或许是产业升级的一次机会或者尝试
于私 android也是我脑外伤后智力没有损伤的最好证明
所以 让我们从android自学开始吧。
Let's walk into android!