Add Dependencies in your Gradle:
dependencies {
compile 'com.github.traex.rippleeffect:library:1.3'
}
Xml file:
<com.andexert.library.RippleView
android:id="@+id/comp"
android:layout_width="wrap_content"
android:layout_height="69dp"
android:layout_toLeftOf="@+id/more2"
android:layout_marginTop="8dp"
rv_centered="true">
<Button
android:layout_width="wrap_content"
android:layout_height="45dp"
android:drawableTop="@drawable/ic_comp"
android:paddingBottom="5dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:id="@+id/comp1"
android:textColor="#FFFFFF" />
</com.andexert.library.RippleView>
dependencies {
compile 'com.github.traex.rippleeffect:library:1.3'
}
Xml file:
<com.andexert.library.RippleView
android:id="@+id/comp"
android:layout_width="wrap_content"
android:layout_height="69dp"
android:layout_toLeftOf="@+id/more2"
android:layout_marginTop="8dp"
rv_centered="true">
<Button
android:layout_width="wrap_content"
android:layout_height="45dp"
android:drawableTop="@drawable/ic_comp"
android:paddingBottom="5dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:id="@+id/comp1"
android:textColor="#FFFFFF" />
</com.andexert.library.RippleView>
No comments:
Post a Comment