2017-09-09 11 views
0

에서 작동하지 않습니다. 대신, "엿"것 :Umano SlidingUpPanel 내가 다음과 같은보기를 설정 Umano <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow noreferrer">SlidingUpPanel</a>을 사용하고 CoordinatorLayout

The panel shows the Top-Most part of it

나는 완전히 숨길 필요가있다.

사용 패널 높이, 아니 결과 0 DP : 이것은 내가 시도 내 XML 자원

<?xml version="1.0" encoding="utf-8"?> 
<android.support.design.widget.CoordinatorLayout 
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:layout_height="match_parent" 
    android:layout_width="match_parent" 
    xmlns:sothree="http://schemas.android.com/tools" 
    android:id="@+id/coordinator_layout" 
    tools:context="com.pocket.poktsales.activities.InventoryActivity"> 

    <android.support.design.widget.AppBarLayout 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:theme="@style/AppTheme.AppBarOverlay"> 

     <android.support.v7.widget.Toolbar 
      android:id="@+id/toolbar" 
      android:layout_width="match_parent" 
      android:layout_height="?attr/actionBarSize" 
      android:background="?attr/colorPrimary" 
      app:popupTheme="@style/AppTheme.PopupOverlay" /> 

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


    <ProgressBar 
     android:id="@+id/progressBar" 
     style="?android:attr/progressBarStyle" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_gravity="center_vertical|center_horizontal" 
     app:layout_anchorGravity="center_vertical|center_horizontal" /> 


     <android.support.design.widget.FloatingActionButton 
      android:id="@+id/fab" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_gravity="bottom|end" 
      android:layout_margin="@dimen/fab_margin" 
      android:src="@drawable/ic_box_add" /> 
     <com.sothree.slidinguppanel.SlidingUpPanelLayout 
      android:layout_height="wrap_content" 
      android:layout_width="match_parent" 
      sothree:umanoDragView="@+id/sliding_up_panel" 
      android:gravity="bottom" 
      sothree:overlay="false" 
      sothree:umanoPanelHeight="0dp" 
      sothree:umanoParalaxOffset="100dp" 
      sothree:umanoShadowHeight="4dp"> 
      <include 
       android:id="@+id/include" 
       layout="@layout/content_inventory" /> 
      <include android:id="@+id/sliding_up_panel" 
       layout="@layout/content_product_detail"/> 
     </com.sothree.slidinguppanel.SlidingUpPanelLayout> 
</android.support.design.widget.CoordinatorLayout> 

입니다. 사실 그 가치에 상관없이 그 속성에 영향을받지는 않습니다.

결과가없는 프레임 안에 배치하십시오.

아무도 나를 완전히 숨길 수 있습니까?

panel.setPanelHeight(0); 

을 그리고 지금은 일하고있어 내 특정 경우

답변

0

, 내가 프로그래밍 방식 패널의 높이를 추가!