Launcher3的代码和Launcher2差不多,不管是UI布局还是代码设计,都还蛮复杂的,要想彻底搞清楚需要不少时间。
这里就简单记录一下把Launcher3的Hotseat修改到右侧的方法(本来Hotseat是在底部的)。
先来看效果,android4.4的Launcher3修改后的效果:
android5.1的Launcher3修改后的效果:
下面说一下修改点,共有2处:
把文件android/packages/apps/Launcher3/res/values-sw720dp/config.xml中的hotseat_transpose_layout_with_orientation由false改为true:
<!-- Hotseat -->
- <bool name="hotseat_transpose_layout_with_orientation">false</bool>