aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-08 19:15:54 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-08 19:15:54 -0700
commit1486d1bf9f42a9bbefe15d66eb7b4095d939c4cb (patch)
tree735862d5558484bf71476051946ee7e0fdbc46e1
parentc076b88eb012a9cc0147d7b1b426cc4c8a1d838e (diff)
downloaddsub-1486d1bf9f42a9bbefe15d66eb7b4095d939c4cb.tar.gz
dsub-1486d1bf9f42a9bbefe15d66eb7b4095d939c4cb.tar.bz2
dsub-1486d1bf9f42a9bbefe15d66eb7b4095d939c4cb.zip
#321 For video files just display on single line
-rw-r--r--res/layout/song_list_item.xml10
-rw-r--r--src/github/daneren2005/dsub/view/SongView.java6
2 files changed, 11 insertions, 5 deletions
diff --git a/res/layout/song_list_item.xml b/res/layout/song_list_item.xml
index 3bf7ab44..72ee298b 100644
--- a/res/layout/song_list_item.xml
+++ b/res/layout/song_list_item.xml
@@ -64,10 +64,12 @@
android:visibility="gone"/>
</LinearLayout>
- <LinearLayout android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical">
+ <LinearLayout
+ android:id="@+id/song_bottom"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical">
<TextView
android:id="@+id/song_artist"
diff --git a/src/github/daneren2005/dsub/view/SongView.java b/src/github/daneren2005/dsub/view/SongView.java
index 645a66c8..3e423877 100644
--- a/src/github/daneren2005/dsub/view/SongView.java
+++ b/src/github/daneren2005/dsub/view/SongView.java
@@ -118,6 +118,11 @@ public class SongView extends UpdateView implements Checkable {
artist.append(")");
}
}
+
+ durationTextView.setText(Util.formatDuration(song.getDuration()));
+ } else {
+ findViewById(R.id.song_bottom).setVisibility(View.GONE);
+ statusTextView.setText(Util.formatDuration(song.getDuration()));
}
String title = song.getTitle();
@@ -128,7 +133,6 @@ public class SongView extends UpdateView implements Checkable {
titleTextView.setText(title);
artistTextView.setText(artist);
- durationTextView.setText(Util.formatDuration(song.getDuration()));
checkedTextView.setVisibility(checkable && !song.isVideo() ? View.VISIBLE : View.GONE);
revision = -1;