优化部分代码
This commit is contained in:
parent
d630c2aef5
commit
78936d7814
@ -4,6 +4,8 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.appcompat.widget.AppCompatTextView;
|
||||
|
||||
import com.hjq.bar.TitleBar;
|
||||
import com.hjq.shape.view.ShapeButton;
|
||||
import com.yinhetairui.digitalagriculture.R;
|
||||
@ -18,11 +20,10 @@ import com.yinhetairui.digitalagriculture.app.AppActivity;
|
||||
public final class RegisterResultActivity extends AppActivity {
|
||||
|
||||
private TitleBar title;
|
||||
private AppCompatTextView tvHint;
|
||||
private ShapeButton btnLogin;
|
||||
|
||||
/**
|
||||
* 来源:0-注册,1-忘记密码
|
||||
*/
|
||||
/** 来源:0-注册,1-忘记密码 */
|
||||
private int mSource = 0;
|
||||
|
||||
public static void start(Context context, int source) {
|
||||
@ -39,6 +40,7 @@ public final class RegisterResultActivity extends AppActivity {
|
||||
@Override
|
||||
protected void initView() {
|
||||
title = (TitleBar) findViewById(R.id.title);
|
||||
tvHint = (AppCompatTextView) findViewById(R.id.tv_hint);
|
||||
btnLogin = (ShapeButton) findViewById(R.id.btn_login);
|
||||
|
||||
setOnClickListener(btnLogin);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -23,6 +23,7 @@
|
||||
android:src="@drawable/icon_success" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/tv_hint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
|
Loading…
x
Reference in New Issue
Block a user