Commit 2a50bebc by chengxiuhong

test main

parent f41857d7
...@@ -94,9 +94,12 @@ public class MorePeopleTestActivity extends BaseActivity { ...@@ -94,9 +94,12 @@ public class MorePeopleTestActivity extends BaseActivity {
ButterKnife.bind(this); ButterKnife.bind(this);
} }
@OnClick({R.id.selete_area_lay, R.id.selete_lay, R.id.selete1_lay, R.id.do_search, R.id.begin_test}) @OnClick({R.id.back_iv,R.id.selete_area_lay, R.id.selete_lay, R.id.selete1_lay, R.id.do_search, R.id.begin_test})
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.selete_area_lay: case R.id.selete_area_lay:
showPopWindow(1); showPopWindow(1);
break; break;
......
...@@ -63,9 +63,12 @@ public class SinglePeopleTestActivity extends BaseActivity { ...@@ -63,9 +63,12 @@ public class SinglePeopleTestActivity extends BaseActivity {
mRecycleView.setAdapter(mPeopleAdapter); mRecycleView.setAdapter(mPeopleAdapter);
} }
@OnClick({R.id.selete_area_lay, R.id.do_search, R.id.begin_test}) @OnClick({R.id.back_iv,R.id.selete_area_lay, R.id.do_search, R.id.begin_test})
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.selete_area_lay: case R.id.selete_area_lay:
showPopWindow(); showPopWindow();
break; break;
......
package com.oo.eye.activity; package com.oo.eye.activity;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
...@@ -15,6 +17,7 @@ import com.oo.eye.bean.StudentBean; ...@@ -15,6 +17,7 @@ import com.oo.eye.bean.StudentBean;
import java.util.List; import java.util.List;
import butterknife.BindView; import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick; import butterknife.OnClick;
/** /**
...@@ -42,9 +45,23 @@ public class TestListActivity extends BaseActivity { ...@@ -42,9 +45,23 @@ public class TestListActivity extends BaseActivity {
mRecycleView.setAdapter(new TestListAdapter(list, this)); mRecycleView.setAdapter(new TestListAdapter(list, this));
} }
@OnClick(R.id.begin_test) @Override
public void onClick() { protected void onCreate(Bundle savedInstanceState) {
Intent intent=new Intent(this,EyeTestActivity.class); super.onCreate(savedInstanceState);
// TODO: add setContentView(...) invocation
ButterKnife.bind(this);
}
@OnClick({R.id.back_iv, R.id.begin_test})
public void onClick(View view) {
switch (view.getId()) {
case R.id.back_iv:
finish();
break;
case R.id.begin_test:
Intent intent = new Intent(this, EyeTestActivity.class);
startActivity(intent); startActivity(intent);
break;
}
} }
} }
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
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"
......
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
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"
......
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
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