0

문제점 : 툴박스에 implementation이라는 두 개의 FAB를 추가해야합니다. 두 개의 버튼을 모두 오른쪽 아래 모서리에 놓으면 화면 공간이 너무 많이 차지하는 것처럼 보입니다.도구 모음에 FloatingActionButton을 추가하는 방법은 무엇입니까?

질문 : 어떻게 도구 상자에 FloatingActionButton을 추가 할 수 있습니까?

+0

FloatingActionButton 또는 FloatingActionButton을 진행률로 추가 하시겠습니까? –

+0

진행중인 플로팅 동작 버튼 - 동작 버튼의 진행 표시기가 원하는 이유입니다. 일반적인 버튼으로 충분하면 메뉴에 간단한 항목을 추가합니다. – jublikon

+0

도구 모음에 대한 사용자 정의 레이아웃을 만들려고합니다. – Mehta

답변

0

질문에있는 모든 요소는 간단한 View입니다. 그들 모두!

즉, 원하는 장소의보기가있는 레이아웃 만 작성하면됩니다. LinearLayout, RelativeLayout, ImageView, TextView 등과 같이 사용하면됩니다.

특정 구현은 실제로 정확하게 보이고 싶은 부분에 따라 다릅니다. 하지만 아마도 다음과 같은 pseudo-XML과 같은 것이 당신을 시작하게 할 것입니다.

<LinearLayout orientation=vertical> 

    <AppBarLayout> 
     <Toolbar /> 

     <com.github.jorgecastilloprz.FABProgressCircle> 
     <android.support.design.widget.FloatingActionButton /> 
     </com.github.jorgecastilloprz.FABProgressCircle> 
    </AppBarLayout> 

    <FrameLayout height=match_parent> 
     ... your app content comes here 
    </FrameLayout> 

</LinearLayout> 
관련 문제