CopyPastor

Detecting plagiarism made easy.

Score: 0.7609882354736328; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-02-26
by Bhavik Parmar

Original Post

Original - Posted on 2017-09-05
by Navadip Patel



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Use `maxLength` property of edittext,
<EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Customization" android:maxLength="4" android:singleLine="true" />
it simple way in xml:
android:maxLength="4"
if u require to set 4 character in xml edit-text so,use this
<EditText android:id="@+id/edtUserCode" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLength="4" android:hint="Enter user code" />

        
Present in both answers; Present only in the new answer; Present only in the old answer;