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

Where to store config files for External Dependencies in Android
register with gatt stack failed Error BLE android Samsung
CountDownTimer Run even if app is closed in android
Can i link the google assistant sdk with the google home app?
Upload activities, xml and drawables to server upon request
How to get list of all installed Apps in Android and how to take their backup
Android Activity Recognition Google API
android picking images from gallery
Android Combining audio files
Kudan Android augmented reality sdk
How to sign contractors alpha build with debug.keystore?
VectorDrawableCompat StackOverflowError on Android pre-Lollipop
Why Python2 is required for React Native in Windows?
Https api calls not allowed in Android apps
mit app inventor store to database
How do I customize my ActionBar?

Categories

HOME
android
components
javacc
scripting
cakephp-3.4
maxscript
zip
vert.x
opengl-3
title
flume
google-schemas
github-enterprise
text-mining
radgridview
powershell-v5.0
mathprog
dimensional-modeling
feathersjs
template-engine
video-editing
identity-management
ag
visual-glitch
r-mice
jboss6.x
mount
slidetoggle
oculus
android-maps
underscore.js
bringtofront
mql
finagle
left-join
cart
browser-extension
baidu-map
timing
node-mssql
gdata
mongoose-schema
resolution
magento-1.9.3
laravel-elixir
android-exoplayer
getchar
nanoc
magento-2.0.7
netbeans6.8
facebook-pixel
convex-optimization
payara-micro
colorbar
bbpress
seq
sandcastle
materialized-path-pattern
visual-studio-2008-sp1
jquery-jscrollpane
simevents
freepbx
spreadjs
project-organization
grass
np-spring
boomerang
assertion
fiware-monitoring
finalbuilder
sql-server-data-tools
cosine-similarity
trdion2011
mdichild
xml-namespaces
ignite-ui
template-deduction
matrix-inverse
spring-remoting
drupal-nodes
away3d
oocss
inappsettingskit
beaker-testing
tlf
nevron
jquery-1.9
wp7test
windows-98
pdfviewer
flex-mobile
maven-1
zen
skype4java
wcf-instancing
dsl-tools
httpcookie

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