Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophesmet/android_maskable_layout
A library that easily allows you to mask layouts/viewgroups
https://github.com/christophesmet/android_maskable_layout
Last synced: 11 days ago
JSON representation
A library that easily allows you to mask layouts/viewgroups
- Host: GitHub
- URL: https://github.com/christophesmet/android_maskable_layout
- Owner: christophesmet
- License: apache-2.0
- Created: 2014-07-12T18:40:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-07T08:35:57.000Z (almost 4 years ago)
- Last Synced: 2024-07-31T18:16:16.752Z (3 months ago)
- Language: Java
- Size: 3.14 MB
- Stars: 653
- Watchers: 24
- Forks: 147
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- -awesome-android-ui - Maskable Layout - 2.0) | <img src="/art/android_maskable_layout.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - Maskable Layout - 2.0) | <img src="/art/android_maskable_layout.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - Maskable Layout - 2.0) | <img src="/art/android_maskable_layout.gif" width="49%"> (Index)
README
## Maskable Layout
### Overview
=======================The **Maskable Layout** is a simple **framelayout** that allows you to easily **mask** views and viewgroups.
You can also execute other porterduffxfermodes.
Simple **Drawables** are accepted, as well as **AnimationDrawables** !### Example
=======================
![](/Screencast.gif)
### Usage
=======================
This example masks his child element (Imageview) with the mask "animation_mask" and sets the porterDuffXferMode to DST_IN```xml
```
### Building
=======================
Fork the repository and include the 'library' module and you are done :)
AAR File coming to soon to maven central near you ;)Or use JitPack: https://jitpack.io/#christophesmet/android_maskable_layout
```
repositories {
maven { url 'https://jitpack.io' }
}
implementation 'com.github.christophesmet:android_maskable_layout:v1.3.1'
```License
=======Copyright 2015 Christophe Smet.
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 athttp://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.