Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

android BottomSheetDialogFragment not opening fully on landscape

class MyBottomSheetFragment : BottomSheetDialogFragment() {
    //....
    override fun onStart() {
        super.onStart()
        //this forces the sheet to appear at max height even on landscape
        val behavior = BottomSheetBehavior.from(requireView().parent as View)
        behavior.state = BottomSheetBehavior.STATE_EXPANDED
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: change button text onclick javca 
Java :: how to convert a collection to array in java 
Java :: Diamond pattern program in java 
Java :: h2 database spring boot 
Java :: at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1565) 
Java :: toast no android 
Java :: write a name and convert it to an array 
Java :: javafx stackpane set position 
Java :: fill an array with random numbers between 1 and 100 java 
Java :: find minimum number in array java 
Java :: declare hashmap java 
Java :: get text from a jtextfield 
Java :: copy array in java 
Java :: set remove element java 
Java :: comparable on a generic class java 
Java :: How to create a popup window (PopupWindow) in Android 
Java :: How to iterate hashmap entries in java 
Java :: change image on button click android studio 
Java :: java singleton implementation 
Java :: how to convert string array to int in java 
Java :: transformer un string en double java 
Java :: how to use deque as stack in java? 
Java :: reentrantlock java 
Java :: how to set radio button checked in android programmatically 
Java :: java create file in folder 
Java :: find first element of list java 
Java :: compare two character alphabetically java 
Java :: switch case java with char 
Java :: generate serial uuid with intelij 
Java :: javafx main class 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =