Closed achinverma closed 6 years ago
Hi @achinverma , did you find solution for this ? If yes, can you share your experience ?
@sohailniazai , you can use bottom navigation sheet in android
Actually I need top down slide which is not provided in bottom navigation sheet. Thanks
On Thu, Apr 12, 2018, 5:47 PM Achin verma notifications@github.com wrote:
@sohailniazai https://github.com/sohailniazai , you can use bottom navigation sheet in android
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mancj/SlideUp-Android/issues/57#issuecomment-380792682, or mute the thread https://github.com/notifications/unsubscribe-auth/AhCY9JzP1Wlk__Dd84b0qbcOOvXvT2Boks5tn0zPgaJpZM4Q5Adt .
Hi @sohailniazai, here it's what I did : I've create 2 LinearLayout, the second one will be the slideview, see :
<LinearLayout
android:elevation="5dp"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:divider="?android:dividerHorizontal"
android:showDividers="middle">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/topslideview">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/slideView"
android:orientation="vertical">
</LinearLayout>
</LinearLayout>
So there is TopSlideView and slideview.
In your activity add :
slideView = (LinearLayout) findViewById(R.id.slideView); topslideview = (LinearLayout) findViewById(R.id.topslideview); slideUp = new SlideUpBuilder(slideView) .withStartState(SlideUp.State.HIDDEN) .withStartGravity(Gravity.BOTTOM) .withSlideFromOtherView(topslideview) .build();
that's all. Sorry for bad english
Hi, i am using this library from bottom to top slide , but when we slide from top to bottom it completely hide the slide view , i want to show some part of the slide view when we slide from top to bottom like in the below screen show. like in the google music app.