android-coordinatorlayout

Xamarin Android CoordinatorLayout hide/show another layout than toolbar

扶醉桌前 提交于 2019-12-24 06:29:03
问题 I need a help with CoordinatorLayout... I need hide/show toolbar when scrolling and together with this hiding behavior I need make smaller text and hide another layout in my AppBarLayout... My layout looks like this: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/coordinatorLayout" android:layout_width="match_parent" android

CoordinatorLayout custom behavior at right of Toolbar with AppBarLayout

旧时模样 提交于 2019-12-24 06:18:41
问题 Based on this tutorial, https://github.com/saulmm/CoordinatorBehaviorExample,I am trying to create an application which have a circle image that scrolls up to the Right of Toolbar and when scrolling down goes to the middle of the expanded AppBarLayout. How to make it move to right of Toolbar with above mentiond behaviour and animation. 回答1: AppBarTranslateScaleBehavior will help you achieve such a behavior. 来源: https://stackoverflow.com/questions/44398208/coordinatorlayout-custom-behavior-at

CoordinatorLayout custom behavior at right of Toolbar with AppBarLayout

南笙酒味 提交于 2019-12-24 06:18:11
问题 Based on this tutorial, https://github.com/saulmm/CoordinatorBehaviorExample,I am trying to create an application which have a circle image that scrolls up to the Right of Toolbar and when scrolling down goes to the middle of the expanded AppBarLayout. How to make it move to right of Toolbar with above mentiond behaviour and animation. 回答1: AppBarTranslateScaleBehavior will help you achieve such a behavior. 来源: https://stackoverflow.com/questions/44398208/coordinatorlayout-custom-behavior-at

Create an Overlay view to cover whole activity including toolbar in coordinator layout

寵の児 提交于 2019-12-24 03:01:32
问题 I want to create an overlay kind of layout to be displayed above an activity including toolbar. I cannot use any library to do this as everything that I've written is custom. I was able to achieve it by adding my view to decor view directly, by using this code : ViewGroup vg = (ViewGroup)(getWindow().getDecorView().getRootView()); tutorialViewContainer = (RelativeLayout) View.inflate(this, R.layout.layout_simple_overlay, null); vg.addView(tutorialViewContainer, params); but this code has an

Android Studio resource linking failed

笑着哭i 提交于 2019-12-23 19:31:07
问题 I tried to update my app to sdk version 28 and I am constantly getting this error: Android resource linking failed Output: C:\Users\nick\AndroidStudioProjects\BrowserElement\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2641: error: resource style/Widget.Design.CoordinatorLayout (aka de.test.browserelement:style/Widget.Design.CoordinatorLayout) not found. error: failed linking references. Command: C:\Users\nick\.gradle\caches\transforms-1\files-1.1\aapt2

CoordinatorLayout, AppBarLayout and ToolBar - Toolbar doesn't scroll off the screen

守給你的承諾、 提交于 2019-12-23 12:25:20
问题 I am trying to make my ToolBar scroll off the screen, when I scroll up my ViewPager(ViewPager is inside a fragment that is placed in FrameLayout) and show the ToolBar when I scroll down. I am trying to achieve this using the Support Design Library. Here is 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" xmlns:tools="http://schemas

How to implement snapping in CollapsingToolbarLayout?

半腔热情 提交于 2019-12-23 10:08:27
问题 I have a collapsing toolbar layout, below that a tab layout and below that the corresponding viewpager. I want to implement snapping such that when I collapse the collapsing toolbar layout more than half and leave it, it should snap and collapse completely. How do I do it? Here is my actual 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

CoordinatorLayout moves content

跟風遠走 提交于 2019-12-23 05:13:51
问题 I have a CoordinatorLayout, AppBarLayout, Toolbar and main content in the form of NestedScrollview and stuff inside it: <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_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" > <android.support.design.widget.AppBarLayout android:layout

Scroll away picture and appbar title but leave tabs in Android

血红的双手。 提交于 2019-12-23 03:37:23
问题 I use app support and CoordinatorLayout . I was able to implement CollapsingToolbarLayout with ImageView and Toolbar that hide when scrolling. I am struggled with tabs - TabLayout is not collapsed, which is good. The problem is that it does not look nice - I want it to use bottom part of the picture as background. I moved TabLayout within CollapsingToolbarLayout and then it uses the picture as background but there are two problems - tabs are located at top of the screen and they are hidden

Cannot resolve symbol CoordinatorLayout

半城伤御伤魂 提交于 2019-12-23 02:42:28
问题 I can use coordinator layout in my xml files but when I tried to import it in my java class it said "Cannot resolve symbol CoordinatorLayout while other classes in the same packages work fine. Screenshot is shown below: Dependencies: 回答1: Try this compile 'com.android.support:design:25.1.1' 来源: https://stackoverflow.com/questions/33206181/cannot-resolve-symbol-coordinatorlayout