摘要:
http://www.cnblogs.com/newcj/archive/2011/05/30/2061370.html 阅读全文
posted @ 2012-03-04 21:46
大米稀饭
阅读(139)
评论(0)
推荐(0)
摘要:
main.xmlView Code <?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"& 阅读全文
posted @ 2012-03-04 17:15
大米稀饭
阅读(678)
评论(0)
推荐(0)
摘要:
MyScrollViewDemo.javaView Code import android.app.Activity;import android.os.Bundle;import android.view.ViewGroup;import android.widget.Button;import android.widget.LinearLayout;public class MyScrollViewDemo extends Activity { // 准备出若干个信息而这些信息以后将通过程序加入到内嵌的线性布局文件之中 private String data[] = { "AA. 阅读全文
posted @ 2012-03-04 17:06
大米稀饭
阅读(283)
评论(0)
推荐(0)
摘要:
◆使用Gallery + ImageSwitcher完成图片浏览功能grid_layout.xmlView Code <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="wrap_content" an 阅读全文
posted @ 2012-03-04 16:50
大米稀饭
阅读(315)
评论(0)
推荐(0)
摘要:
除了使用BaseAdapter之外,SimpleAdapter也是一种最为常见的适配器操作类。既然决定要使用SimpleAdapter类了,那么就需要为其准备一个List集合,而在这个List集合之中,一定要保存Map集合,而且Map集合的key必须是String。grid_layout.xmlView Code <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi 阅读全文
posted @ 2012-03-04 16:35
大米稀饭
阅读(260)
评论(0)
推荐(0)
摘要:
发现setAdapter()设置的时候可以使用的子类:ArrayAdapter、SimpleAdapter、BaseAdapter。1.BaseAdapter实际上是一个用户自己去实现的操作,包括定义显示的组件等等。main.xmlView Code <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/My 阅读全文
posted @ 2012-03-04 16:24
大米稀饭
阅读(256)
评论(0)
推荐(0)
摘要:
◆TextSwitcher和ViewFactory的使用View Code <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/MyLayout" android:orientation="vertical" android:layout_width="fill_pa 阅读全文
posted @ 2012-03-04 13:26
大米稀饭
阅读(302)
评论(0)
推荐(0)
摘要:
◆ 掌握ImageSwitcher和VIewFactory的使用;◆ 了解Animation的基本使用。如果要想真正的实现图片的切换操作,那么问题的关键就在于ViewFactory工厂的使用上。在这个接口中有一个操作方法:public abstract View makeView()这个方法的作用是创建一个View显示的组件。View Code <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.co 阅读全文
posted @ 2012-03-04 13:02
大米稀饭
阅读(596)
评论(0)
推荐(0)
摘要:
View Code View Code import android.app.Activity;import android.os.Bundle;import android.view.WindowManager;import android.widget.SeekBar;publ... 阅读全文
posted @ 2012-03-04 12:41
大米稀饭
阅读(712)
评论(0)
推荐(0)
摘要:
View Code <?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"> < 阅读全文
posted @ 2012-03-04 12:24
大米稀饭
阅读(382)
评论(0)
推荐(0)
浙公网安备 33010602011771号