code review

This commit is contained in:
pppscn 2021-10-17 08:41:00 +08:00
parent 126b06cabf
commit 447b164759
3 changed files with 15 additions and 17 deletions

View File

@ -169,7 +169,6 @@ public class IPEditText extends LinearLayout {
Edit4.setText(ip4);
Edit4.setSelection(ip4.length());
Toast.makeText(context, R.string.invalid_ip, Toast.LENGTH_LONG).show();
return;
}
}

View File

@ -9,15 +9,6 @@
android:paddingTop="16dp"
android:weightSum="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.1"
android:gravity="start"
android:orientation="horizontal">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -62,8 +53,7 @@
<com.idormy.sms.forwarder.view.IPEditText
android:id="@+id/textServerIp"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_alignParentLeft="true" />
android:layout_width="match_parent" />
</LinearLayout>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<merge xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<EditText
android:id="@+id/edit1"
@ -10,7 +11,9 @@
android:inputType="number"
android:digits="0123456789."
android:maxLength="3"
android:text="" />
android:text=""
tools:ignore="LabelFor"
android:autofillHints="" />
<TextView
android:layout_width="wrap_content"
@ -27,7 +30,9 @@
android:inputType="number"
android:digits="0123456789."
android:maxLength="3"
android:text="" />
android:text=""
tools:ignore="LabelFor"
android:autofillHints="" />
<TextView
android:layout_width="wrap_content"
@ -44,7 +49,9 @@
android:inputType="number"
android:digits="0123456789."
android:maxLength="3"
android:text="" />
android:text=""
tools:ignore="LabelFor"
android:autofillHints="" />
<TextView
android:layout_width="wrap_content"
@ -61,5 +68,7 @@
android:inputType="number"
android:digits="0123456789."
android:maxLength="3"
android:text="" />
android:text=""
tools:ignore="LabelFor"
android:autofillHints="" />
</merge>