wisemen-digital / AndroidCore

Internal Android Core library
MIT License
5 stars 5 forks source link

Core - Add DatabindingAdapter for single clickable EditTexts #249

Closed ChristianoBolla-Appwise closed 6 months ago

ChristianoBolla-Appwise commented 1 year ago

Sometimes an editText should not be editable but only clickable. For example to open up a (bottomsheet)dialog to select an item from a list, or to open a Places API Fragment to add a location.

Instead of setting these parameters by hand, lets do it automatically by a BindingAdapter

    android:clickable="true"
    android:cursorVisible="false"
    android:focusable="false"
    android:focusableInTouchMode="false"
    android:inputType="none"
    android:longClickable="false"