androiddesignsupport

Java.lang.NoClassDefFoundError Issue when using Android Support Design NavigationView

怎甘沉沦 提交于 2020-01-03 09:07:16
问题 Getting the following issue when using NavigationView on a app: java.lang.NoClassDefFoundError: android.support.design.internal.NavigationMenuPresenter I got the same issue in this sample project: https://github.com/xamarin/monodroid-samples/tree/master/android5.0/Cheesesquare Test: Android 5.1 Extra information: ===================== Xamarin Studio Version 5.10.1 (build 6) Installation UUID: 4f372b0c-765f-463b-9408-1bd0211e4e94 Runtime: Mono 4.2.1 (explicit/6dd2d0d) GTK+ 2.24.23 (Raleigh

Single tab in TabLayout is not covering the entire width

喜欢而已 提交于 2020-01-02 03:31:07
问题 I have created a view pager with TabLayout. Now the issue is if I have 2 or more tabs then everything is fine. But if I am having only one tab then it is not covering the entire screen width. PFA the xml layout <android.support.design.widget.TabLayout android:id="@+id/sliding_tabs" android:layout_width="match_parent" android:layout_height="wrap_content" app:tabGravity="fill" app:tabMode="fixed" style="@style/TabLayout" android:fillViewport="true" android:layout_below="@id/ssrToolbar"/>

CoordinatorLayout ignores margins for views with anchor

試著忘記壹切 提交于 2020-01-01 03:55:25
问题 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"

AppBarLayout with recyclerView in nested fragment

扶醉桌前 提交于 2019-12-30 03:18:07
问题 As images are always better than words, I present to you my current layout . The toolbar/tabs is in an activity.xml with a viewPager, and the recyclerView is inside a fragment within the viewPager. So you can swipe right/left to see other content. My issue is that I want the AppBarLayout to be binded in its scrolling behaviour to the recyclerView in the first fragment, but not to the other fragments. In the code below, I did this binding but it doesn't work because the recyclerView doesn't

NestedScrollView and WebView height issue

自古美人都是妖i 提交于 2019-12-30 00:08:48
问题 I use new android.support.v4.widget.NestedScrollView and I faced with issue. Here is my layout: <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="250dp"> <android.support.design.widget.CollapsingToolbarLayout android:layout_width="match_parent" android:layout_height="match_parent" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|exitUntilCollapsed"> <RelativeLayout android:layout_width="match_parent" android:layout

Add app bar scrolling view behavior to multiple views in CoordinatorLayout

◇◆丶佛笑我妖孽 提交于 2019-12-29 02:18:14
问题 I am looking to add scroll support to more than just a single, scrollable, child view of CoordinatorLayout in conjunction with an AppBarLayout and CollapsingToolbarLayout . When scrolling the RecyclerView or the AppBarLayout (condensed code below), the app bar and its contents successfully scroll and collapse. However, when attempting to initiate a scroll event on the LinearLayout above the RecyclerView , nothing happens because the LinearLayout does not know to scroll or collapse the view.

Back Arrow and Overflow Icons Wrong Color in Pre-Lollipop Devices After Updating to Support Library 23.2.0

给你一囗甜甜゛ 提交于 2019-12-28 09:13:29
问题 On pre-Lollipop devices, the overflow menu icon and back button on actionbar changed to black color after upgrading to Support Library 23.2.0. They are white (which is the right color) before the upgrade. The correct color is: The wrong color appears for pre-Lollipop devices after the upgrade, as shown with the overflow menu icon: The theme in sytle.xml (pre-v21/Lollipop): <resources xmlns:android="http://schemas.android.com/apk/res/android" > <!--Used on the application level by the manifest

Android Design Library AppBar Scrolling behavior

寵の児 提交于 2019-12-25 03:34:30
问题 I have an own implementation of the scrolling toolbar in my app. In the new design library from Google http://android-developers.blogspot.de/2015/05/android-design-support-library.html there is a new implementation for scrolling the toolbar. Thats very nice and easy to implement but my problem is there is some limitation. I have a Toolbar and behind there is an image and a tabstrip at the bottom. If i use the new implementation i cant get the toolbar with the image scroll off and the tabstrip

remove or hide header navigationView in android

夙愿已清 提交于 2019-12-22 07:07:59
问题 i am using design 23.1.1 in my project. i want drawer without header. just menu items are enough. i dont add any header view(programmatically or in XML). but in drawer i have empty header. please help me how to remove this empty header. <android.support.design.widget.NavigationView android:id="@+id/navigation_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="right" app:menu="@menu/drawer" /> 回答1: View headerView= LayoutInflater.from(this)

remove or hide header navigationView in android

北城以北 提交于 2019-12-22 07:07:08
问题 i am using design 23.1.1 in my project. i want drawer without header. just menu items are enough. i dont add any header view(programmatically or in XML). but in drawer i have empty header. please help me how to remove this empty header. <android.support.design.widget.NavigationView android:id="@+id/navigation_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="right" app:menu="@menu/drawer" /> 回答1: View headerView= LayoutInflater.from(this)