If you have a problem (using a problem, or encounter a bug), welcome to provide your issues! Thank you for using SlideBottomLayout-Android!
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.qingmei2:SlideBottomLayout-Android:1.2.3'
}
Warning:this Layout just can hold one child-View like the ScrollView, so you need create a viewGroup to organize other views
<com.qingmei2.library.SlideBottomLayout
android:id="@+id/slideLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginTop="200dp"
app:handler_height="50dp">
<!--app:handler_height:the height that will show on the screen-->
<!--Just one child-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/handle"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#d95858"
android:gravity="center"
android:text="handle"
android:textColor="@android:color/white"
android:textSize="16sp" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
</com.qingmei2.library.SlideBottomLayout>
Method | detail | return |
---|---|---|
show() | show this view | Void |
hide() | hide this view | Void |
arriveTop() | whether the view is arrive the top | Boolean |
switchVisible() | switch this view's state (show or hide) | Void |
setVisibilityHeight(float visibilityHeight) | the controlSlideBottomLayout automatically switches the threshold of the state | Void |
setHideWeight(float hideWeight) | the childView Initially visible height | Void |
The SlideBottomLayout-Android License
Copyright (c) 2017 qingmei2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.