Fixed sliding panel closing when touching on any other point than a button

This commit is contained in:
Karim Abou Zeid 2015-08-15 00:59:38 +02:00
commit eea6ba69ca
3 changed files with 13 additions and 5 deletions

View file

@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
<FrameLayout
android:id="@+id/mini_player"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/mini_player_height"
android:background="?android:colorBackground">
android:background="?android:colorBackground"
android:clickable="true"
android:focusable="false">
<ImageView
android:id="@+id/mini_player_image"

View file

@ -2,7 +2,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:clickable="true"
android:focusable="false">
<!-- BOTTOM-->

View file

@ -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">
<include layout="@layout/player" />