Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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:**

```