public voidnotifyDataSetChanged()Added inAPI
level 1Notifies the attached observers that the underlying data has been changed
and any View reflecting ...
分类:
移动开发 时间:
2014-06-11 07:44:51
阅读次数:
270
MainActivity如下:
package cn.testalertdialog;
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListen...
本文翻译了这篇文章:Using the Android action bar (ActionBar) - Tutorial
1、ActionBar的简介
ActionBar位于Activity的顶部,可用来显示activity的标题、Icon、Actions和一些用于交互的View。它也可被用于应用的导航。
ActionBar 是在Android 3.0(API 11)中加入到SK中的,...
分类:
移动开发 时间:
2014-06-08 15:27:58
阅读次数:
349
一、自定义视图类继承View或者View的子类
All of the view classes defined in the Android framework extend View.
Your custom view can also extend Viewdirectly,
or you can save time by extending one of the exist...
分类:
移动开发 时间:
2014-06-08 10:11:27
阅读次数:
342
- (void)scrollViewDidEndDragging:(UIScrollView
*)scrollView willDecelerate:(BOOL)decelerate{ TTLog(@"scrollview
%@",scrollView);}
分类:
其他好文 时间:
2014-06-08 07:31:37
阅读次数:
177
一、首先说说View和ViewGroup吧Android系统中的所有UI类都是建立在View和ViewGroup这两个类的基础上的。所有View的子类成为”Widget”,所有
ViewGroup的子类成为”Layout”。View和ViewGroup之间采用了组合设计模式,可以使得“部分-整体”同...
ImageView的Scaletype决定了图片在View上显示时的样子,如进行何种比例的缩放,及显示图片的整体还是部分,等等。设置的方式包括:1.
在layout xml中定义android:scaleType="CENTER"2. 或在代码中调用imageView.setScaleType(Im...
分类:
移动开发 时间:
2014-06-08 00:36:23
阅读次数:
342
众所周知,IB在加载nib的过程中存在着一些undocument行为,有的行为确实是不可理喻的,因此程序员对IB产生了抗拒心理。今天我们要介绍的是IB导致的一个奇特行为。通过本文的描述,
作者完美地展示了IB给面向对象所带来的破坏作用。我们有两个View Controller,暂名为supercla...
分类:
其他好文 时间:
2014-06-07 22:18:09
阅读次数:
293
在做Android平台开发的时候,经常会遇到安卓原生控件无法满足需求的情况,安卓允许开发者去继承已经存在的控件或者实现你自己的控件。先来看一下效果图采用直接集成View类,重写onDrow方法绘制。下面附上主要代码。1
新建一个类CircleView 继承自View 1 package com.l....
分类:
移动开发 时间:
2014-06-07 21:20:51
阅读次数:
791
在ios中,rootview为PassWordViewController,secondview为SecondViewController,实现在rootview中听过一个跳转按钮实现跳转到secondview中,实现方法如下:在PassWordViewController.h中添加button的事...
分类:
移动开发 时间:
2014-06-07 20:36:33
阅读次数:
217