-
Notifications
You must be signed in to change notification settings - Fork 0
/
ItemDetailActivity.java
37 lines (27 loc) · 1 KB
/
ItemDetailActivity.java
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
package com.junj.imagerssreader;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
public class ItemDetailActivity extends Activity {
private TextView mTitle;
private TextView mDescription;
private ImageView mImage;
@Override
public void onCreate(Bundle saveInstanceState) {
super.onCreate(saveInstanceState);
setContentView(R.layout.item_detail);
Intent intent = getIntent();
String title = intent.getStringExtra("TITLE");
String description = intent.getStringExtra("DESCRIPTION");
String imageURL = intent.getStringExtra("IMAGEURL");
mTitle = (TextView) findViewById(R.id.item_detail_title);
mDescription = (TextView) findViewById(R.id.item_detail_descr);
mImage = (ImageView) findViewById(R.id.item_detail_image);
mTitle.setText(title);
mDescription.setText(description);
WebImageLoaderTask task = new WebImageLoaderTask(mImage, imageURL);
task.execute(imageURL);
}
}