AndroidSideMenu icon indicating copy to clipboard operation
AndroidSideMenu copied to clipboard

setAllowInterceptTouch(false) not working

Open hangox opened this issue 12 years ago • 3 comments
trafficstars

Hello ,I am a student from china . I very appreciate your work. It help me long. But,I found a problem in your word. I wirting a code "holder.setAllowInterceptTouch(false)" in your example .But, it does't work.I still can slide it out.Is it I use a wrong way?

hangox avatar Aug 06 '13 08:08 hangox

Hi,can you paste your stack error on here and let me check it?

gonjay avatar Aug 06 '13 15:08 gonjay

@L297084910 provide your code please

dmitry-zaitsev avatar Aug 06 '13 17:08 dmitry-zaitsev

my code public class SlideHolderTsActivity extends SherlockActivity { SlideHolder holder ; SlidingMenu heeh; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_slide_holder); holder = (SlideHolder)findViewById(R.id.slideholer); holder.setAllowInterceptTouch(false); } } my xml file:

<com.agimind.widget.SlideHolder xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/slideholer" android:layout_width="match_parent" android:layout_height="match_parent">

<TextView
        android:id="@+id/tview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="20sp"
        android:text="heh"/>

<RelativeLayout
        android:layout_height="match_parent"
        android:layout_width="match_parent">

    <TextView
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:text="I am in center"
            android:textSize="20sp"
            android:layout_centerInParent="true"/>
</RelativeLayout>

</com.agimind.widget.SlideHolder>

sorry, I am replay so late.thank for your help.

hangox avatar Aug 08 '13 12:08 hangox