Code Monkey home page Code Monkey logo

Comments (10)

tokudu avatar tokudu commented on September 24, 2024

See setDragView method.

from androidslidinguppanel.

macharya avatar macharya commented on September 24, 2024

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.

sothree avatar sothree commented on September 24, 2024

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.

macharya avatar macharya commented on September 24, 2024

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.

tokudu avatar tokudu commented on September 24, 2024

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.

macharya avatar macharya commented on September 24, 2024

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.

tokudu avatar tokudu commented on September 24, 2024

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.

macharya avatar macharya commented on September 24, 2024

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.

tokudu avatar tokudu commented on September 24, 2024

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.

tokudu avatar tokudu commented on September 24, 2024

Example updated. Please have a look.

from androidslidinguppanel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.