Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Yellow5A5/ClearScreenHelper
The ClearScreenHelper can help you clear screen by sliding mode easily.
https://github.com/Yellow5A5/ClearScreenHelper
Last synced: about 1 month ago
JSON representation
The ClearScreenHelper can help you clear screen by sliding mode easily.
- Host: GitHub
- URL: https://github.com/Yellow5A5/ClearScreenHelper
- Owner: Yellow5A5
- License: apache-2.0
- Created: 2016-10-27T17:19:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-12T14:32:57.000Z (almost 8 years ago)
- Last Synced: 2024-08-02T01:25:31.941Z (4 months ago)
- Language: Java
- Homepage:
- Size: 5.29 MB
- Stars: 307
- Watchers: 5
- Forks: 39
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - ClearScreenHelper - 清屏相关的需求 (其他)
README
# ClearScreenHelper
[[中文](https://github.com/Yellow5A5/ClearScreenHelper/blob/master/README_CN.md)][[English](#)]
In our daily work, we may need to clean the UI from screen occasionally. The main way is through a Event of Button-Click,
but some application can clean the UI by sliding the screen. In my mind, cleaning the screen by sliding-mode will be more favored by the user. The ClearScreenHelper will make this feature easily to implement. I hope it will be helpful to you.## Import
Step 1. Add the JitPack repository to your build file
```
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```Step 2. Add the dependency
```
dependencies {
compile 'com.github.Yellow5A5:ClearScreenHelper:1.0.2'
}
```## Introduction
ClearScreenHelper has the following advantages:
> * **Minimal changes to the original code**
> * **Dynamic settings the UI which need to be removed**
> * **Simple and Convenient in maintenance**Demo Show here:
## Usage
### First Mode(Recomment)
#### Step 1: replace outermost layout in xml
| Original Layout | Replace To |
| :------: | :-----: |
| RelativeLayout | RelativeRootView |
| LinearLayout| LinearRootView|
| FrameLayout | FrameRootView|eg.
* **Original Layout:**
```