Commit 2a50bebc by chengxiuhong

test main

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