Modified layout
This commit is contained in:
parent
d3859b6763
commit
654cff51c8
|
@ -3,39 +3,47 @@
|
|||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/txtvItemname"
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/imgvFeedimage"
|
||||
android:layout_height="90dip"
|
||||
android:layout_width="90dip"
|
||||
android:layout_alignParentLeft="true"/>
|
||||
<LinearLayout
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
<Button
|
||||
android:id="@+id/butPlay"
|
||||
android:text="@string/play_label"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<Button
|
||||
android:id="@+id/butDownload"
|
||||
android:text="@string/download_label"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<Button
|
||||
android:id="@+id/butRemove"
|
||||
android:text="@string/remove_label"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<TextView
|
||||
android:id="@+id/txtvItemname"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<TextView
|
||||
android:id="@+id/txtvPublished"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal">
|
||||
<Button
|
||||
android:id="@+id/butPlay"
|
||||
android:text="@string/play_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
<Button
|
||||
android:id="@+id/butDownload"
|
||||
android:text="@string/download_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
<Button
|
||||
android:id="@+id/butRemove"
|
||||
android:text="@string/remove_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
|
|
@ -24,6 +24,7 @@ public class ItemviewActivity extends SherlockActivity {
|
|||
// Widgets
|
||||
private ImageView imgvImage;
|
||||
private TextView txtvTitle;
|
||||
private TextView txtvPublished;
|
||||
private Button butPlay;
|
||||
private Button butDownload;
|
||||
private Button butRemove;
|
||||
|
@ -50,6 +51,7 @@ public class ItemviewActivity extends SherlockActivity {
|
|||
private void populateUI() {
|
||||
setContentView(R.layout.feeditemview);
|
||||
txtvTitle = (TextView) findViewById(R.id.txtvItemname);
|
||||
txtvPublished = (TextView) findViewById(R.id.txtvPublished);
|
||||
imgvImage = (ImageView) findViewById(R.id.imgvFeedimage);
|
||||
butPlay = (Button) findViewById(R.id.butPlay);
|
||||
butDownload = (Button) findViewById(R.id.butDownload);
|
||||
|
@ -57,6 +59,7 @@ public class ItemviewActivity extends SherlockActivity {
|
|||
|
||||
setTitle(item.getFeed().getTitle());
|
||||
|
||||
txtvPublished.setText(item.getPubDate());
|
||||
txtvTitle.setText(item.getTitle());
|
||||
if(item.getFeed().getImage() != null) {
|
||||
imgvImage.setImageURI(Uri.fromFile(new File(item.getFeed().getImage().getFile_url())));
|
||||
|
|
Loading…
Reference in New Issue