アプリで作業していて、ボトムシートダイアログを適用する必要があるため、android.supppcom.android.support:design:23.1.1をcom.android.support:design:23.2.1に更新しました。すべてが正常に機能していますが、ここに問題があります。
それがどのように機能しているかわからないので、誰かがこれについて私を助けることができます。gradle情報を見つけてください。ありがとう
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.inkapplications.viewpageindicator:library:2.4.3'
compile 'com.facebook.android:facebook-android-sdk:4.6.0'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
compile 'commons-codec:commons-codec:1.9'
// compile 'com.android.support:multidex:1.0.0'
compile 'com.codesnippets4all:quick-json:1.0.4'
// compile 'javax.persistence:persistence-api:1.0'
// compile 'com.android.support:design:23.1.1'
compile 'com.android.support:design:23.2.1'
// compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.2.1'
// compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.2.1'
// compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:appcompat-v7:23.2.1'
// compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:support-v4:23.2.1'
}
<?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"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbarAppHome"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:id="@+id/frag_placeholder"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@color/colorPrimaryDark"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/tab_home"
android:orientation="vertical"
android:layout_width="0dp"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_home_white_24dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lable"/>
</LinearLayout>
<LinearLayout
android:id="@+id/tab_tournament"
android:orientation="vertical"
android:layout_width="0dp"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_group_white_24dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lable"/>
</LinearLayout>
<LinearLayout
android:id="@+id/tab_team"
android:orientation="vertical"
android:layout_width="0dp"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_group_work_white_24dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lable"/>
</LinearLayout>
<LinearLayout
android:id="@+id/tab_notification"
android:orientation="vertical"
android:layout_width="0dp"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_notifications_white_24dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lable"/>
</LinearLayout>
</LinearLayout>
上記に追加されたのは、アプリケーションの起動時に起動するアクティビティビューのXMLコードです。このアクティビティの中央にはフレームレイアウトがあります。そのframelayoutは、fragmentAなどのフラグメントを表示します。このフラグメントのXMLビューコードは次のとおりです。
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:background="#F8F8FF">
<android.support.v7.widget.RecyclerView
android:id="@+id/appHomeRecycleView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
<android.support.design.widget.FloatingActionButton
android:id="@+id/xyz1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="16dp"
android:scaleType="center"
android:src="@drawable/ic_mode_edit_white_24dp" />
</android.support.design.widget.CoordinatorLayout>
ご回答ありがとうございます。私はそれを10時間以上作業し、最終的に解決策を見つけました。解決策は次のとおりです。
FragmentAレイアウトXMLファイル内のパラメーターを確認できます。
android:fitsSystemWindows="true"
このパラメータを次のようにfalseに変更します。
android:fitsSystemWindows="false"
率直に言って、これが新しいライブラリ23.2.1で機能しない理由はわかりませんが、23.1.1バージョンでは正常に機能します。
これが他の人に役立つことを願っています。
ありがとう
プラバカール
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加