[Android] move list up when mini player is shown
Sébastien Toque
git at videolan.org
Wed Jan 15 20:03:21 CET 2014
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Jan 15 20:01:34 2014 +0100| [7cb170b8d22e10b97ca803b8b7b18cd218f26837] | committer: Sébastien Toque
move list up when mini player is shown
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=7cb170b8d22e10b97ca803b8b7b18cd218f26837
---
vlc-android/res/layout/main.xml | 6 ++++++
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/vlc-android/res/layout/main.xml b/vlc-android/res/layout/main.xml
index 788c969..8f46540 100644
--- a/vlc-android/res/layout/main.xml
+++ b/vlc-android/res/layout/main.xml
@@ -43,6 +43,12 @@
android:singleLine="true"
android:textColor="#FFFFFFFF" />
</RelativeLayout>
+
+ <View
+ android:id="@+id/audio_mini_player_filling"
+ android:layout_width="fill_parent"
+ android:layout_height="60dp"
+ android:visibility="gone" />
</org.videolan.vlc.widget.ContentLinearLayout>
<FrameLayout
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 6446d6c..f71b1ef 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -106,6 +106,7 @@ public class MainActivity extends SherlockFragmentActivity {
private View mInfoLayout;
private ProgressBar mInfoProgress;
private TextView mInfoText;
+ private View mAudioPlayerFilling;
private String mCurrentFragment;
private SharedPreferences mSettings;
@@ -191,6 +192,7 @@ public class MainActivity extends SherlockFragmentActivity {
mInfoLayout = v_main.findViewById(R.id.info_layout);
mInfoProgress = (ProgressBar) v_main.findViewById(R.id.info_progress);
mInfoText = (TextView) v_main.findViewById(R.id.info_text);
+ mAudioPlayerFilling = v_main.findViewById(R.id.audio_mini_player_filling);
/* Set up the action bar */
prepareActionBar();
@@ -743,6 +745,7 @@ public class MainActivity extends SherlockFragmentActivity {
// Open the pane only if is entirely opened.
if (mSlidingPane.getState() == mSlidingPane.STATE_OPENED_ENTIRELY)
mSlidingPane.openPane();
+ mAudioPlayerFilling.setVisibility(View.VISIBLE);
}
/**
@@ -750,6 +753,7 @@ public class MainActivity extends SherlockFragmentActivity {
*/
public void hideMiniPlayer() {
mSlidingPane.openPaneEntirely();
+ mAudioPlayerFilling.setVisibility(View.GONE);
}
private final SlidingPaneLayout.PanelSlideListener mPanelSlideListener
More information about the Android
mailing list