布局文件如下:
Mail.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"
下面就是上文中提到的attr.xml:
Attr.xml:
- <?xml version="1.0" encoding="utf-8"?>
- <resources>
- <declare-styleable name="Gallery1">
- <attr name="android:galleryItemBackground" />
- </declare-styleable>
- <declare-styleable name="LabelView">
- <attr name="text" format="string" />
- <attr name="textColor" format="color" />
- <attr name="textSize" format="dimension" />
- </declare-styleable>
- </resources>
总结:
一个简单的android版电子相册就出来啦,有什么错误的地方还请大家指出来,非常愿意和大家交流Android的知识,本人邮箱在公告里,谢谢!
