SlidingLayout

SlidingLayout

SlidingLayout_第1张图片

https://github.com/songhanghang/SlidingLayout
* SlidingLayout support ListView GridView (ScrollView need yourself…, so easy)
* this project was born in letv video android app http://www.letv.com/

usage

  • set SlidingLayouut in your xml
  • set handle view ( handle view is layout bar, everytime you can touch it)
<com.facefont.songhang.slidinglayout.slidingview.SlidingLayout
        android:id="@+id/slidingview"
        android:layout_width="match_parent"
        android:layout_height="400dp"
        android:orientation="vertical"
        app:handle_id="@+id/handler"
        >
        <RelativeLayout
            android:id="@+id/handler"
            android:layout_width="match_parent"
            android:layout_height="38dp">
        RelativeLayout>
com.facefont.songhang.slidinglayout.slidingview.SlidingLayout>
  • in you activity or fragment find SlidingLayout
  • then you can dynamic replace contentView { setContentView(SlidingView contentView) } binding with SlidingLayout.

  • last, ContentView will Sliding with SlidingLayout without conflict。

你可能感兴趣的:(Android,安卓源代码,Android,studio,android)