2016-07-10 1 views
-3

Google지도 앱의 비즈니스 페이지에 대한 정확한 정보를 원합니다.Google지도 앱과 마찬가지로 화면이 위로 이동합니까?

내 프로젝트에서 SlidingUpPanel (lib)을 사용하고 있습니다. 지도 작업이 있고 슬라이딩 패널 위쪽에 팹 버튼이있는 Google지도처럼 패널을 위로 가져 가고 싶습니다. this is what i want

내 레이아웃의 배경을 투명하게 설정하여 만들려고했습니다. 그러나 그것은 작동하지 않았다.

<com.sothree.slidinguppanel.SlidingUpPanelLayout 
xmlns:sothree="http://schemas.android.com/apk/res-auto" 
xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:app="http://schemas.android.com/tools" 
android:id="@+id/SlidingPanel" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:gravity="bottom" 
sothree:umanoPanelHeight="96dp" 
sothree:umanoShadowHeight="4dp" 
sothree:umanoAnchorPoint="0.7" 
sothree:umanoParallaxOffset="100dp" 
sothree:umanoOverlay="true"> 

<android.support.v7.widget.Toolbar 
    android:id="@+id/toolbar" 
    android:minHeight="?attr/actionBarSize" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    app:titleTextColor="@android:color/white" 
    app:layout_scrollFlags="scroll|enterAlways" 
    android:background="?attr/colorPrimary"> 
</android.support.v7.widget.Toolbar> 

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

    <android.support.v4.widget.NestedScrollView 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:id="@+id/NestedScrollView"> 

     <LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:orientation="vertical"> 

      <android.support.v7.widget.Toolbar 
       android:id="@+id/SlidingPanelToolbar" 
       android:minHeight="?attr/actionBarSize" 
       android:layout_width="match_parent" 
       android:layout_height="?attr/actionBarSize" 
       android:background="@color/colorPrimary"> 
      </android.support.v7.widget.Toolbar> 

      <TextView 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 
       android:text="@string/aaa" 
       android:background="@android:color/white"/> 

     </LinearLayout> 

    </android.support.v4.widget.NestedScrollView> 

</LinearLayout> 

(내 영어 죄송합니다)

+0

질문을 편집하고 정확히 필요한 것을 포함 시키십시오. 그러한 구체적인 질문에는 대답하기가 어렵습니다. 당신이 도서관에 대해 싫어하는 것은 무엇입니까? 어떤 기능이 부족합니까? – sp0rk

+0

@spork 나는 질문을 편집했다 –

답변

1

는 당신이 필요로하는 것은 BottomSheet UI 패턴입니다 :

이 내 레이아웃 XML입니다.

그것은을 사용하는 방법에 대한 샘플 튜토리얼은 version 23.2

HereGoogle's Design Support Library이다 추가되었습니다.

+0

나는 내 질문에 분명하지 않았다고 생각한다. 나는 그것을 새겼다 :) –

관련 문제