android-collapsingtoolbarlayout

Tabs in CollapsingToolbarLayout overlapping RecyclerView

人盡茶涼 提交于 2019-12-11 16:32:55
问题 I have a TabLayout which has a ViewPager that selects between two fragments which both have vertical scrolling RecyclerViews. I have a scrolling TabLayout so that when I scroll the RecyclerView, the tabs disappear. However, it starts off with the TabLayout overlapping the RecyclerView's first item, cutting it off. I have tried adding margin to the ViewPager but this margin exists even after the tabs have been scrolled off of the screen. How could I change it so the tabs do not overlap the

Transparent StatusBar when collapsed

南楼画角 提交于 2019-12-11 12:44:45
问题 I have three working status bars. But when the CollapsingToolbar is collapsed, a status bar remains transparent. I want the status bar to have the PrimaryDark color if collapsed. How do I detect if the status bar is collapsed and remove the transparency? Print – Expanded: Print – Collapsed: XML Code: <android.support.design.widget.AppBarLayout android:id="@+id/app_bar" android:layout_width="match_parent" android:layout_height="@dimen/app_bar_height" android:fitsSystemWindows="true" android

Android Collapsing Layout with parallax effect for fragments crashes

好久不见. 提交于 2019-12-11 05:53:19
问题 In my MainActivity.java in the onCreate() I have this: collapsingToolbar = (CollapsingToolbarLayout)findViewById(R.id.collapsing_toolbar); collapsingToolbar.setTitleEnabled(true); It works for one two times donw and upscrolling and than it stops everything - and when you scroll up till the imageview is not visible, the hamburger and the meatball icons are not visible anymore; they also scroll with the rest upwards. I get this error message: W/Adreno-GSL: : sharedmem_gpumem_alloc: mmap failed

AppBar won't overlap statusbar, when using CollapsingToolbarLayout

非 Y 不嫁゛ 提交于 2019-12-11 05:26:50
问题 I want AppBar to overlap StatusBar . AppBar has image as background and I want this image to overlap statusbar, but when I use CollapsingToolbarLayout StatusBar gets white and image is below StatusBar : I want something like this: Heres my code: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android

CollapsingToolBarLayout could not be instantiated

空扰寡人 提交于 2019-12-11 02:26:24
问题 For the past few months I have been using Collapsing Toolbar Layout with no problem. However today, this error pops up whenever I open the xml file. The exact error reads: The following classes could not be instantiated: - android.support.design.widget.CollapsingToolbarLayout Here is the stack trace: android.content.res.Resources$NotFoundException at com.android.layoutlib.bridge.android.BridgeContext.obtainStyledAttributes(BridgeContext.java:656) at com.android.layoutlib.bridge.android

Error when setting contentscrim color on CollapsingToolbarLayout

眉间皱痕 提交于 2019-12-10 18:32:26
问题 My app recently started to crash on any activity or fragment that has a CollapsingToolbarLayout with the following error log: ` Unable to start activity ComponentInfo{com.radioafrica.music/com.radioafrica.music.activity.PlaylistTracks}: android.view.InflateException: Binary XML file line #31: Binary XML file line #31: Error inflating class android.support.design.widget.CollapsingToolbarLayout at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app

Collapsing toolbar with floating action Menu

帅比萌擦擦* 提交于 2019-12-10 15:21:35
问题 I followed this link to create floating toolbar with fab .. Collapsing toolbar with floating action Menu I tried to change the fab to a floating menu with few options when i click on the flab but when i attached the fab along with the toolbar,I couldn't collapse the toolbar along with the fab and hide the floating menu. This is the link which i followed to create floating menu Sub menu items in fab Can any one help me please.... My layout <?xml version="1.0" encoding="utf-8"?> <android

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 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

(Collapsing)Toolbar title resets its position after Snackbar appearance

谁都会走 提交于 2019-12-09 18:14:01
问题 I have a layout with CollapsingToolbarLayout and CoordinatorLayout as root element. Whenever a Snackbar is shown in the activity the title of the toolbar resets its position to the default expanded title position of the CollapsingToolbar even if the toolbar is not (fully) expanded. The second picture shows that the title is fixed no matter if the toolbar expands or not. The result is the same when I call snackbar.show() in activity or fragment . My layout structure looks like this: