我正在开发一个包含许多自定义按钮的android应用程序。我是否需要为每个文件创建一个.xml文件,或者是否有将所有这些文件放入一个.xml文件的方法?有没有什么办法可以将我的自定义按钮放在android中的一个XML文件中?
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/father2" ></item>
<item android:drawable="@drawable/father" ></item>
我可以使用多种自定义按钮的代码在一个XML文件?
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item android:drawable="@drawable/brother1" android:duration="200"/>
<item android:drawable="@drawable/brother2" android:duration="200"/>
<item android:drawable="@drawable/brother3" android:duration="200"/>
<item android:drawable="@drawable/brother4" android:duration="200"/>
<item android:drawable="@drawable/brother5" android:duration="200"/>
而且我也有一个动画列表;我可以在一个XML文件中使用多个动画列表吗?
的你想什么来实现,将有助于得到更好的答案 – 2012-04-03 21:58:29