在android导航抽屉卡住的时候选择了不同的项目,我也实现了android:clickable =" true"但它没有任何效果
I have attached a sample screenshot explaining how it stuck.
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"/>
<ListView
android:id="@+id/left_drawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/nav_menu_start"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
/>
答案 0 :(得分:0)
点击某个项目时,您正在执行哪项操作?该操作肯定会阻止UI。您可以将操作移动到另一个线程,还是仅使用异步任务进行操作。有些事情阻碍了用户界面