`
aliusa
  • 浏览: 82520 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
/** * The Class PageScrollView, we can scroll the pages in this component. */ public class PageScrollView extends LinearLayout { /** The context. */ private Context mContext; /** The adapter used to get the view of each page. */ private BaseAdapter mAdapter; ...
原文地址: http://www.cnblogs.com/allin/archive/2010/05/11/1732200.html 以下纯属转载, 1.在android开发中ListView是比较常用的组件,它以列表的形式展示具体内容,并且能够根据数据的长度自适应显示 2.列表的显示需要三个元素: 1.ListVeiw 用来展示列表的View。 2.适配器 用来把数据映射到ListView上的中介。 3.数据    具体的将被映射的字符串,图片,或者基本组件。 根据列表的适配器类型,列表分为三种,ArrayAdapter,SimpleAdapter和SimpleCursorAdapte ...

自定义dialog

1.创建系统的dialog,因为没有settitle所以不会显示title栏 public Dialog getConfirmDialog(final Context context, String msg) { final Dialog deleteContactDialog = new AlertDialog.Builder(context) .setMessage(msg) .setNegativeButton("OK", new DialogInterface.OnClickLi ...
Activity之间跳转,传值,主要是通过intent来连接,以及传递数据。 1.通过intentest.putExtra(“key,字符串”, value(基本数据类型)); Intent test = new  Intent(); test = putExtra("name", true); 包括: public Intent putExtra (String name, double[] value) public Intent putExtra (String name, int value) public Intent putExtra (Stri ...
一种典型的Content Provider 代码架构 :http://www.eoeandroid.com/thread-48518-1-1.html
<?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&quo ...
Find a language partner:http://www.sharedtalk.com/
Global site tag (gtag.js) - Google Analytics