android-coordinatorlayout

When not collapsed some part of the the toolbar is visible over the ImageView of CollapsingToolbarLayout

烈酒焚心 提交于 2019-12-10 11:46:52
问题 The CollapsingToolbarView works perfectly fine, but there is this unwanted strip on the ImageView of the collapsing toolbar. As you can see below there is a red strip (possibly toolbar) after the status bar. How do I get rid of it? Below is the relevant xml file: fragment_movie.xml <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android

How do you hide floating action buttons from the keyboard?

若如初见. 提交于 2019-12-10 11:14:00
问题 I have FloatingActionButtons and FloatingActionMenus in CoordinatorLayouts, but I also have some EditTexts in there too, with the adjustPan window mode. But when I go to click the EditTexts, the floating buttons/menus come up along with the keyboard and somewhat block the visible area (such as the row containing the EditText). Can I somehow prevent the floating items from coming up with the keyboard? 回答1: There is a library which can listen to keyboard visibility, if the keyboard is visbile

How to put RecyclerView below CollapsingToolbarLayout and responsive to toolbar when collapsed in Android?

◇◆丶佛笑我妖孽 提交于 2019-12-10 03:09:04
问题 I am developing an Android App. In my app I am using, CollapsingtoolbarLayout together with RecyclerView. Both are working. But I am having a problem with positioning them. What I want is I want RecyclerView directly below Collapsing Toobar and I want RecyclerView go up together with toolbar when it is collapsed. But my code is not working as I expected. This is what happening now. As you can see recycler view is having fixed position covered with toolbar. It is not responsive to collapsed

AppBar hides view when scrolling until collapsed

早过忘川 提交于 2019-12-09 16:50:23
问题 My AppBar hides one of my views right when it reaches the end of the scrolling, but I want the pinned view to stay above the AppBar even when it reaches the end of its scrolling. Here is what my view looks like before I start scrolling: And this is what it looks like when it is fully scrolled: You can see that the circular image on the bottom left of the AppBar is now hidden under the bar. Here is my fragment's XML code: <android.support.design.widget.CoordinatorLayout xmlns:android="http:/

How to dim background when using the BottomSheet from the support library?

送分小仙女□ 提交于 2019-12-09 16:38:00
问题 How can the background be dimmed just like it is shown here? I've set it up normally using the CoordinatorLayout and the BottomSheetBehavior . 回答1: This will simply show a bottom sheet. public class MyBottomSheet extends BottomSheetDialogFragment { private static final String TAG = "MyBottomSheet"; @NonNull @Override public Dialog onCreateDialog(final Bundle savedInstanceState) { final BottomSheetDialog dialog = (BottomSheetDialog) super.onCreateDialog(savedInstanceState); final View view =

Viewpager is being pushed out of the screen [CoordinatorLayout] [Design Library]

◇◆丶佛笑我妖孽 提交于 2019-12-09 16:11:17
问题 I have a simple app with a viewpager containing 3 fragments. In one of the fragments I have Recyclerview list. When scrolling down, the toolbar is collapsed and when scrolling up is shown. My problem is when the toolbar is collapsed and I scroll left/right I am expanding it programmatically and it pushes the viewpager down doing so instead of just overlapping it. This results in an not pleasing displacement of the views of the screen. How can I have the toolbar to overlap my viewpager instead

When not collapsed some part of the the toolbar is visible over the ImageView of CollapsingToolbarLayout

被刻印的时光 ゝ 提交于 2019-12-08 16:14:38
The CollapsingToolbarView works perfectly fine, but there is this unwanted strip on the ImageView of the collapsing toolbar. As you can see below there is a red strip (possibly toolbar) after the status bar. How do I get rid of it? Below is the relevant xml file: fragment_movie.xml <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" android:layout_width="match_parent" android:fitsSystemWindows="true"

Recyclerview preview showing grey screen with android.support.v7.widget.RecyclerView in center

两盒软妹~` 提交于 2019-12-08 13:07:29
问题 I am trying to add Recyclerview to my activity layout but the layout preview shows me this. I went through all possible answers which i could find out and tried doing things like changing app theme to holo.light adding <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"> to res>styles.xml went through all possible relating questions like this and this as well and made changes accordingly in my code. My build.gradle file is as follows: apply plugin: 'com.android

ViewPager not showing up with CoordinatorLayout

一个人想着一个人 提交于 2019-12-08 09:01:35
问题 My app's action bar consists of a toolbar and a tab view with a ViewPager to display the page's content. I am trying to use a CoordinatorLayout as my root view instead of a LinearLayout, but when I replace LinearLayout with android.support.design.widget.CoordinatorLayout , the content with my ViewPager is no longer visible. Here is the XML with LinearLayout as root: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"

Android Bottom Sheet Layout XML

谁说我不能喝 提交于 2019-12-08 08:14:29
问题 Hello there I am trying to implement a simple Android Bottom sheet and my used xml is as follow! MY XML <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> <LinearLayout android:layout_width="match_parent"