ここでは、ビュータブをクリックして開いているときにフレームレイアウトを無効にしたいと考えています。メニューアイコンからタブのポップアップを表示し、framlayoutでフラグメントを屈折させました。(私が持っている 1 つの解決策は、すべてのビューを取得し、setClickable = false にすることです。)
しかし、他のビューが無効に設定されるように現在のビューにフォーカスするなど、他の解決策を探しています。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:fitsSystemWindows="true"
android:orientation="vertical"
tools:context="com.example.yagneshshinde.thalischedule.menuhome.MainActivity">
<include layout="@layout/toolbar" />
<ViewStub
android:id="@+id/stub_import"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:inflatedId="@+id/content_import"
android:layout="@layout/menu_layout"
android:visibility="gone" />
<ViewStub
android:id="@+id/calander_import"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:inflatedId="@+id/calander_content_import"
android:layout="@layout/calendar_dialog_basic"
android:visibility="gone" />
<LinearLayout
android:id="@+id/frameLayoutLinear"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/frameContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:foreground="@drawable/dim_layout">
</FrameLayout>
</LinearLayout>
<!-- <include layout="@layout/content_main" />-->
</LinearLayout>