mirror of
https://github.com/etlegacy/etlegacy-android.git
synced 2025-04-12 04:00:48 +00:00
java: use pxtoDp converted values
This commit is contained in:
parent
2e8599dd5f
commit
5a85fc400e
1 changed files with 3 additions and 3 deletions
|
@ -106,12 +106,12 @@ public class ETLActivity extends SDLActivity implements JoyStickListener {
|
|||
});
|
||||
|
||||
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
|
||||
350,
|
||||
300);
|
||||
pxToDp(450),
|
||||
pxToDp(350));
|
||||
|
||||
lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
|
||||
lp.addRule(RelativeLayout.CENTER_VERTICAL);
|
||||
lp.rightMargin = 120;
|
||||
lp.rightMargin = pxToDp(300);
|
||||
|
||||
etl_linearLayout.addView(btn2, lp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue