mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Merge "Arrow popup - adjust margin to account for RTL and LTR." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3395d1de7a
@@ -148,6 +148,10 @@ public class ArrowTipView extends AbstractFloatingView {
|
||||
LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) findViewById(
|
||||
R.id.arrow).getLayoutParams();
|
||||
lp.gravity = gravity;
|
||||
|
||||
if (parent.getLayoutDirection() == LAYOUT_DIRECTION_RTL) {
|
||||
arrowMarginStart = parent.getMeasuredWidth() - arrowMarginStart;
|
||||
}
|
||||
if (gravity == Gravity.END) {
|
||||
lp.setMarginEnd(parent.getMeasuredWidth() - arrowMarginStart);
|
||||
} else if (gravity == Gravity.START) {
|
||||
|
||||
Reference in New Issue
Block a user