This commit is contained in:
fengjignqi
2026-07-20 15:47:08 +08:00
parent 192ca7d3a4
commit ec59249b3b
5 changed files with 17 additions and 6 deletions

View File

@@ -21,8 +21,8 @@ public class AppConfig {
// public static boolean IS_TEST_REQUEST = true; // public static boolean IS_TEST_REQUEST = true;
/**************************本地*******************************/ /**************************本地*******************************/
public static String BASE_URL = "http://192.168.1.217:8081/";//后端本地测试 // public static String BASE_URL = "http://192.168.1.217:8081/";//后端本地测试
// public static String BASE_URL = "http://47.97.217.123:8081/";//服务器测试 public static String BASE_URL = "http://47.97.217.123:8081/";//服务器测试
public static String BASE_URL_TWO = BASE_URL;//测试 public static String BASE_URL_TWO = BASE_URL;//测试
public static String BASE_URL_THREE = BASE_URL;//测试 public static String BASE_URL_THREE = BASE_URL;//测试
public static boolean IS_TEST_REQUEST = true; public static boolean IS_TEST_REQUEST = true;

View File

@@ -1253,6 +1253,10 @@ public abstract class BaseActivity<T extends ViewBinding, P extends IPresenter>
}); });
break; break;
case INPUT_TYPE_NORMAL:
editText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(20)});
break;
default: default:
editText.setInputType( editText.setInputType(
InputType.TYPE_CLASS_TEXT InputType.TYPE_CLASS_TEXT

View File

@@ -30,7 +30,8 @@
android:id="@+id/tv_device_name" android:id="@+id/tv_device_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="智能浇水设备A1" android:singleLine="true"
android:text=""
android:textColor="@color/textPrimaryColor" android:textColor="@color/textPrimaryColor"
android:textSize="17sp" android:textSize="17sp"
android:textStyle="bold" /> android:textStyle="bold" />

View File

@@ -59,6 +59,7 @@
android:layout_height="@dimen/dp_45" android:layout_height="@dimen/dp_45"
android:layout_marginTop="@dimen/dp_20"> android:layout_marginTop="@dimen/dp_20">
<TextView <TextView
android:id="@+id/tv_name_key"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_20" android:layout_marginLeft="@dimen/dp_20"
@@ -76,14 +77,18 @@
android:layout_alignParentRight="true"/> android:layout_alignParentRight="true"/>
<TextView <TextView
android:id="@+id/tv_nickname_value" android:id="@+id/tv_nickname_value"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/img_point1" android:layout_toLeftOf="@+id/img_point1"
android:layout_toRightOf="@+id/tv_name_key"
android:layout_marginRight="@dimen/dp_20" android:layout_marginRight="@dimen/dp_20"
android:layout_marginLeft="@dimen/dp_20"
android:gravity="right"
android:singleLine="true"
android:textSize="14sp" android:textSize="14sp"
android:textColor="@color/color_999999" android:textColor="@color/color_999999"
android:text="这里是昵称"/> android:text=""/>
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout

View File

@@ -27,7 +27,8 @@
android:id="@+id/tv_device_name" android:id="@+id/tv_device_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="智能浇水设备A1" android:singleLine="true"
android:text=""
android:textColor="@color/textPrimaryColor" android:textColor="@color/textPrimaryColor"
android:textSize="17sp" android:textSize="17sp"
android:textStyle="bold" /> android:textStyle="bold" />