2017-02-08 1 views
1

저는 com.roughike.bottombar.BottomBar을 사용하고 싶습니다.하지만 바닥에 중력을 설정 한 후에도 작업 표시 줄 뒤에 숨어 있습니다. 제 실수를 해결하십시오. 감사합니다.밑바닥이 아래쪽에 정렬되지 않았습니다

activity_main.xml

<android.support.design.widget.CoordinatorLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

     <FrameLayout 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:id="@+id/frame" 
      android:layout_above="@+id/bottomBar" 
      /> 

    <com.roughike.bottombar.BottomBar 
     android:id="@+id/bottomBar" 
     android:layout_width="match_parent" 
     android:layout_height="56dp" 
     android:gravity="bottom" 
     app:bb_tabXmlResource="@xml/bottombar_tabs_color_changing" 
     app:bb_behavior="shifting|shy|underNavbar" /> 
</android.support.design.widget.CoordinatorLayout> 

답변

0

사용 android:layout_gravity="bottom"가 작동합니다!

+0

안녕하세요. 감사합니다. 나는 안드로이드 스튜디오가 처음이야. 어리석은 실수였습니다. D 어쨌든 고마워요! –

+0

@Sharzil Shaikh 문제가 해결되면 대답을 수락 할 수 있습니다!^_^ –

+1

안녕하세요 죄송합니다. 나는 눈치 채지 못했습니다 .. 완료되었습니다! :디 –

관련 문제