写了一个android上的代码浏览器

归类于程序人生 2 条评论

一直希望在android上看代码~不过貌似一直没找到好的软件~
所以嘛,自己动手丰衣足食啦~~~
0.1版本只支持java/c/c++高亮(因为自己对这几个语言比较熟悉。。。)
写了两天,基本上能用了。

截图如下~

APK文件我也发上来吧,喜欢的朋友可以拿去用~
Codereader 0.1.apk

319 views , , , , , , ,

来自Ray的google书签

归类于随便写写 9 条评论

首先感谢Ray送我这么cool的东西~Thanks~
下面上图
IMG_1531

IMG_1527

232 views , , ,

今天发生很多事

归类于心情日志 14 条评论

很多事情。
什么都不想说。
安静的,忧伤的。
什么都别说,我害怕白名单。
再见google。
再见。
晚上一个人自习,好好的安静的思考一下。
生活还在继续。
ps : I do not want to use Baidu.

207 views , , ,

google彩蛋!

归类于随便写写 2 条评论


www.google.com
直接点击I’m Feeling Lucky
然后就看google给你放焰火吧

176 views , , ,

android学习笔记之按钮实现

归类于程序人生 参与评论

今天搞了搞按钮~最最基本的android算是入门了一点点了。。。
自身状态还不是很好,工作效率太低阿。。。
先上xml文件

1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
 
<TextView android:text="@+id/TextView01" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<Button android:text="@+id/Button01" android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
</LinearLayout>

然后是源代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.zerob13.helloandroid;
 
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.*;
public class helloandroid extends Activity {
    /** Called when the activity is first created. */
    private TextView mTextView1;
    private Button mb;
 
    @Override
 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mTextView1=(TextView)findViewById(R.id.TextView01);
        String kk="Keep Balance";
        mTextView1.setText(kk);
        mb=(Button)findViewById(R.id.Button01);
        String k="push me";
        mb.setText(k);
        mb.setOnClickListener(new Button.OnClickListener()
        {
 
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				mTextView1.setText("nice going");
 
			}
 
        });
 
 
    }
 
}

140 views , , , , , , ,

Android开发环境搭建成功

归类于程序人生 2 条评论

Eclipse+Android SDK 1.5 +JDK1.6算是把这个平台搭建起来了。。。
之后的无穷可能就看自己的努力了。。。

217 views , , , , , , , ,

顶部