File tree Expand file tree Collapse file tree
app/src/main/java/com/openipc/decoder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -356,7 +356,8 @@ private void createMenu(View menu) {
356356 LinearLayout layout = new LinearLayout (this );
357357 layout .setOrientation (LinearLayout .VERTICAL );
358358
359- PopupWindow popup = new PopupWindow (layout , LinearLayout .LayoutParams .WRAP_CONTENT ,
359+ int menuWidth = (int ) (getResources ().getDisplayMetrics ().widthPixels * 0.5 );
360+ PopupWindow popup = new PopupWindow (layout , menuWidth ,
360361 LinearLayout .LayoutParams .WRAP_CONTENT , true );
361362 popup .showAtLocation (menu , Gravity .TOP | Gravity .START , 0 , 0 );
362363
@@ -485,6 +486,7 @@ private EditText createEdit(String title) {
485486 text .setTextColor (Color .WHITE );
486487 text .setTextSize (TypedValue .COMPLEX_UNIT_SP , 14 );
487488 text .setInputType (InputType .TYPE_CLASS_TEXT | InputType .TYPE_TEXT_VARIATION_URI );
489+ text .setSingleLine (true );
488490 text .setImeOptions (EditorInfo .IME_ACTION_DONE );
489491 text .setSelection (text .getText ().length ());
490492 focusChange (text );
You can’t perform that action at this time.
0 commit comments