androiddesignsupport

no resource id found for app:layout_scrollflags from CollapsingToolbarLayout

房东的猫 提交于 2019-12-03 14:31:39
问题 The title of this question basically says it all. I get the error: no resource identifier found for app:layout_scrollflags from CollapsingToolbarLayout. I use eclipse and imported the design library jar file. I'm able to use the design support layouts in my classes so that's correct this is a piece of the code i use: <LinearLayout 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"

CollapsingToolbarLayout crash on 4.4 devices (java.lang.IllegalArgumentException: radius must be > 0)

﹥>﹥吖頭↗ 提交于 2019-12-03 11:39:50
问题 I have implemented the new style Collapsible Toolbar. I am using the same code as the example (Cheesesquare) demo app - which of course works fine on all devices. I need help figuring out what I am doing different then the sample (so my app won't crash). My app runs great on 5.0+ devices, but crashes on older devices (OS 4.4.4) with an error that I can't isolate to my code (no references to my project's classes in the stack). Seems so strange to me that this is device specific (if this was a

CoordinatorLayout ignores margins for views with anchor

醉酒当歌 提交于 2019-12-03 09:40:01
Given I'm using a layout like this: <android.support.design.widget.CoordinatorLayout android:id="@+id/main_content" 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:fitsSystemWindows="true"> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="@dimen/flexible_space_image_height" android:fitsSystemWindows="true" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

Panning google map in CoordinatorLayout causes recyclerview to scroll in android design support library 23.0.1

时间秒杀一切 提交于 2019-12-03 09:08:09
问题 The map is in a collapsingToolbarLayout which is nested in an appBarLayout. In versions 22.2.0 and 22.2.1 of the android design support library, I could pan around the map independently of the coordinatorLayout but in 23.0.1, if i try to pan across the map in the north/south axis, it causes the recyclerview to scroll up/down. Is this a bug or is there a way to pass the touch events from the appBarLayout to the mapFragment? <android.support.design.widget.AppBarLayout android:id="@+id/app_bar

RecyclerView (horizontal) nested in BottomSheet preventing vertical scrolling

岁酱吖の 提交于 2019-12-03 06:53:23
问题 I have a RecyclerView using a LinearLayoutManager with HORIZONTAL orientation, nested inside a FrameLayout using the BottomSheet Behavior . When attempting to drag vertically across the RecyclerView , the BottomSheet doesn't respond to the drag event. Presumably this is because vertical scrolling is disabled for a LayoutManager with horizontal orientation. I've tried overriding LinearLayoutManager.canScrollVertically() and returning true. This sort of works.. If you drag vertically in a very

How to implement animated vector drawables using the design support library 23.2?

断了今生、忘了曾经 提交于 2019-12-03 06:23:39
问题 I've seen the android developers blog that the new design support library 23.2 supports animated vector. When i searched i came across this link to implement animated vector drawable. Is it the same way to implement animated vector drawables in design support library 23.2? Can someone help me out with the new implementation? 回答1: Here's a link to an example project on Github implementing the Support Library to make this Floating Action Button. Using the Support Library is very similar to the

Switch in Navigation drawer item with Design Support Library on Android

十年热恋 提交于 2019-12-03 06:12:59
I need to put Switch inside item in navigation drawer. I'm using new design support library, but I cannot find if it is posibble at all. When using android:checkable item is just full selected and that is not what I wish. This is screenshot of what I really want. Is that possible to achieve that? Your menu item for the navigation drawer: <item android:id="@+id/nav_item1" android:icon="@drawable/ic_item1" android:title="item1" app:actionLayout="@layout/layout_switch" /> and the layout for that item: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com

Show Helper text below EditText along with the Hint

拈花ヽ惹草 提交于 2019-12-03 06:10:12
I am trying to make something on these lines: I am able to show the hint using android:hint="Email Address" but unable to show the helper text - This will be your email username <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/et_username" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="15" android:hint="Username" app:et_helper="Username is preferably your registered email"/> </android.support.design.widget.TextInputLayout>` What I am getting is only and no

CollapsingToolbarLayout not collapsing when EditText get focused

倖福魔咒の 提交于 2019-12-03 05:05:57
I am using CollapsingToolBar inside CoordinatorLayout and I've NestScrollView containing some EditText as child views. What i am facing is when edittext get focused and keybaoard appear my complete view doesn't scroll up. Below is the code and image as output of that layout. <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="@dimen/app_bar_height" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> <android.support.design.widget.CollapsingToolbarLayout android:id="@+id/collapsing_toolbar" android:layout

(Design Support Library) CollapsingToolbarLayout — Toolbar not getting pinned on collapse

别等时光非礼了梦想. 提交于 2019-12-03 01:20:49
I'm having trouble integrating the Design Support Library into my application. For some reason, the toolbar collapses with the CollapsingToolbarLayout, and does not leave it pinned like in the Cheesesquare example by Chris Banes. https://github.com/chrisbanes/cheesesquare I didn't do anything different to my layout. In fact, I replaced my styles with his, and dropped in his layout. I wonder if using Toolbar, instead of android.support.v7.widget.Toolbar is causing this. Here is the problem. Here is my XML of the AppBar section. <android.support.design.widget.CoordinatorLayout xmlns:android=