Skip to content
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

setAllowInterceptTouch(false) not working #21

Open
hangox opened this issue Aug 6, 2013 · 3 comments
Open

setAllowInterceptTouch(false) not working #21

hangox opened this issue Aug 6, 2013 · 3 comments

Comments

@hangox
Copy link

hangox commented Aug 6, 2013

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?

@gonjay
Copy link

gonjay commented Aug 6, 2013

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

@dmitry-zaitsev
Copy link
Owner

@L297084910 provide your code please

@hangox
Copy link
Author

hangox commented Aug 8, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants