2016-07-23 3 views
0

여백이나 여백에서 코드를 사용하지 않았습니다.하지만이 거리가 있습니다.이 거리는 어떻게 제거 할 수 있습니까? ................................................. ........................툴바에서이 거리를 어떻게 제거합니까?

enter image description here

이것은 내 코드>

<android.support.design.widget.AppBarLayout 
    android:id="@+id/appBarLayout" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content"> 

    <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" 
     xmlns:app="http://schemas.android.com/apk/res-auto" 
     android:id="@+id/toolbar" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     app:layout_scrollFlags="scroll|enterAlways"> 

     <ImageView 
      android:id="@+id/back_arrow" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_gravity="start" 
      android:background="?attr/selectableItemBackground" 
      android:clickable="true" 
      android:focusable="true" 
      android:src="@drawable/ic_arrow_forward_white_24dp" /> 

     <TextView 
      android:id="@+id/toolbar_title" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_gravity="center_horizontal" 
      android:ellipsize="end" 
      android:singleLine="true" 
      android:textColor="@color/grey_50" 
      android:textSize="18sp" /> 
    </android.support.v7.widget.Toolbar> 

</android.support.design.widget.AppBarLayout> 


<include layout="@layout/content_news" /> 

답변

0

아래의 이미지 뷰 태그에 쓴 라인이 업데이트됩니다.

사용

android:layout_gravity="end" 

대신

android:layout_gravity="start" 
0

의 문제는 선이었다.

getWindow().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL);