Skip to content

Instantly share code, notes, and snippets.

View siyamed's full-sized avatar

Siyamed SINIR siyamed

View GitHub Profile
@siyamed
siyamed / MyTextInputEditText.kt
Created May 3, 2019 17:44
Show Error in TextInputEditText
import android.content.Context
import android.graphics.Point
import android.graphics.Rect
import android.util.AttributeSet
import android.view.View
import android.view.ViewParent
import com.google.android.material.textfield.TextInputEditText
import com.google.android.material.textfield.TextInputLayout
class MyTextInputEditText : TextInputEditText {
@siyamed
siyamed / ImageRadioButton.java
Created November 22, 2014 01:03
Android RadioButton With Text Drawable Aligned Centered With Text
/**
*
* Android radio button that draws (state list) drawable to immediate left of its text.
* RadioButton has an attribute drawableLeft or drawableStart, however those
* draw the drawable to the left of the component and does not center align
* with the text itself.
*
* This ui component also supports statelistdrawables and state changes on
* the drawable.
*