修改 edittext宽度
This commit is contained in:
@@ -169,6 +169,8 @@ class DragFloatingButton(context: Context) : View(context) {
|
||||
for (menuWithText in actionEvent.menuWithText) {
|
||||
val editText = EditText(context).apply {
|
||||
inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_FLAG_MULTI_LINE
|
||||
minWidth = 500
|
||||
maxWidth = LinearLayout.LayoutParams.MATCH_PARENT
|
||||
setLines(5)
|
||||
gravity = Gravity.TOP or Gravity.START
|
||||
setTextIsSelectable(true)
|
||||
|
||||
Reference in New Issue
Block a user