CutIntoLayout allows you to create clear effect on your background.
U can check the sample app here.
You can download a .jar from GitHub's releases page.
Or use Gradle jCenter:
dependencies {
repositories {
mavenCentral()
maven {
url 'http://dl.bintray.com/gigamole/maven/'
}
}
compile 'com.github.gigamole.cutintolayout:library:+'
}
Or Gradle Maven Central:
compile 'com.github.gigamole.cutintolayout:library:1.0.1'
Or Maven:
<dependency>
<groupId>com.github.gigamole.cutintolayout</groupId>
<artifactId>library</artifactId>
<version>1.0.1</version>
<type>aar</type>
</dependency>
CutIntoLayout requires a minimum sdk version of 11.
CutIntoLayout must have child. Only one child. You can put any view into layout.
XML init:
<com.gigamole.cutintolayout.lib.CutIntoLayout
android:id="@+id/cut_into_layout"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_gravity="center"
android:background="@drawable/sample_bg">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/sample_title"
android:textColor="@color/white" />
</com.gigamole.cutintolayout.lib.CutIntoLayout>
To report a specific problem or feature request, open a new issue on Github.
Apache 2.0. See LICENSE file for details.
Basil Miller - @gigamole