launcher2的应用列表背景和launcher3是有很大不同,默认为黑色的,这里为了美观,需要实现背景透明,这样就可以完整的显示壁纸了。
1、找到res/layout/apps_customize_pane.xml文件,将
原来:
<com.android.launcher2.AppsCustomizeTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.simple.launcher"
android:background="#FF000000">
改成透明色,即:
<com.android.launcher2.AppsCustomizeTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.simple.launcher"
android:background="#0