Commit 7894b611 by chengxiuhong

test main

parent 98e66fc4
......@@ -241,9 +241,12 @@ public class EyeSettingActivity extends BaseActivity {
});
}
@OnClick({R.id.about_lay, R.id.close_lay})
@OnClick({R.id.back_iv,R.id.about_lay, R.id.close_lay})
public void onClick(View view) {
switch (view.getId()) {
case R.id.back_iv:
finish();
break;
case R.id.about_lay:
mAboutLayShow.setVisibility(View.VISIBLE);
break;
......
......@@ -129,12 +129,13 @@ public class EyeTestActivity extends BaseActivity {
@Override
protected void init() {
boolean help = PreferencesUtils.getBoolean(EyeConfig.EYE_HELP_SETTING_KEY, true);
initialize();
if (help) {
showBeforeDialog(true);
} else {
prepareQueue();
}
initialize();
}
private void showBeforeDialog(final boolean isFrist) {
......
......@@ -8,7 +8,12 @@
android:layout_width="match_parent"
android:layout_height="@dimen/dp_48"
android:background="@color/e_test_color">
<ImageView
android:id="@+id/back_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/dp_12"
android:src="@drawable/back" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment