qhutch / bottomsheetlayout Goto Github PK
View Code? Open in Web Editor NEWSimple bottom sheet view for Android
Simple bottom sheet view for Android
How to make ListView scrollable inside bottomsheetlayout?
i can not expand and collapse BottomSheetLayout on of other view.
please help me
how yo disable swipe while using the library not whole code.
can we use Menu item instead of imageView for the button (i.e: imageViewArrow) ?
please answer me quickly.
menu.xml >> bottom_navigation_menu.xml
<menu>
<item android:id="@+id/profileFragment"
android:title="Profile"
android:icon="@drawable/ic_baseline_person_24"
app:showAsAction="always" />
</menu>
Activity.kt
profileFragment.setOnClickListener { bottomBarLayout.toggle() }
bottomBarLayout.setOnProgressListener { progress -> rotateArrow(progress)}
Here profileFragment giving an error (unresolved symbol : profileFragment)
and a suggestion Create abstract property 'profileFragment'
@qhutch please help
Hi,
I want to use this as a top and bottom sheet layout, the problem is that when you use it on top it will disappear, is there any way to use on top just like it is used at bottom ?
Sadly I use minSDK15 in my app.
Is it possible to support API 15 with this library?
I am adding background selectors in the items inside bottomsheetLayout but it seems that doesnt work.
IDK why.
this is the layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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:background="@color/background_menu"
android:orientation="vertical">
<LinearLayout
android:id="@+id/llToggle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/mako"
android:clickable="true"
android:gravity="center"
android:padding="5dp">
<ImageView
android:id="@+id/ivToggle"
android:layout_width="50dp"
android:layout_height="50dp"
android:padding="15dp"
android:src="@drawable/down" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.constraint.ConstraintLayout
android:id="@+id/clLive"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/selector_bg_abbey"
android:clickable="true"
android:focusable="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/ivLive"
android:layout_width="24.7dp"
android:layout_height="24.7dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:clickable="false"
android:focusable="false"
android:src="@drawable/ic_live"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.15"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvLive"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_lg"
android:clickable="false"
android:focusable="false"
android:text="@string/menu_live"
android:textColor="@color/cyan"
android:textSize="20.7sp"
app:layout_constraintBottom_toBottomOf="@+id/ivLive"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/ivLive"
app:layout_constraintTop_toTopOf="@+id/ivLive" />
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:background="@color/mako"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout
android:id="@+id/clVideoHistory"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@drawable/selector_bg_abbey"
android:clickable="true"
android:focusable="true">
<ImageView
android:id="@+id/ivVideoHistory"
android:layout_width="24.7dp"
android:layout_height="24.7dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:clickable="false"
android:focusable="false"
android:src="@drawable/ic_video_history_off"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.15"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvVideoHistory"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_lg"
android:clickable="false"
android:focusable="false"
android:text="@string/menu_video_history"
android:textColor="@color/white"
android:textSize="20.7sp"
app:layout_constraintBottom_toBottomOf="@+id/ivVideoHistory"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/ivVideoHistory"
app:layout_constraintTop_toTopOf="@+id/ivVideoHistory" />
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:background="@color/mako"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</LinearLayout>
</LinearLayout>
This is the selector (selector_bg_abbey.xml):
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/black_25percent" android:state_pressed="true" />
<item android:drawable="@color/abbey" />
</selector>
The thing is that no one of the ConstraintLsyout do nothing with that background.
There are a few different test to try to understand this behavior.
I have a problem, because i tried to put a RecycleView into a BottomSheetLayout, but my recycleView don't scroll. Have a way to make this works?
Is there a way to set max expanded height? i don't want it to cover the whole view.
Many thanks for great work, however, when I add a seek bar, it doesn't work. I need your urgent help.
thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.