Browse Source

1.edittext增加长度限制

20241218TB223FC(测试jar包)
wangwanlei 10 months ago
parent
commit
f32c9422cd
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      app/src/main/res/layout/activity_main.xml

+ 2
- 1
app/src/main/res/layout/activity_main.xml View File

@@ -22,7 +22,7 @@
22 22
                 android:layout_width="100dp"
23 23
                 android:layout_height="100dp"
24 24
                 android:text="管理页面"
25
-                android:visibility="visible" />
25
+                android:visibility="gone" />
26 26
 
27 27
 
28 28
             <LinearLayout
@@ -95,6 +95,7 @@
95 95
                     android:paddingLeft="28dp"
96 96
                     android:paddingRight="28dp"
97 97
                     android:singleLine="true"
98
+                    android:maxLength="20"
98 99
                     android:textColor="@color/codetipscolor"
99 100
                     android:textColorHint="@color/codehintcolor"
100 101
                     android:textSize="16sp" />

Loading…
Cancel
Save