Skip to content

Commit 1f97290

Browse files
committed
封装LiveDataBus
1 parent aaa1275 commit 1f97290

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/src/main/res/layout/activity_login.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
android:layout_width="match_parent"
4646
android:layout_height="match_parent"
4747
android:background="@null"
48-
android:hint="@string/username"
48+
android:enabled="false"
49+
android:hint="@string/bottom_button_login"
4950
android:singleLine="true"
5051
android:text="@={userLoginModel.username}" />
5152
</com.google.android.material.textfield.TextInputLayout>
@@ -65,7 +66,8 @@
6566
android:layout_width="match_parent"
6667
android:layout_height="match_parent"
6768
android:background="@null"
68-
android:hint="@string/password"
69+
android:enabled="false"
70+
android:hint="@string/bottom_button_login"
6971
android:inputType="textPassword"
7072
android:singleLine="true"
7173
android:text="@={userLoginModel.password}" />
@@ -79,6 +81,7 @@
7981
android:layout_marginTop="@dimen/dp_35"
8082
android:layout_marginEnd="20dp"
8183
android:background="@drawable/selector_login_bg"
84+
android:enabled="false"
8285
android:text="@string/sign_in"
8386
android:textAllCaps="false"
8487
android:textColor="@drawable/selector_login_text_color"

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
<string name="context_not_null_tip">please init context field in LoaderOptions</string>
7979
<string name="url_not_null_tips">please init url field in LoaderOptions</string>
8080

81+
<string name="bottom_button_login">Please use the bottom button to login</string>
82+
8183
<string name="ic_font_email">&#xe607;</string>
8284
<string name="ic_font_link">&#xe932;</string>
8385
<string name="ic_font_browser">&#xe606;</string>

0 commit comments

Comments
 (0)