- 博客(8)
- 问答 (1)
- 收藏
- 关注
原创 创建含ListView的Dialog遇到的问题
//删除和修改 public void ShowAccountBookSelectDialog() { AlertDialog.Builder _Builder = new AlertDialog.Builder(this); View _View = GetLayoutInflater().inflate(R.layout.dialog_list, null); ListVi
2015-10-31 23:48:48
472
原创 StartedService与BoundService 以及IntentService的简单使用
StartedService使用步骤:1.继承Service类实现自己的服务Service过程如下: a.onCreate() //只在服务第一次创建时调用 b.onStartCommand(Intent intent, int flags, int startId) //每次启动服务都会调用c.onDestroy()2.在AndroidManifest中注册服务3.启
2015-09-08 18:44:17
914
原创 notification的简单使用
package com.yaotai.standarview;import com.yaotai.standarview.R;import android.app.Activity;import android.app.Notification;import android.app.NotificationManager;import android.app.PendingIntent
2015-09-06 16:30:24
365
原创 Adapter的使用步骤和baseAdapter的使用以及inflater的一些运用
Adapter的使用步骤:1.建立数据源2.建立adapter3.建立adapter-source连接4.绑定adapter到界面组件baseAdapter的使用: //baseAdapter基础适配器 //baseAdapter是google的工程师给LIstAdapeter的默认实现 public class MyAdatper extends Base
2015-08-29 00:02:27
574
转载 list<T>类
list类表示可通过索引访问的对象的强类型列表。 提供用于对列表进行搜索、排序和操作的方法。类型参数T列表中元素的类型。ListT> 类型公开以下成员。构造函数显示: 继承 保护 名称说明ListT>()初始化 ListT> 类
2015-08-28 23:47:15
511
原创 Button的点击效果 RodioGroup的注意地方
Button的点击效果可以用xml的文件作为背景来实现,在xml文件设定中根元素选择为Selector。xml具体内容为: RodioGroup:xml配置为: <RadioGroup android:id="@+id/radioGroup1" android:layout_width="wrap_
2015-08-28 16:25:42
654
原创 如何在TextView中加载图片
public void showTesxtView() { /*第一种在textView加载图片的可行方法 * ImageGetter imageGetter = new Html.ImageGetter() { @Override public Drawable getDrawable(String source) { // TODO 自动生成的方法存
2015-08-28 13:06:25
560
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅