sure, hit1983
1) styles.xml (removing listselector)
Using xml Syntax Highlighting
<style name="Widget.ListView" parent="android:Widget.ListView">
<item name="android:listSelector">@android:color/transparent</item>
<item name="android:cacheColorHint">#00000000</item>
<item name="android:divider">@android:color/transparent</item>
<item name="android:scrollbarStyle">outsideInset</item>
</style>
Parsed in 0.002 seconds, using
GeSHi 1.0.8.4
2) themes.xml (routing the style to GreenTheme)
Using xml Syntax Highlighting
<style name="GreenTheme" parent="android:Theme">
<item name="android:listViewStyle">@style/Widget.ListView</item>
</style>
Parsed in 0.001 seconds, using
GeSHi 1.0.8.4
3) manifest (using the GreenTheme)
Using xml Syntax Highlighting
<activity android:name=".Country" android:label="@string/app_name" android:theme="@style/GreenTheme">
Parsed in 0.001 seconds, using
GeSHi 1.0.8.4
4) Country.java
just like every list example, using laender_list_row.xml for each listrow
5) laender_list_row.xml (using btn_list as background for the LinearLayout)
Using xml Syntax Highlighting
<?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="wrap_content"
android:orientation="horizontal" android:background="@drawable/btn_list">
<ImageView android:id="@+id/icon" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/france"
android:layout_gravity="center_vertical" android:paddingLeft="6dip"/>
<TextView android:id="@+id/country" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:text="Frankreich"
android:textSize="16px" android:gravity="center_vertical"
android:textColor="#ffffff" android:paddingLeft="6dip"/>
</LinearLayout>
Parsed in 0.003 seconds, using
GeSHi 1.0.8.4
6) btn_list.xml (different states for the buttons)
Using xml Syntax Highlighting
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:drawable="@drawable/btn_list_normal_green" />
<item android:state_pressed="true"
android:drawable="@drawable/btn_list_pressed" />
<item
android:drawable="@drawable/btn_list_normal" />
</selector>
Parsed in 0.001 seconds, using
GeSHi 1.0.8.4
7) just the three graphics as .9.png
I made this graphics for my work, so I won't post them here.
You can use (and rename) android-sdk-windows-1.0_r2\tools\lib\res\default\drawable:
btn_default_selected.9.png
btn_default_pressed.9.png
btn_default_normal.9.png
Greetings,
DaRolla