`
文章列表
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 ...
  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 ...
/*-------------------完全以代码的形式生成视图------------------------------------*/ 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 ...
Global site tag (gtag.js) - Google Analytics