android 水波纹锁屏界面,改成平板之后,图标太靠下,被status bar 盖住了一半,找了几天终于找到地儿了,记录下
framework/base/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock.xml
/
<com.android.internal.widget.multiwaveview.MultiWaveView
android:id="@+id/unlock_widget" //id
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_gravity="center"
android:targetDrawables="@array/lockscreen_targets_with_camera" <!-- 解锁目标数组 -->
android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" <!-- 描述-->
android:directionDescriptions="@array/lockscreen_direction_descriptions" <!-- 位置描述 -->
android:handleDrawable="@drawable/ic_lockscreen_handle" <!--中间解锁hanlder -->
android:waveDrawable="@drawable/ic_lockscreen_outerring" <!-- 绘制椭圆范围 -->
android:outerRadius="@dimen/multiwaveview_target_placement_radius"
android:snapMargin="@dimen/multiwaveview_snap_margin"
android:hitRadius="@dimen/multiwaveview_hit_radius"
android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" <!-- 未解锁产生的波澜 -->
android:horizontalOffset="0dip"
android:verticalOffset="60dip"
android:feedbackCount="3" //多少次波澜
android:vibrationDuration="20" //触觉反馈,震动.0表示不震动
/>
改红色那行的 60 改小些就是上移,大的就是下移