登录界面添加默认用户名和密码
This commit is contained in:
parent
a4786a5318
commit
7a946f304c
@ -3,7 +3,6 @@ package com.tairui.industrial_operation.ui.account;
|
|||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import com.orhanobut.hawk.Hawk;
|
import com.orhanobut.hawk.Hawk;
|
||||||
import com.rxjava.rxlife.RxLife;
|
import com.rxjava.rxlife.RxLife;
|
||||||
import com.tairui.industrial_operation.BuildConfig;
|
|
||||||
import com.tairui.industrial_operation.base.BaseActivity;
|
import com.tairui.industrial_operation.base.BaseActivity;
|
||||||
import com.tairui.industrial_operation.databinding.ActivityLoginBinding;
|
import com.tairui.industrial_operation.databinding.ActivityLoginBinding;
|
||||||
import com.tairui.industrial_operation.entity.Api;
|
import com.tairui.industrial_operation.entity.Api;
|
||||||
@ -27,10 +26,6 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onFindView(Bundle savedInstanceState) {
|
protected void onFindView(Bundle savedInstanceState) {
|
||||||
if(BuildConfig.DEBUG){
|
|
||||||
setText(binding.inputUserName,"admin");
|
|
||||||
setText(binding.inputUserPass,"admin123");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
android:id="@+id/inputUserName"
|
android:id="@+id/inputUserName"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
|
android:text="admin"
|
||||||
android:layout_marginLeft="24dp"
|
android:layout_marginLeft="24dp"
|
||||||
android:layout_marginTop="64dp"
|
android:layout_marginTop="64dp"
|
||||||
android:layout_marginRight="24dp"
|
android:layout_marginRight="24dp"
|
||||||
@ -40,6 +41,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:layout_marginLeft="24dp"
|
android:layout_marginLeft="24dp"
|
||||||
|
android:text="admin123"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="24dp"
|
||||||
android:layout_marginRight="24dp"
|
android:layout_marginRight="24dp"
|
||||||
android:background="@drawable/bg_container_white_raduis_30"
|
android:background="@drawable/bg_container_white_raduis_30"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">农业产业运营</string>
|
<string name="app_name">产业运营平台</string>
|
||||||
|
|
||||||
<string name="network_error">当前无网络,请检查你的网络设置</string>
|
<string name="network_error">当前无网络,请检查你的网络设置</string>
|
||||||
<string name="notify_no_network">服务器无响应,请稍后重试!</string>
|
<string name="notify_no_network">服务器无响应,请稍后重试!</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user