优化
This commit is contained in:
@@ -21,8 +21,8 @@ public class AppConfig {
|
||||
// public static boolean IS_TEST_REQUEST = true;
|
||||
|
||||
/**************************本地*******************************/
|
||||
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://192.168.1.217: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_THREE = BASE_URL;//测试
|
||||
public static boolean IS_TEST_REQUEST = true;
|
||||
|
||||
@@ -1253,6 +1253,10 @@ public abstract class BaseActivity<T extends ViewBinding, P extends IPresenter>
|
||||
});
|
||||
break;
|
||||
|
||||
case INPUT_TYPE_NORMAL:
|
||||
editText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(20)});
|
||||
break;
|
||||
|
||||
default:
|
||||
editText.setInputType(
|
||||
InputType.TYPE_CLASS_TEXT
|
||||
|
||||
@@ -30,7 +30,8 @@
|
||||
android:id="@+id/tv_device_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="智能浇水设备A1"
|
||||
android:singleLine="true"
|
||||
android:text=""
|
||||
android:textColor="@color/textPrimaryColor"
|
||||
android:textSize="17sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:layout_marginTop="@dimen/dp_20">
|
||||
<TextView
|
||||
android:id="@+id/tv_name_key"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
@@ -76,14 +77,18 @@
|
||||
android:layout_alignParentRight="true"/>
|
||||
<TextView
|
||||
android:id="@+id/tv_nickname_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@+id/img_point1"
|
||||
android:layout_toRightOf="@+id/tv_name_key"
|
||||
android:layout_marginRight="@dimen/dp_20"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:gravity="right"
|
||||
android:singleLine="true"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/color_999999"
|
||||
android:text="这里是昵称"/>
|
||||
android:text=""/>
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
|
||||
@@ -27,7 +27,8 @@
|
||||
android:id="@+id/tv_device_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="智能浇水设备A1"
|
||||
android:singleLine="true"
|
||||
android:text=""
|
||||
android:textColor="@color/textPrimaryColor"
|
||||
android:textSize="17sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
Reference in New Issue
Block a user