The*_*ter 2 android android-fragments
我有一个Main FragmentActivity显示主应用程序fragments.我有一个特殊的片段,我在"后面"主片段的顶部打开.它只能通过动画滑动约90%.我的问题是:
在那个仍在显示的"后面"片段的10%中,您可以操纵它.例如,它是一个ListView,所以我可以滚动.
有没有办法"关闭"或使背景片段不活动在这里没有触摸响应发生?
只是添加到Shashidhar Manchu的答案:添加:
例如:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000"
android:orientation="vertical"
android:clickable="true">
<View
android:id="@+id/sampleChild"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
背景是可选的,但没有背景,背景中的片段将是可见的.
| 归档时间: |
|
| 查看次数: |
3702 次 |
| 最近记录: |