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