Skip to content

Instantly share code, notes, and snippets.

@b95505017
Last active June 14, 2017 10:14
Show Gist options
  • Save b95505017/13f15dd4f8878d34d597732369ed23a5 to your computer and use it in GitHub Desktop.
Save b95505017/13f15dd4f8878d34d597732369ed23a5 to your computer and use it in GitHub Desktop.
DraggablePanel + StraaS MediaCore
dependencies {
compile 'com.github.pedrovgs:draggablepanel:1.9'
}
<?xml version="1.0" encoding="utf-8"?>
<!--/MediaCore/src/main/res/layout/straas_player_view.xml-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<SurfaceView
android:layout_width="0dp"
android:layout_height="0dp"
android:visibility="gone"/>
<com.github.pedrovgs.DraggableView
android:id="@+id/draggable_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
app:top_view_id="@+id/straasPlayer"
app:bottom_view_id="@android:id/list"
app:enable_minimized_horizontal_alpha_effect="false"
app:top_view_resize="true">
<android.support.v7.widget.RecyclerView
android:id="@android:id/list"
android:layout_below="@id/straasPlayer"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="LinearLayoutManager"
tools:listitem="@layout/list_item"/>
<io.straas.android.media.demo.widget.ui.AspectRatioFrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@id/straasPlayer"
android:background="@android:color/black"
android:layout_alignParentTop="true">
<io.straas.android.media.demo.widget.StraasPlayerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/straas"/>
</io.straas.android.media.demo.widget.ui.AspectRatioFrameLayout>
</com.github.pedrovgs.DraggableView>
</RelativeLayout>
@b95505017
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment