AndLi
AndLi · 共 228 篇文章
Eclipse编码模版设置
http://andli.iteye.com/upload/picture/pic/100149/c68ebd2d-1109-3b74-aac0-83de7bc7ad4c.png /** * @author lilin * @date ${date} ${time} * @annotation */ Files /** * @author lilin * @date ${date} ${time} * @Title: ${file_name} * @Package ${package_name} * @Description: ${todo} * @version V1.0 */ Types…
2011-10-03 12:04 · 评论(0)
软件的打包
111111111111111111111111111111111111111111111111111111111111111111111111111111111
2011-10-03 12:00 · 软件发布 · 评论(0)
googlemap的简单使用
1. Google提供了一组API,可以很方便的在应用程序当中添加基于地图的功能。 2. Android将大部分的地图功能封装在MapView当中 3. MapView将通过GooleMaps服务取得数据,并以地图的方式显示出来 4. MapView提供了一组控件用于地图的控制 关于应用程序的签名: http://code.google.com/intl/zh-CN/android/add-ons/google-apis/mapkey.htm 如何获取认证指纹: 首先进入Dos界面: C:\Users\lilin>cd .android C:\Users\lilin\.android>key…
2011-10-03 11:30 · 评论(0)
简单通讯录
public class Main extends Activity implements OnItemClickListener { GridView buttomMenuGrid;// 底部菜单布局 String[] buttomMenu_name = { "增加", "删除", "退出" };// 底部菜单项的名字 int[] buttomMenu_images = { R.drawable.menu_add, R.drawable.menu_delete, R.drawable.menu_exit };// 底部菜单项的图片 ArrayList listdate; ListView …
2011-10-02 10:27 · 评论(0)
简单拍照的实现
public class Main extends Activity implements SurfaceHolder.Callback,// 界面改变接口 AutoFocusCallback, // 自动对焦接口 PictureCallback // 处理照片回调接口 { private static final String TAG = "TakeActivity"; private SurfaceView surfaceView; private Camera camera; private boolean isboolean; int w, h; @Override public v…
2011-10-02 10:26 · 多媒体 · 评论(0)
颜色选择器
ColorPick.java public class ColorPickerPreference extends DialogPreference { private int mInitialColor; private int mCurrentColor; private ColorPickerView colorPickerView; public interface OnColorChangedListener { void colorChanged(int color); } public ColorPickerPreference(Context context, Attribu…
2011-10-02 10:26 · UI设计 · 评论(0)
extends ListActivity
package com.epoint.listview; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import android.widget…
2011-10-02 10:26 · ListView · 评论(0)
简单的增删改查
数据库代码 public class DBHelper { public static final String DB_NAME = "opinion_db"; public static final String TABLE_NANE = "opinion_table"; public static final int VERSION = 3; public static SQLiteDatabase db;// 只创建一次 private OpenHelper openHelper; private final Context context; public DBHelper(Conte…
2011-10-02 10:25 · SQLite · 评论(0)
完全用代码生成视图UI
/*-------------------完全以代码的形式生成视图------------------------------------*/ LinearLayout linearLayout = new LinearLayout(Tab1.this);// 创建LinearLayout linearLayout.setOrientation(LinearLayout.HORIZONTAL); linearLayout.setGravity(Gravity.CENTER); ImageView imageView = new ImageView(Tab1.this); // 创建Image…
2011-10-01 15:41 · UI设计 · 评论(0)
自定义弹出式对话框(与ListView的结合)
核心代码: case R.id.button: LayoutInflater inflater = LayoutInflater.from(this);// 渲染器 View customdialog2view = inflater.inflate(R.layout.customdialog2, null); AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("自定义对话框"); // builder.setTitle("意见模版"); builder.setView(customdia…
2011-10-01 15:41 · Dialog · 评论(0)
ListView and CheckBox
main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="#98F5FF" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView android:id="@+id/lv" android:layout_…
2011-09-30 09:41 · ListView · 评论(1)
自定义的对话框
AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("自定义对话框"); builder.setPositiveButton("确定", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); LayoutInflater inflater = LayoutInflater.from(this);// 渲染器 View view = infl…
2011-09-30 09:28 · Dialog · 评论(0)
dimens.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <dimen name="topmenu_height">45dp</dimen> </resources>
2011-09-30 08:07 · 资源文件 · 评论(0)
preference.xml
<?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <com.epoint.mobileoa.view.sysconfig.ColorPickerPreference android:key="mycolor" android:title="背景颜色设置" android:dialogTitle="颜色选择" android:persistent="true" /> </PreferenceScreen>
2011-09-30 08:07 · 资源文件 · 评论(0)