mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Fixing widget resize handles in RTL
Change-Id: I1c6ccb019cf87570c7d206809b321e901f0d3340
This commit is contained in:
@@ -95,13 +95,13 @@ public class AppWidgetResizeFrame extends FrameLayout {
|
||||
mLeftHandle = new ImageView(context);
|
||||
mLeftHandle.setImageResource(R.drawable.widget_resize_handle_left);
|
||||
lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
|
||||
Gravity.START | Gravity.CENTER_VERTICAL);
|
||||
Gravity.LEFT | Gravity.CENTER_VERTICAL);
|
||||
addView(mLeftHandle, lp);
|
||||
|
||||
mRightHandle = new ImageView(context);
|
||||
mRightHandle.setImageResource(R.drawable.widget_resize_handle_right);
|
||||
lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
|
||||
Gravity.END | Gravity.CENTER_VERTICAL);
|
||||
Gravity.RIGHT | Gravity.CENTER_VERTICAL);
|
||||
addView(mRightHandle, lp);
|
||||
|
||||
mTopHandle = new ImageView(context);
|
||||
|
||||
Reference in New Issue
Block a user