Search in sources :

Example 1 with SelfTimelineListAdapter

use of com.rideread.rideread.adapter.SelfTimelineListAdapter in project ride-read-android by Ride-Read.

the class SelfTimelineActivity method initView.

private void initView() {
    ImageView back = (ImageView) findViewById(R.id.left_setting_icon);
    back.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            onBackPressed();
        }
    });
    View v = LayoutInflater.from(getApplicationContext()).inflate(R.layout.self_timeline_listview_headerview, null);
    ListView listView = (ListView) findViewById(R.id.self_timeline_list);
    listView.addHeaderView(v);
    TextView self_timeline_name = (TextView) v.findViewById(R.id.self_timeline_name);
    CircleImageView circleiv = (CircleImageView) v.findViewById(R.id.self_timeline_civ);
    ImageView ivsex = (ImageView) v.findViewById(R.id.self_timeline_sex);
    TextView signture = (TextView) v.findViewById(R.id.self_timeline_signture);
    TextView self_timeline_attention = (TextView) v.findViewById(R.id.self_timeline_attention);
    TextView self_timeline_fans = (TextView) v.findViewById(R.id.self_timeline_fans);
    TextView self_timeline_location = (TextView) v.findViewById(R.id.self_timeline_location);
    TextView self_timeline_school = (TextView) v.findViewById(R.id.self_timeline_school);
    TextView self_timeline_xizuo = (TextView) v.findViewById(R.id.self_timeline_xizuo);
    TextView self_timeline_job = (TextView) v.findViewById(R.id.self_timeline_job);
    self_timeline_attention.setText(selftimeline.getAttention());
    self_timeline_fans.setText(selftimeline.getFans());
    self_timeline_job.setText(selftimeline.getJob());
    self_timeline_location.setText(selftimeline.getLocation());
    self_timeline_school.setText(selftimeline.getSchool());
    self_timeline_name.setText(selftimeline.getName());
    self_timeline_xizuo.setText(selftimeline.getXizuo());
    signture.setText(selftimeline.getSignture());
    ivsex.setImageResource(R.mipmap.female);
    circleiv.setImageResource(R.mipmap.me);
    listView.setAdapter(new SelfTimelineListAdapter(this, selftimeline.getSelftimelinelist(), R.layout.self_timeline_listitem));
}
Also used : CircleImageView(de.hdodenhof.circleimageview.CircleImageView) ListView(android.widget.ListView) SelfTimelineListAdapter(com.rideread.rideread.adapter.SelfTimelineListAdapter) TextView(android.widget.TextView) ImageView(android.widget.ImageView) CircleImageView(de.hdodenhof.circleimageview.CircleImageView) ImageView(android.widget.ImageView) CircleImageView(de.hdodenhof.circleimageview.CircleImageView) TextView(android.widget.TextView) View(android.view.View) ListView(android.widget.ListView)

Aggregations

View (android.view.View)1 ImageView (android.widget.ImageView)1 ListView (android.widget.ListView)1 TextView (android.widget.TextView)1 SelfTimelineListAdapter (com.rideread.rideread.adapter.SelfTimelineListAdapter)1 CircleImageView (de.hdodenhof.circleimageview.CircleImageView)1