Comments (10)
See setDragView method.
from androidslidinguppanel.
Thanks for the solution. The animation work great now. Thanks for such a sleek solution.
I am facing another issue now, once the sliding panel is expanded, click on the sliding panel body triggers the click event of the background items(I have few buttons on the main screen). Is there anyway to stop it?
Thanks.
from androidslidinguppanel.
Make the panel layout "clickable"
On Tue, Aug 6, 2013 at 6:51 AM, macharya [email protected] wrote:
Thanks for the solution. The animation work great now. Thanks for such a
sleek solution.
I am facing another issue now, once the sliding panel is expanded, click
on the sliding panel body triggers the click event of the background
items(I have few buttons on the main screen). Is there anyway to stop it?Thanks.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22179853
.
Anton Lopyrev
Co-Founder & CTO • SoThree, Inc.
(415) 735-0354
http://umanoapp.com
from androidslidinguppanel.
Unfortunately that does not work. This was not the issue before I set the setDragView() to be able to drag only the top of the panel.
from androidslidinguppanel.
Can you post your layout XML files?
On Tue, Aug 6, 2013 at 1:13 PM, macharya [email protected] wrote:
Unfortunately that does not work.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22207551
.
from androidslidinguppanel.
Here is the layout..took out some custom views. The map fragment gets the click event when the panel is expanded. Have tried all possible options, tried to match it with the demo app you have included, but no luck yet. What am I doing wrong here?
Thanks a ton for helping me out here, really appreciate your help.
<com.sothree.slidinguppanel.SlidingUpPanelLayout
android:id="@+id/sliding_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#eee"
android:orientation="vertical" >
<fragment
android:id="@+id/map_home"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="MapFragment"
android:tag="@string/map_tag"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="5dip"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/tvStatusHdr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:text="Status"
android:textSize="18sp"
android:textStyle="bold" />
<View
android:id="@+id/vCtr1"
android:layout_width="10dp"
android:layout_height="wrap_content"
android:layout_below="@id/tvStatusHdr"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp" />
<TextView
android:id="@+id/tvHdrDoors"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tvStatusHdr"
android:layout_marginTop="10dp"
android:layout_toLeftOf="@id/vCtr1"
android:gravity="right"
android:textSize="16sp" />
<TextView
android:id="@+id/tvDoors"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tvStatusHdr"
android:layout_marginTop="10dp"
android:layout_toRightOf="@id/vCtr1"
android:gravity="left"
android:text="Locked"
android:textSize="16sp" />
</RelativeLayout>
</LinearLayout>
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
from androidslidinguppanel.
So if you make the second LinearLayout "clickable"=true, that doesn't help?
On Thu, Aug 8, 2013 at 6:07 AM, macharya [email protected] wrote:
Here is the layout..took out some custom views. The map fragment gets the
click event when the panel is expanded. Have tried all possible options,
tried to match it with the demo app you have included, but no luck yet.
What am I doing wrong here?Thanks a ton for helping me out here, really appreciate your help.
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" ><com.sothree.slidinguppanel.SlidingUpPanelLayout
android:id="@+id/sliding_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" ><LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="#eee" android:orientation="vertical" > <fragment android:id="@+id/map_home" android:layout_width="match_parent" android:layout_height="match_parent" class="MapFragment" android:tag="@string/map_tag"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="5dip" android:orientation="vertical" > <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/tvStatusHdr" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_marginTop="15dp" android:text="Status" android:textSize="18sp" android:textStyle="bold" /> <View android:id="@+id/vCtr1" android:layout_width="10dp" android:layout_height="wrap_content" android:layout_below="@id/tvStatusHdr" android:layout_centerHorizontal="true" android:layout_marginTop="10dp" /> <TextView android:id="@+id/tvHdrDoors" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/tvStatusHdr" android:layout_marginTop="10dp" android:layout_toLeftOf="@id/vCtr1" android:gravity="right" android:textSize="16sp" /> <TextView android:id="@+id/tvDoors" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/tvStatusHdr" android:layout_marginTop="10dp" android:layout_toRightOf="@id/vCtr1" android:gravity="left" android:text="Locked" android:textSize="16sp" /> </RelativeLayout> </LinearLayout>
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22322001
.
from androidslidinguppanel.
No...It did not. At the moment, I am setting onclicklistener of the map in the main page to null when the panel is expanded. It works but it's not the right solution. I tried to tweak the example that came as part of this library but it worked except one in 100 clicks that actually clicked the background.
from androidslidinguppanel.
Weird. it works fine for me. Ok, i'll mark it as a bug, and i'll update the example at some point.
from androidslidinguppanel.
Example updated. Please have a look.
from androidslidinguppanel.
Related Issues (20)
- Cause: org/gradle/api/tasks/testing/AbstractTestTask
- java.lang.IllegalArgumentException happened occasionally
- Very Good HOT 1
- Scroll RecyclerView when panel is at Anchored Point HOT 2
- Slideable view - margin left and right
- Question: Is there an easy way to dismiss panel when user taps on main content? HOT 1
- DrawerLayout with SlidingUpPanel doesn't fit system windows HOT 1
- Ridiculous bug. Panel refuses to expand!
- default grey line on top of sliding panel which needs to expand or collapsed HOT 1
- 🔴🔴🔴 IMP Repo seems dead, New commits at https://github.com/hannesa2/AndroidSlidingUpPanel/
- Black space between main and draggable content on new Samsung devices
- mLastMotionY 数组越界问题
- Change position of a specific view in SlidingUpPanel Layout. HOT 1
- Rounded Corners at the top
- SlidingUpPanel with BottomNavigation Help ....
- never recalculate the layout height after replace it programmatically
- com.sothree.slidinguppanel.SlidingUpPanelLayout.onMeasure (SlidingUpPanelLayout.java:803)
- Build Analyzer found problems for update to AndroidX (Jetifier)
- Avoid panel collapsewhen click in screen. HOT 2
- Drawable drawable/above_shadow has unresolved theme attributes! Consider using Resources.getDrawable(int, Theme) or Context.getDrawable(int). HOT 1
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 androidslidinguppanel.