riku
2025-10-17 fbae5f3ea74727ccadc48314a864a1ea0099a945
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package cn.flightfeather.thirdappmodule.activity;
 
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
 
import java.util.ArrayList;
 
import cn.flightfeather.thirdappmodule.R;
import cn.flightfeather.thirdappmodule.adapter.TaskListAdapter;
import cn.flightfeather.thirdappmodule.bean.entity.Subtask;
import cn.flightfeather.thirdappmodule.util.Constant;
 
public class TaskAdjustActivity extends AppCompatActivity implements View.OnClickListener{
 
    private ArrayList<Subtask> mSubTaskList;
    private TaskListAdapter mAdapter;
 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_task_adjust);
        initData();
        initUI();
    }
 
    private void initData() {
        mSubTaskList = (ArrayList<Subtask>)getIntent().getSerializableExtra(Constant.KEY_INTENT_TODAY_TASKLIST);
    }
 
    private void initUI() {
        findViewById(R.id.spinner_topclass_task).setVisibility(View.GONE);
        findViewById(R.id.img_left).setOnClickListener(this);
        findViewById(R.id.img_right).setOnClickListener(this);
        RecyclerView recyclerview = (RecyclerView) findViewById(R.id.rv_subtask);
        LinearLayoutManager manager = new LinearLayoutManager(this);
        recyclerview.setLayoutManager(manager);
        mAdapter = new TaskListAdapter(this, mSubTaskList);
        recyclerview.setAdapter(mAdapter);
 
    }
 
 
    @Override
    public void onClick(View v) {
        int id = v.getId();
        if (id == R.id.img_left) {
            this.finish();
        } else if (id == R.id.img_right) {
        }
    }
}