- 浏览: 323143 次
- 性别:
- 来自: 苏州
最新评论
-
waterM:
...
DBVis 连接数据库配置 -
航空母舰:
上源码吧,差资源,都跑不起来!
ListView_split 分割 -
wade200:
学习了
启动另一个Activity并返回结果(附源码) -
AndLi:
里面的坐标被我写死了啊,你注释掉就可以了
GPS定位 -
kunlinchen2010:
求指教,QQ:446482624
GPS定位
文章列表
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: ${ ...
111111111111111111111111111111111111111111111111111111111111111111111111111111111
1. Google提供了一组API,可以很方便的在应用程序当中添加基于地图的功能。
2. Android将大部分的地图功能封装在MapView当中
3. MapView将通过GooleMaps服务取得数据,并以地图的方式显示出来
4. MapView提供了一组控件用于地图的控制
关于应用程序的签名:
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 };// ...
public class Main extends Activity implements SurfaceHolder.Callback,// 界面改变接口
AutoFocusCallback, // 自动对焦接口
PictureCallback // 处理照片回调接口
{
private static final String TAG = "TakeActivity";
private SurfaceView surfaceView;
private Camera ca ...
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(Con ...
extends ListActivity
- 博客分类:
- ListView
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 an ...
数据库代码
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 Con ...
完全用代码生成视图UI
- 博客分类:
- UI设计
/*-------------------完全以代码的形式生成视图------------------------------------*/
LinearLayout linearLayout = new LinearLayout(Tab1.this);// 创建LinearLayout
linearLayout.setOrientation(LinearLayout.HORIZONTAL);
linearLayout.setGravity(Gravity.CENTER);
ImageView imageView = new ImageView(Tab1.t ...
核心代码:
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("自定义 ...
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: ...
AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("自定义对话框"); builder.setPositiveButton("确定", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) {
} });
LayoutInflater inflat ...
dimens.xml
- 博客分类:
- 资源文件
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="topmenu_height">45dp</dimen>
</resources>
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:di ...