androiddesignsupport

AppBarLayout and CollapsingToolbarLayout not able to contain Button?

試著忘記壹切 提交于 2019-11-29 23:27:42
问题 I am working with this following Repository here: CheeseSquare Repo via Chris Banes Overall it is good repository but lacks complex layout schemes. I want to achieve something like this: Where the "DO SOMETHING" button is contained inside AppBarLayout and nested inside CollapsingToolbarLayout , and it collapses as you scroll up. That is my original thought, but it doesn't seem to give me the behavior I am looking for. This is what my XML Layout looks like: <android.support.design.widget

How to make custom CoordinatorLayout.Behavior with parallax scrolling effect for google MapView?

旧街凉风 提交于 2019-11-29 22:52:02
问题 I try to make a parallax scrolling effect for google MapView and RecycleView using CoordinatorLayour . so base on some tutorials found on web I made below code. The layout: <?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" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools

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

女生的网名这么多〃 提交于 2019-11-29 20:53:35
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(view); ... View bottomSheet = dialog.findViewById(R.id.design_bottom_sheet); BottomSheetBehavior

CoordinatorLayout with RecyclerView And Collapsing header

拟墨画扇 提交于 2019-11-29 19:47:21
I have a layout like the following: (Toolbar, Header View, Text View, RecyclerView) I need the header to be collapsed when I scrolling recyclerview's items. So that the view "Choose item" and recyclerview left on the screen. I saw examples when toolbar is being collapsed, but I need toolbar to be present always. Which layouts/behavior should I use to get this work? Konstantin Loginov You can achieve it by having this layout: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android

CollapsingToolbarLayout not working(collapsing)when scrolled

心已入冬 提交于 2019-11-29 18:15:10
问题 I am trying to create a CollapsingToolbarLayout and below it a listview, when the listview is scrolled the Toolbar should collapse, but its not working when scrolled the Toolbar is not collapsing. Used this tutorial: http://android-developers.blogspot.in/2015_05_01_archive.html Note: The FrameLayout contains the listview <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android

Android design support library proguard rules

蓝咒 提交于 2019-11-29 17:19:39
问题 Have been trying to find some information about the rules needed for the new design support library to work passing proguard. I couldn't find any information about it. Ended up using these rules: -keep class android.support.design.widget.** { *; } -keep interface android.support.design.widget.** { *; } -dontwarn android.support.design.** These rules seem to work but I'm not really sure if there are better rules or if it works with all the classes inside the design support library 回答1: I meet

Pass scroll event to another view

北城以北 提交于 2019-11-29 07:54:11
问题 I have been using android design support library for collapsing toolbar layout. Everything works fine except that I want to scroll the whole view on scrolling content in collapsingBarlayout Here's the xml layout : <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height=

How to get the new NavigationView to play nice with status bar scrim?

僤鯓⒐⒋嵵緔 提交于 2019-11-29 06:22:21
问题 I've been playing with Google's new design support library and it's a blast! I'm just a little stumped though on the navigation view. All the things I read say that the NavigationView is smart enough to handle transparent scrim on its own. (The android-developers post, for one; search for scrim). Anyway, when I tried to do it I get the following result: Which is great; Exactly what I want. Except for one thing. When the drawer is closed, the scrim is an ugly dark grey, not my primaryColorDark

Android BottomSheet: Is hiding under the toolbar

与世无争的帅哥 提交于 2019-11-29 06:21:28
问题 I tried to use the new bottom sheet from the support library 23.2.0 to have a bottom sheet expand to full screen like suggested in the design guidelines This works very good but the bottom sheet goes under my ActionBar and under my tabs. How is it possible to let the bottom sheet go over the toolbar? My menu is structured like this: <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="

Error Inflating CollapsingToolbarLayout

狂风中的少年 提交于 2019-11-29 05:32:00
I recently updated the support design library to the latest version and now every activity that has a CollapsingToolbarLayout throws the following exception: java.lang.NoSuchMethodError: No static method setLayoutDirection(Landroid/graphics/drawable/Drawable;I)V in class Landroid/support/v4/graphics/drawable/DrawableCompat; or its super classes (declaration of 'android.support.v4.graphics.drawable.DrawableCompat' appears in /data/data/com.radioafrica.music/files/instant-run/dex/slice-com.android.support-support-v4-24.0.0-beta1_f8cf3ba4c70f87f407a745b9fa14a2205d0b587c-classes.dex) The full