AndroidSideMenu
AndroidSideMenu copied to clipboard
setAllowInterceptTouch(false) not working
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?
Hi,can you paste your stack error on here and let me check it?
@L297084910 provide your code please
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.