`
jk138
  • 浏览: 150612 次
  • 性别: Icon_minigender_1
  • 来自: 茂名
社区版块
存档分类
最新评论
文章列表
有两种方法,可以创建。   1.通过xml来创建    <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/about" android:title="About" /> <item android:id=&qu ...
学习内容:1.GridView的使用                2.AlertDialog显示框的使用     1.先在res文件夹的drawable三个文件夹下放入图片   2.写布局main.xml      <?xml version="1.0" encoding="utf-8"?> <AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation=&qu ...
遭遇DLL故障,轻松应对

在线破解PDF

从电脑报摘取的   还有这个网:http://freemypdf.com/
看了几个教程,学会 了两种方法实现Gallery相册,第一种是直接在res文件夹下放图片进行读取,第二种是读取sd卡的图片。     首先,写好布局main.xml   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android: ...
//对图片进行压缩 BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; //获取这个图片的宽和高 Bitmap bitmap = BitmapFactory.decodeFile("/sdcard/dcim/Camera/hello.jpg",options);//此时返回bm为空 ...
有两种方法: 我在项目中用了两种方法,来进行listView的分页,分别是用Handler和AsyncTask。   第一种方法:用Handler和线程   看代码: package com.cnjmwl.scm.salesorder; import java.util.ArrayList; import com.cnjmwl.scm.MainActivity; import com.cnjmwl.scm.R; import com.cnjmwl.util.HttpUtil; import com.cnjmwl.util.ReadXML; import com.cn ...
dbHelper.java package com.terry; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.sqlite.SQLiteDatabase.CursorFactor ...
  一. shared preferences    1、 Shared Preferences 是什么?  Shared Preferences 类似于winform中做一些小型配置的ini文件,用来保存一些用户设置的参数。例如,可以通过它保存上一次用户所做的修改或者自定义参数设定,当再次启动程序后依然保持原有设置。      2、如何使用 Shared Preferences 获得数据?    Shared Preferences提供了getPreferences方法来获得Preferences对象,取得该对象了,即可以使用Editor取得编辑对象     3、如何 ...
1.main.xml < ?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"&g ...
首先写好一个专门用于封装提交的信息的处理类   FormFile.java package com.cnjmwl.util; public class FormFile { /* 上传文件的数据 */ private byte[] data; /* 文件名称 */ private String filname; /* 表单字段名称*/ private String formname; /* 内容类型 */ private String contentType = "text/plain&qu ...
http://blog.csdn.net/Android_Tutor/archive/2010/07/01/5707835.aspx 这是我自己写的源码  
Intent startMain = new Intent(Intent.ACTION_MAIN); startMain.addCategory(Intent.CATEGORY_HOME); startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(startMain); System.exit(0);  
  本讲内容:菜单 menu 1、选项菜单 OptionsMenu 2、上下文菜单 ContextMenu 3、子菜单 SubMenu 组成Android用户界面的除了View以外,还有菜单和对话框,这一讲我们就共同学习一下菜单的使用。 菜单是用户界面中最常见的元素,使用也非常频繁,在Android中,菜单被分为如下三种,选项菜单(OptionsMenu)、上下文菜单(ContextMenu)和子菜单(SubMenu),下面分别举例说明。    
1.businessItem的值取不到
Global site tag (gtag.js) - Google Analytics