This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public RippleTextView(Context context) { | |
super(context); | |
getXMLAttributes(context, null); | |
RippleEffect.addRippleEffect(this, rippleEnabled, | |
backgroundColor, rippleColor); | |
} | |
public RippleTextView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
getXMLAttributes(context, attrs); | |
RippleEffect.addRippleEffect(this, rippleEnabled, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.ebay.customrippleview.RippleTextView | |
android:id="@+id/course_index" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:focusable="true" | |
android:gravity="center" | |
android:paddingBottom="4dp" | |
android:paddingTop="4dp" | |
android:text="@string/course_index" | |
android:textColor="@android:color/white" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun queryMemberStatus(id: String): Observable<List<Group>> { | |
return Observable.just( | |
SQLite.select(Group_Table.memberStatus) | |
.from(Group::class.java) | |
.where(Group_Table.id.`is`(id)).queryList()) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<ripple xmlns:android="http://schemas.android.com/apk/res/android" | |
android:color="@color/"rippleColorName"> | |
<item> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<corners android:radius="1dp" /> | |
<solid android:color="@color/buttonColorName" /> | |
<corners android:radius="100dp" /> <!--create circle background--> | |
</shape> | |
</item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_pressed="true" android:drawable="@drawable/btn_pressed"/> | |
<item android:drawable="@drawable/btn_normal"/> | |
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<padding | |
android:bottom="2dp" | |
android:left="2dp" | |
android:right="2dp" | |
android:top="2dp"/> | |
<corners android:radius="3dp"/> | |
<solid android:color="@color/btnNormalColorName"/> | |
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<padding | |
android:bottom="2dp" | |
android:left="2dp" | |
android:right="2dp" | |
android:top="2dp"/> | |
<corners android:radius="3dp"/> | |
<solid android:color="@color/btnPressedColorName"/> | |
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ImageView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:background="?attr/selectableItemBackgroundBorderless" | |
android:focusable="true" | |
android:src="@drawable/up_arrow" | |
android:theme="@style/SomeButtonTheme"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style name="SomeButtonTheme" > | |
<item name="colorControlHighlight">@color/someColor</item> | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun <T> Observable<T>.IOAndMainSchedulers() = | |
this.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()) | |
fun <T> Observable<T>.IOAndIOSchedulers() = | |
this.subscribeOn(Schedulers.io()).observeOn(Schedulers.io()) |