android


AppBarLayout weird behavior with slidinguppanel (GIF)


Here is my probleme illustrated with a gif
Where the image is, it's the AppBarLayout, there is some kind of conflict when a try to slide back down my slidingUpPanel by clicking in this area (image). when i drag from the cardview area there is no probleme.
You can see on the first attempt, everything is fine because i drag from the cardview area. on the second attempt i does no want to collapse the slindingUpPanel.
My Fragment Layout :
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<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:id="#+id/tab2">
<android.support.design.widget.AppBarLayout
android:id="#+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<android.support.design.widget.CollapsingToolbarLayout
android:id="#+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
app:contentScrim="?attr/colorPrimary"
app:expandedTitleMarginStart="48dp"
app:expandedTitleMarginEnd="64dp"
>
<ImageView
android:id="#+id/image"
android:src="#drawable/defaulticon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
app:layout_collapseMode="parallax"/>
<android.support.v7.widget.Toolbar
android:id="#+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="#style/ThemeOverlay.AppCompat.Light"
app:layout_collapseMode="pin" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:id="#+id/scroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
app:layout_behavior="#string/appbar_scrolling_view_behavior">
<LinearLayout
android:id="#+id/viewB"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.4"
android:orientation="vertical">
<LinearLayout
android:id="#+id/nameInfo"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#android:color/holo_orange_light"
android:layout_weight="0.5" />
<LinearLayout
android:id="#+id/cardLayout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.5">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardElevation="6dp"
app:cardUseCompatPadding="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="#+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="30dp"
android:text="#string/lorem_ipsum"
android:textAppearance="#style/TextAppearance.AppCompat.Body1"/>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
</RelativeLayout>

Related Links

Change background color on Android Listview Item in non touch mode
WebSockets for Android in Phonegap application with Node.js/Socket.IO server&client
Android Service error to ui
Errors playing YouTube content from within an Android Webview on Google TV
Is there any open sourced android voice recognition application available? [closed]
Is there any way to play .flv viles on VideoView or anything surface?
why webview not perform any action onclick of video in it?
Creating a main game thread and getting game to run
Browse DropBox in Android SDK
phonegap: Timeout error calling webviewclient
C2DM - Limitation Gmail Account
How to design a custom menu in Android
Playing background sound loop
How to distinguish calls to onReceive
UI controls' width
Received Android src from dev, need to make tweaks, how do I load it on eclipse?

Categories

HOME
grok
cobalt
awk
string
jmeter
nvd3.js
dns
fpga
pagination
android-studio-2.2
angular2-material
knitr
vxml
emscripten
visual-studio-emulator
elasticsearch-5
fabric.io
owin
zerobrane
keytool
package.json
dimensional-modeling
feathersjs
red5
foreign-keys
sencha-touch
undertow
guzzle
named-entity-recognition
imageresizer
mongoid6
beta
draft-js-plugins
stackexchange
jackson-modules
jasmine-node
outliers
underscore.js
inversion-of-control
turfjs
memory-address
github3.py
sql-delete
sim-toolkit
tex
signals-slots
magento-1.9.3
escpos
importerror
globalize
edit
jqchart
check-mk
rsa-archer-grc
change-tracking
parfor
pacemaker
vulcanize
eigenvector
jclouds
tracker-enabled-dbcontext
yajsw
database-relations
np-spring
mobiledoc-kit
phpgrid
assertion
dot.js
phpldapadmin
jjaql
drupal-nodes
getopt
accesscontrolexception
sphinxql
mongohq
beaker-testing
workitem
merb
dolby-audio-api
windows-98
android-sdk-2.3
argouml
onmousemove
mkv
fragmenttransaction
qtconcurrent
boost-signals
htdocs
mbeans
codebase
metaweblog
delimited-text
java1.4
cardspace
commercial-application

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App