From eea6ba69ca52fdc6b22420cbd2388505cc3fc56b Mon Sep 17 00:00:00 2001 From: Karim Abou Zeid Date: Sat, 15 Aug 2015 00:59:38 +0200 Subject: [PATCH] Fixed sliding panel closing when touching on any other point than a button --- app/src/main/res/layout/mini_player.xml | 9 ++++++--- app/src/main/res/layout/player.xml | 4 +++- app/src/main/res/layout/sliding_music_panel_layout.xml | 5 ++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/mini_player.xml b/app/src/main/res/layout/mini_player.xml index 3e4f9076..a20e6ce6 100644 --- a/app/src/main/res/layout/mini_player.xml +++ b/app/src/main/res/layout/mini_player.xml @@ -1,10 +1,13 @@ - + android:background="?android:colorBackground" + android:clickable="true" + android:focusable="false"> + android:layout_height="match_parent" + android:clickable="true" + android:focusable="false"> diff --git a/app/src/main/res/layout/sliding_music_panel_layout.xml b/app/src/main/res/layout/sliding_music_panel_layout.xml index d8906741..68f69535 100644 --- a/app/src/main/res/layout/sliding_music_panel_layout.xml +++ b/app/src/main/res/layout/sliding_music_panel_layout.xml @@ -8,6 +8,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="bottom" + sothree:umanoDragView="@+id/player_container" sothree:umanoPanelHeight="@dimen/mini_player_height" sothree:umanoParalaxOffset="0dp" sothree:umanoShadowHeight="@dimen/card_elevation"> @@ -21,7 +22,9 @@ android:id="@+id/player_container" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?android:colorBackground"> + android:background="?android:colorBackground" + android:clickable="true" + android:focusable="false">