系统版本: 2.2.
修改文件: launcher2/res/layout-land/launcher.xml
效果:
修改后:

修改内容:
<RelativeLayout
android:id="@+id/all_apps_button_cluster"
android:layout_width="fill_parent"
android:layout_height="@dimen/button_bar_height"
android:layout_gravity="bottom|center_horizontal"
android:paddingTop="2dip"
>
<com.ansondroid.launcher.HandleView
android:id="@+id/all_apps_button"
android:background="@drawable/hotseat_bg_center"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:paddingLeft="12dip"
android:paddingRight="12dip"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:src="@drawable/all_apps_button"
launcher:direction="horizontal"
/>
<ImageView
android:id="@+id/hotseat_left"
android:layout_toLeftOf="@id/all_apps_button"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/hotseat_bg_left"
android:src="@drawable/hotseat_phone"
android:onClick="launchHotSeat"
/>
<ImageView
android:id="@+id/hotseat_right"
android:layout_toRightOf="@id/all_apps_button"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/hotseat_bg_right"
android:src="@drawable/hotseat_browser"
android:onClick="launchHotSeat"
/>
</RelativeLayout>
很简单吧~~~
修改源码并不难,难就难在,不知道要在哪里改,不知道哪个类,哪个资源文件.
当然还有更简单的办法,
自己找去吧~~
待续...
Launcher2 横屏布局自定义

本文介绍如何修改 Launcher2 的横屏布局文件 launcher.xml 来实现自定义按钮和图标布局。通过编辑 RelativeLayout 和 ImageView 等元素,可以轻松调整底部应用按钮的位置和外观。
721

被折叠的 条评论
为什么被折叠?



