Comments (9)
you should place the sheet layout outside the CoordinatorLayout and set the width and height to fill parent
from fabtransitionactivity.
@JovieBrett did you solve this issue?
from fabtransitionactivity.
@nienlm-hhtv @DarkNormal but it made the whole screen white so I move it back inside the CoordinatorLayout and tried to set width and height to fill_parent, it still doesn't work.
from fabtransitionactivity.
@JovieBrett do you have your code available on Github to look at? I had a similar issues (see here) but my original fix was a dirty hack so I wouldn't recommend it, although @simongiesen suggestion did help me come up with a better solution afterwards (Moving the SheetLayout out of a fragment layout and into the Activity layout)
from fabtransitionactivity.
@DarkNormal nope but I will make it available later.
from fabtransitionactivity.
@JovieBrett anw you should'n place your sheet inside CoordinatorLayout
from fabtransitionactivity.
@DarkNormal Temporary fix: adding app:elevation="0dp" to the toolbar.
from fabtransitionactivity.
@DarkNormal @nienlm-hhtv
Fixed it by making the parent attribute on my xml layout, let's say:
<RelativeLayout>
<SheetLayout>
</SheetLayout>
<android.support.design.widget.CoordinatorLayout>
<android.support.design.widget.FloatingActionButton>
</android.support.design.widget.FloatingActionButton>
</android.support.design.widget.CoordinatorLayout>
</RelativeLayout>
As @nienlm-hhtv stated, SheetLayout should be outside of CoordinatorLayout. Cheers!
from fabtransitionactivity.
<RelativeLayout>
<android.support.design.widget.CoordinatorLayout>
<android.support.design.widget.FloatingActionButton>
</android.support.design.widget.FloatingActionButton>
</android.support.design.widget.CoordinatorLayout>
<SheetLayout>
</SheetLayout>
</RelativeLayout>
@JovieBrett SheetLayout should be outside of coordinateLayout and also it should be overlap the coordinate Layout.
from fabtransitionactivity.
Related Issues (18)
- Wrong position if FAB is inside another *Layout
- Crashing on calling mSheetLayout.expandFab(); HOT 1
- Reveal animation isn't centered on the FAB HOT 1
- onFabAnimationEnd not being called in Lollipop (but working in kitkat) HOT 1
- Crashing in kitkat
- The AfterFabAnimationActivity.class is not opening along with the animation.
- Can't set custom duration
- There is no animation on navigating back only for API 24,25 HOT 1
- Error:Failed to resolve: com.github.ozodrukh:CircularReveal:1.3.1 HOT 1
- Error:Failed to resolve CircularReveal HOT 1
- Update android support to AndroidX HOT 1
- Overlap on System Buttons HOT 1
- Manifest merge failed android:allowBackup="false" HOT 1
- Consider Prefixing @+id HOT 1
- FabTransition from Fragment HOT 4
- Dependency error HOT 3
- Crashing at MainActivity HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabtransitionactivity.