Fixed app mode button not fit in drawer
This commit is contained in:
parent
bb03777d72
commit
77bd876864
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ public class AppModeDialog {
|
|||
newButtons[buttons.length] = tb;
|
||||
tb.setTextOn("");
|
||||
tb.setTextOff("");
|
||||
int left = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, a.getResources().getDisplayMetrics());
|
||||
int left = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, a.getResources().getDisplayMetrics());
|
||||
int metrics = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 64, a.getResources().getDisplayMetrics());
|
||||
tb.setButtonDrawable(R.drawable.ic_other_modes);
|
||||
LayoutParams lp = new LayoutParams(metrics, metrics);
|
||||
|
@ -238,7 +238,7 @@ public class AppModeDialog {
|
|||
static private ToggleButton createToggle(Context ctx, LinearLayout layout, ApplicationMode mode, boolean drawer){
|
||||
int margin = 0;
|
||||
if (drawer) {
|
||||
margin = 5;
|
||||
margin = 2;
|
||||
} else {
|
||||
margin = 10;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue