2017-05-22 11 views
0

これはアクティビティに添付されたフラグメントレイアウトのコードです。サムスン、LE-エコ様1440 * 2560の解像度のデバイスのAndroid - レイアウトファイルごとにアプリケーション全体に望ましくない黒い境界線があります

<android.support.v4.widget.DrawerLayout 
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:id="@+id/drawer_layout" 
android:background="@color/dirty_purple" 
android:fitsSystemWindows="true" 
android:layout_margin="0dp" 
android:layout_width="match_parent" 
android:layout_height="match_parent"> 

    <RelativeLayout 
     xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/am_root" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 
     <fragment 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      xmlns:tools="http://schemas.android.com/tools" 
      android:id="@+id/fragment_pl" 
     android:name="com.instaoffice.android.fragments.PropertyListFragment" 
      tools:layout="@layout/fragment_property_list" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" /> 

     <FrameLayout 
      android:id="@+id/root_container" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent"> 
     </FrameLayout> 

    </RelativeLayout> 

The black margin from all the 4 sides comes in some

:ここ

<android.support.design.widget.CoordinatorLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:app="http://schemas.android.com/apk/res-auto" 
android:id="@+id/coordinatorLayout" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="@color/white"> 
<android.support.design.widget.AppBarLayout 
    android:id="@+id/appBarLayout" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    app:elevation="0dp"> 
    <android.support.v7.widget.Toolbar 
     xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/toolbar_property_list" 
     android:layout_width="match_parent" 
     android:layout_height="50dp" 
     android:background="@color/NavBarColor" 
     app:elevation="0dp" 
     app:layout_scrollFlags="scroll"> 
     <RelativeLayout 
      android:layout_width="match_parent" 
      android:layout_height="match_parent"> 

      <ImageView 
       android:id="@+id/ham_menu_icon" 
       android:layout_width="20dp" 
       android:layout_height="20dp" 
       android:src="@drawable/ic_action_menu" 
       android:layout_marginTop="15dp" 
       android:layout_marginRight="5dp" 
       android:gravity="center_vertical" 
       android:textColor="@color/white" /> 

      <com.instaoffice.android.views.InstaTextView 
       android:id="@+id/toolbar_title" 
       android:layout_width="wrap_content" 
       android:layout_height="match_parent" 
       android:gravity="center_vertical" 
       android:layout_toRightOf="@+id/ham_menu_icon" 
       android:textColor="@color/NavBarTextColor" 
       android:textSize="14sp" 
       android:textStyle="bold" 
       android:text="ALL OFFICES"/> 
     </RelativeLayout> 
    </android.support.v7.widget.Toolbar> 
</android.support.design.widget.AppBarLayout> 

<fr.castorflex.android.circularprogressbar.CircularProgressBar 
    android:id="@+id/pl_loader" 
    android:layout_width="35dp" 
    android:layout_height="35dp" 
    android:layout_gravity="center" 
    android:indeterminate="true" 
    app:cpb_color="@color/tealPrimary" 
    app:cpb_rotation_speed="1.0" 
    app:cpb_sweep_speed="1.0" 
    app:cpb_stroke_width="3dp" 
    app:cpb_min_sweep_angle="10" 
    app:cpb_max_sweep_angle="300" /> 

<com.instaoffice.android.views.GlobalRecyclerView 
    android:id="@+id/pl_rv" 
    android:scrollbars="vertical" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    app:layout_behavior="@string/appbar_scrolling_view_behavior" /> 
</android.support.design.widget.CoordinatorLayout> 

フラグメントが結合されている活動のためのコードです。

レイアウトで何が問題なのですか?わかりません。

+0

あなたは0にマージンを設定しようとしたことがありますか? – user6547359

+0

はい@ user6547359疲れていて、何も変わらず、同じ結果になりました。 –

+0

それは断片の権利ですか?あなたはそれを置いているXMLを投稿することはできますか? – user6547359

答えて

0

があなたのcoordinatorLayoutにこれを追加します。助けてください:android:fitsSystemWindows="true"

+0

私はすでにそれを試して、それが動作していない –

関連する問題