java - DraggableView in android -


i using github library of draggablepanel found here.

<com.github.pedrovgs.draggableview xmlns:android="http://schemas.android.com/apk/res/android"             xmlns:draggable_view="http://schemas.android.com/apk/res-auto"             android:id="@+id/draggable_view"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:gravity="bottom"             draggable_view:bottom_view_id="@+id/bottom"             draggable_view:enable_minimized_horizontal_alpha_effect="false"             draggable_view:top_view_height="60dp"             draggable_view:top_view_id="@+id/fullmedia"             draggable_view:top_view_margin_bottom="60dp"             draggable_view:top_view_margin_right="0dp"             draggable_view:top_view_resize="true"             draggable_view:top_view_x_scale_factor="100"             draggable_view:top_view_y_scale_factor="100">  <linearlayout                 android:id="@+id/fullmedia"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:background="@color/primary_material_light_1"                 android:orientation="vertical"> <-- other staffs here -->  </linearlayout>  <linearlayout                 android:id="@+id/bottom"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:background="@color/primary_material_light_1"                 android:orientation="vertical"> <-- other staffs here -->  </linearlayout>   </draggableview  

it nice library. having short of problems. need add button controls in top view , buttons should respond clicks. in java class using these 2 methods.

draggableview.setclicktomaximizeenabled(true); draggableview.setclicktominimizeenabled(true); 

but know know why buttons on top view not working. can tell me reason? thing notice when minimize/maximize several times or open other fragments the draggable view gradually becomes transparent. why happens ?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -