Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, DIP_Value , getResources().getDisplayMetrics());
- RelativeLayout.LayoutParams textbox = new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
- textbox.setMargins(px, 0, 0, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement