[Android Themes] sunil90:
I want to add a background to the filemanager.apk of my stock android 2.2..

I have decompiled it using apkmanager, and in the res/drawable folder i have added background. png... then in layout/main. xml

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout [B]android:background="@drawable/background" android:cacheColorHint="#00000000" [/B]android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="[B]*[/B]">
<LinearLayout android:orientation="horizontal" android:paddingLeft="6.0dip" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="?android:textAppearanceMedium" android:ellipsize="end" android:layout_gravity="left|center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/app_name" android:singleLine="true" android:layout_weight="1.0" />
<ImageButton android:id="@id/btn_home" android:background="@drawable/control_button_selector" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_home" />
</LinearLayout>
<ImageView android:gravity="fill_horizontal" android:id="@id/titleDivider" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@drawable/dialog_divider_horizontal_light" android:scaleType="fitXY" />
<LinearLayout android:orientation="horizontal" android:paddingLeft="6.0dip" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="?android:listPreferredItemHeight">
<ImageView android:layout_gravity="center" android:id="@id/title_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?android:textAppearanceLarge" android:ellipsize="end" android:layout_gravity="left|center" android:id="@id/title_folder_name" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
<ImageButton android:id="@id/btn_back" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_back" />
<ImageButton android:id="@id/btn_forward" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_forward" />
<ImageButton android:layout_gravity="center" android:id="@id/btn_up" android:background="@drawable/control_button_selector" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_up" />
</LinearLayout>
<ImageView android:gravity="fill_horizontal" android:id="@id/titleDivider" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@drawable/dialog_divider_horizontal_light" android:scaleType="fitXY" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<ListView android:id="@id/list" android:persistentDrawingCache="all" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:id="@id/empty" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/empty_folder" />
</FrameLayout>
</LinearLayout>

I have added the text in bold.. my problem is that the background does come when i open the filemanager. apk but when i scroll through the listview , the background dissapears and when the scroll comes to rest, the background comes back again..

This problem has been described in listview-backgrounds in android developers

but even after setting the cache color hint to transparent, the problem is still there

I have attached the filemanager. apk i have..

Any ideas ?

*EDIT: I Deleted a part in the code because xda blocked external links