Commit 7894b611 by chengxiuhong

test main

parent 98e66fc4
...@@ -241,9 +241,12 @@ public class EyeSettingActivity extends BaseActivity { ...@@ -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) { public void onClick(View view) {
switch (view.getId()) { switch (view.getId()) {
case R.id.back_iv:
finish();
break;
case R.id.about_lay: case R.id.about_lay:
mAboutLayShow.setVisibility(View.VISIBLE); mAboutLayShow.setVisibility(View.VISIBLE);
break; break;
......
...@@ -129,12 +129,13 @@ public class EyeTestActivity extends BaseActivity { ...@@ -129,12 +129,13 @@ public class EyeTestActivity extends BaseActivity {
@Override @Override
protected void init() { protected void init() {
boolean help = PreferencesUtils.getBoolean(EyeConfig.EYE_HELP_SETTING_KEY, true); boolean help = PreferencesUtils.getBoolean(EyeConfig.EYE_HELP_SETTING_KEY, true);
initialize();
if (help) { if (help) {
showBeforeDialog(true); showBeforeDialog(true);
} else { } else {
prepareQueue(); prepareQueue();
} }
initialize();
} }
private void showBeforeDialog(final boolean isFrist) { private void showBeforeDialog(final boolean isFrist) {
......
...@@ -8,7 +8,12 @@ ...@@ -8,7 +8,12 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/dp_48" android:layout_height="@dimen/dp_48"
android:background="@color/e_test_color"> 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 <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="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