04 2012 档案
摘要:参考链接:http://www.iteye.com/topic/602737这个写的很不错,我是跟着一步步写下来的,不过到最后也遇到了麻烦,就是不能将Tab标签的文字和图片分开,始终是重合的,而且每个具体的代码,还是搞了许久才出来,故而分享之,希望能给大家带来方便,也谢谢下面的高人,呵呵!http://www.youmi.net/bbs/thread-102-1-4.html这个和上面的代码是一样的,不过代码不全,对于初学者来说,考验的时候来了,完善就是提高的过程,不要怕麻烦!下面就根据上面的参考自己写的,当然大部分是相同的,不过有详细的注释,完整的代码如果有什么不明白就留言吧!呵呵首先结果图
阅读全文
摘要:vlist2.xml代码:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@+id/image
阅读全文
摘要: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" &
阅读全文
摘要:使用ListView和arrayAdapter布局,是ListView布局中最为简单的一种,首先我们会建立一个组件用来显示数据,例如main.xml<?xml version="1.0" encoding="utf-8"?> <!-- 主界面本身就是一个显示组件 --> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" andro
阅读全文
摘要:关于Android布局,之前给大家分享了不少,感谢这些文章的原作者,先来一起回顾一下:Android中LinearLayout、AbsoluteLayout使用介绍Android布局之RelativeLayout、FrameLayout使用介绍Android布局之TableLayout使用介绍Android布局之TableLayout实现九宫图好吧,那就天就来讲讲Android中ListView的用法,原文如下:ListView是一个经常用到的控件,ListView里面的每个子项Item可以使一个字符串,也可以是一个组合控件。先说说ListView的实现:1.准备ListView要显示的数据
阅读全文
摘要:先来看看效果图吧welcome_glide.xml<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_par
阅读全文
摘要:TabHost在很多应用都会使用到,有时候在TabHost添加的Tab中设置view不能满足需求,因为在view中添加如PreferenceActivity相当困难.之前在一个应用中需要实现使用TabHost中在多个Tab切换不同的Activity.一个是日志列表(ListActivity),一个是应用设置页面( PreferenceActivity )先上效果图上图是日志列表页面,是ListActivity上图是设置页面,是一般的PreferenceActivity开发流程 :1, 编写不同的Activity,用于在TabHost中点击不同的Tab时进行切换(以下是两个例子,因为不是该博文的
阅读全文
摘要:Version 1.4.2_03 of the JVM not suitable for this product.Version1.5 or geeater is required使用eclipse-jee-helios-win32 时,eclipse启动报错: Version 1.4.2_03 if the JVM is not suitable for this product. Version 1.5 or greater us required. 由于Oracle的缘故它变更了原有的jre环境 解决:在我的电脑-高级-环境变量path中,将系统变量path里面的内容调整一下,Ora.
阅读全文