File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
app/src/main/java/com/openipc/decoder Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -364,8 +364,7 @@ private void createMenu(View menu) {
364364 // camera slot selector: horizontal row [1] [2] [3] [4]
365365 LinearLayout camRow = new LinearLayout (this );
366366 camRow .setOrientation (LinearLayout .HORIZONTAL );
367- layout .addView (camRow , new LinearLayout .LayoutParams (
368- LinearLayout .LayoutParams .MATCH_PARENT , LinearLayout .LayoutParams .WRAP_CONTENT ));
367+ layout .addView (camRow );
369368
370369 LinearLayout header = new LinearLayout (this );
371370 header .setOrientation (LinearLayout .VERTICAL );
@@ -400,9 +399,8 @@ private void createMenu(View menu) {
400399 final int slot = i ;
401400 camButtons [i ] = createItem (String .valueOf (i + 1 ));
402401 camButtons [i ].setGravity (Gravity .CENTER );
403- LinearLayout .LayoutParams camBtnParams = new LinearLayout .LayoutParams (
404- 0 , LinearLayout .LayoutParams .WRAP_CONTENT , 1f );
405- camRow .addView (camButtons [i ], camBtnParams );
402+ camButtons [i ].setPadding (dp (8 ), dp (4 ), dp (8 ), dp (4 ));
403+ camRow .addView (camButtons [i ]);
406404
407405 if (i == mActive ) highlightItem (camButtons [i ]);
408406
You can’t perform that action at this time.
0 commit comments