bottom-sheet

BottomSheetDialogFragment - How to set expanded height (or min top offset)

*爱你&永不变心* 提交于 2019-11-27 10:07:27
问题 I create a BottomSheetDialogFragment and I want to adjust it's maximum expanded height. How can I do that? I can retrieve the BottomSheetBehaviour but all I can find is a setter for the peek height but nothing for the expanded height. public class DialogMediaDetails extends BottomSheetDialogFragment { @Override public void setupDialog(Dialog dialog, int style) { super.setupDialog(dialog, style); View view = View.inflate(getContext(), R.layout.dialog_media_details, null); dialog.setContentView

Android - Show BottomSheetDialogFragment above Keyboard

半腔热情 提交于 2019-11-27 06:42:48
问题 I'm trying to show a BottomSheetDialogFragment with a few EditText fields for the user to enter information. I want to show it directly above the keyboard, but it keeps covering up the contents. This is what happens when I bring up the BottomSheetDialogFragment , you can see it's selecting Card Number EditText , but covering the other content. Ideally, this is what I'm looking for, you can see both EditTexts , and the padding of the View. I've tried a lot of solutions revolving around

Sliding up image with Official Support Library 23.x.+ bottomSheet like google maps

流过昼夜 提交于 2019-11-27 05:03:35
问题 Update I want to accomplish the same behavior that google maps has with Support Library 23.x.+ and without ANY 3rd library NOTE: this in not a duplicated question because: I want to use Behaviors, Support Library and without ANY 3rd party library (I added it in question title and above description) I wanted ALL behaviors that you see in next gif, the other questions are asking for one or two behaviors and using ANY WAY to achieve it. I have already the Official bottomSheet working (even

Make bottomSheetDialog full screen over status bar

丶灬走出姿态 提交于 2019-11-27 01:23:50
问题 I recently used android.support.design.widget.BottomSheetDialogFragment. I wanted to do something which is similar to the Google contact app, its BottomSheet can overlay the toolbar and statusbar. However, when I use the BottomSheetDialogFragment to implement this, it turns out to this: As you can see the activity's toolbar is still visible. Here is my code of the BottomSheetDialogFragment : public class KeyDetailFragment extends BottomSheetDialogFragment { private BottomSheetBehavior

Bottom Sheet Fragment comes up with keyboard

喜夏-厌秋 提交于 2019-11-26 19:25:11
问题 I have an edit text inside a bottom sheet fragment. when the focus come on the edit text the layout goes up . i tried android:windowSoftInputMode="adjustNothing" its work for the parent activity but not for the dialog fragment. This is my bottom sheet class: public class CustomBottomSheetDialogFragment extends BottomSheetDialogFragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.content

Keyboard hides BottomSheetDialogFragment

痞子三分冷 提交于 2019-11-26 19:21:21
问题 There are more fields below the keyboard. This happened when i updated the support library. I know it's Kotlin but it looks almost the same as java. How do I fix this issue? This is what it looks like: My code: class ProjectsEditBottomSheetFragment(val privateID: String, val publicID: String) : BottomSheetDialogFragment() { private val mBottomSheetBehaviorCallback = object : BottomSheetBehavior.BottomSheetCallback() { override fun onStateChanged(bottomSheet: View, newState: Int) { if

Prevent dismissal of BottomSheetDialogFragment on touch outside

对着背影说爱祢 提交于 2019-11-26 16:49:58
问题 I have implemented a BottomSheet Dialog and I want to prevent the bottomsheet from dismissing when the user touches outside of the bottomsheet when it's peeking (Not fully expanded state). I have set dialog.setCanceledOnTouchOutside(false); in the code but it doesn't seem to take any affect. Here's my BottomSheetDialogFragment class: public class ShoppingCartBottomSheetFragment extends BottomSheetDialogFragment { private BottomSheetBehavior.BottomSheetCallback mBottomSheetBehaviorCallback =

Round corner for BottomSheetDialogFragment

試著忘記壹切 提交于 2019-11-26 12:13:07
问题 i have an custom BttomSheetDialogFragment and i want to have round corners in top of Bottom View this is my Custom class that inflating my layout that i want to appear from bottom View mView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mView = inflater.inflate(R.layout.charge_layout, container, false); initChargeLayoutViews(); return mView; } and also i have this xml resource file as background : <shape xmlns:android=\"http:/