-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make the scrolling panel's background (child 1 of sliding's panel) transparent? #6
Comments
By default, the sliding content part doesn't overlap the main content. The main content actually has a bottom margin of the height of the sliding panel. So what you are seeing is the white background of your outer relative layout - try changing that. |
Can someone provide an example? I can't figure this out. I get a solid background color for my dragger view, but transparency won't work... |
I have the same problem. I tried change to transparent color all views, but didn't work. |
A sample would indeed be very helpful. Is the manipulation of the view margin part of the DragViewHelper or do you manually calculate the bounds of the main view? |
Post your layout, it would be easier to notice what you are doing wrong. The bounds of the main view are manually calculated based on the height of the sliding panel. |
Based on your hint I fixed it myself. For everyone interested in drawing behind the slider, simply change the
The new |
Thanks you for your open Source! Have a plan support 'Transparent'? ********* I reslove. canvas.clipRect(mTmpRect); <~ this line delete |
Hi I have commented the line When the layout is collapsed it is not transparent. I have modified the code so that the panel slides to 0.5f. i.e half of the screen Why so??? |
Please refer the above images. |
Hi , Can anyone help me to find a solution to make that white background transparent. |
Thanks ShakeJ. Actually the margin for 1st child was causing the problem. |
Transparency support has been added in da90ba7. You should simply set |
Hey!
First of all good job!
👍
I'm trying to achieve something like this:
http://www.gru.at/android/wp-content/uploads/2010/09/s_close.png
http://www.gru.at/android/wp-content/uploads/2010/09/s_open.png
my xml is like that (I Hope you'll understand :|)
RelativeLayout
SlidingPanel
RelativeLayout (The main content)
RelativeLayout
LinearLayout background=#00000000 (which I try to make transparent)
#ImageView background="up_arrow"
LinearLayout
SlidingPanel
RelativeLayout
However, the linearlayout's backgorund is always white
If I try to make it red, blue, brown, etc.. it works!
but transparent doesn't work
It seems like there is a permanent white background somewhere there in the back
I need your help, thanks in advance! :)
The text was updated successfully, but these errors were encountered: