move seek bar to bottom
This commit is contained in:
parent
1a4484b0c1
commit
66bebc8709
@ -311,7 +311,7 @@ public final class CoverView extends View implements Handler.Callback {
|
||||
int height = getHeight();
|
||||
int x = 0;
|
||||
int scrollX = mScrollX;
|
||||
double padding = 14 * sDensity;
|
||||
double padding = -4 * sDensity;
|
||||
boolean snapshot = !mScroller.isFinished();
|
||||
Bitmap bitmap;
|
||||
|
||||
|
@ -57,7 +57,6 @@ public class FullPlaybackActivity extends SlidingPlaybackActivity
|
||||
public static final int DISPLAY_INFO_WIDGETS = 2;
|
||||
|
||||
private TextView mOverlayText;
|
||||
private View mControlsTop;
|
||||
|
||||
private TableLayout mInfoTable;
|
||||
private TextView mQueuePosView;
|
||||
@ -154,7 +153,6 @@ public class FullPlaybackActivity extends SlidingPlaybackActivity
|
||||
mAlbum = (TextView)findViewById(R.id.album);
|
||||
mArtist = (TextView)findViewById(R.id.artist);
|
||||
|
||||
mControlsTop = findViewById(R.id.controls_top);
|
||||
mQueuePosView = (TextView)findViewById(R.id.queue_pos);
|
||||
|
||||
mGenreView = (TextView)findViewById(R.id.genre);
|
||||
@ -475,7 +473,6 @@ public class FullPlaybackActivity extends SlidingPlaybackActivity
|
||||
private void setControlsVisible(boolean visible)
|
||||
{
|
||||
int mode = visible ? View.VISIBLE : View.GONE;
|
||||
mControlsTop.setVisibility(mode);
|
||||
mSlidingView.setVisibility(mode);
|
||||
mControlsVisible = visible;
|
||||
|
||||
@ -503,9 +500,9 @@ public class FullPlaybackActivity extends SlidingPlaybackActivity
|
||||
((TextView)row.getChildAt(1)).setSingleLine(singleLine);
|
||||
}
|
||||
// toggle visibility of all but the first three rows (the title/artist/
|
||||
// album rows) and the last row (the seek bar)
|
||||
// album rows)
|
||||
int visibility = visible ? View.VISIBLE : View.GONE;
|
||||
for (int i = table.getChildCount() - 1; --i != 2; ) {
|
||||
for (int i = table.getChildCount() - 1; i > 2 ; i--) {
|
||||
table.getChildAt(i).setVisibility(visibility);
|
||||
}
|
||||
mExtraInfoVisible = visible;
|
||||
|
@ -26,7 +26,6 @@ THE SOFTWARE.
|
||||
android:id="@+id/cover_view"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent" />
|
||||
<include layout="@layout/seek_bar" android:id="@+id/controls_top" />
|
||||
|
||||
<ch.blinkenlights.android.vanilla.SlidingView
|
||||
android:id="@+id/sliding_view"
|
||||
@ -37,7 +36,14 @@ THE SOFTWARE.
|
||||
android:orientation="horizontal"
|
||||
vanilla:slider_handle_id="@+id/queue_slider">
|
||||
|
||||
<include layout="@layout/controls" android:id="@+id/queue_slider"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<include layout="@layout/seek_bar" />
|
||||
<include layout="@layout/controls" android:id="@+id/queue_slider" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<fragment class="ch.blinkenlights.android.vanilla.ShowQueueFragment"
|
||||
android:id="@+id/queue"
|
||||
|
@ -48,7 +48,6 @@ THE SOFTWARE.
|
||||
android:gravity="right" />
|
||||
<TextView android:id="@+id/replaygain" android:textColor="?overlay_foreground_color"/>
|
||||
</TableRow>
|
||||
<include layout="@layout/seek_bar" android:id="@+id/controls_top" />
|
||||
</TableLayout>
|
||||
|
||||
|
||||
@ -61,7 +60,13 @@ THE SOFTWARE.
|
||||
android:orientation="horizontal"
|
||||
vanilla:slider_handle_id="@+id/queue_slider">
|
||||
|
||||
<include layout="@layout/controls" android:id="@+id/queue_slider"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<include layout="@layout/seek_bar" />
|
||||
<include layout="@layout/controls" android:id="@+id/queue_slider" />
|
||||
</LinearLayout>
|
||||
|
||||
<fragment class="ch.blinkenlights.android.vanilla.ShowQueueFragment"
|
||||
android:id="@+id/queue"
|
||||
|
Loading…
x
Reference in New Issue
Block a user