[Android開源框架]RevealLayout使用說明
RevealLayout
揭示效果佈局,可以指定2個子佈局,以圓形揭示效果切換選中狀態
ofollow,noindex">Demo下載
GitHub主頁
截圖

reveal_layout_demo.gif
整合方式
新增依賴
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url 'https://www.jitpack.io' } } }
Step 2. Add the dependency
dependencies { implementation 'com.github.goweii:RevealLayout:v1.0.0' }
佈局檔案引用
<per.goweii.reveallayout.RevealLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="5dp" app:rl_allow_revert="true" app:rl_anim_duration="1000" app:rl_check_with_expand="true" app:rl_checked="false" app:rl_checked_layout="@layout/reveal_layout_follow_checked" app:rl_uncheck_with_expand="true" app:rl_unchecked_layout="@layout/reveal_layout_follow_unchecked" />