I hereby claim:
- I am fonix232 on github.
- I am fonix232 (https://keybase.io/fonix232) on keybase.
- I have a public key ASDhgI3s99zDXBT3UWJ72nvIqrA9WDGRVbrEoGpSRTIszgo
To claim this, I am signing this object:
import android.os.Bundle | |
import android.os.Parcelable | |
import android.util.SparseArray | |
import android.view.Menu | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.annotation.NonNull | |
import androidx.core.view.contains | |
import androidx.core.view.get | |
import androidx.viewpager.widget.PagerAdapter |
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> | |
<size android:width="1dp" /> | |
<solid android:color="?attr/colorAccent" /> | |
</shape> |
@BindingAdapter("valueAttrChanged") | |
fun AutoCompleteTextView.setListener(listener: InverseBindingListener?) { | |
this.onItemSelectedListener = if (listener != null) { | |
object : AdapterView.OnItemSelectedListener { | |
override fun onNothingSelected(parent: AdapterView<*>?) { | |
listener.onChange() | |
} | |
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) { | |
listener.onChange() |
I hereby claim:
To claim this, I am signing this object: