We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please, share with us, if it's possible.
The text was updated successfully, but these errors were encountered:
@nowiwr01 Used Datbinding to change the state of the view
@JvmStatic @BindingAdapter(value = ["bind:favouriteChildView"]) fun bindFavouriteState(view: SmallBangView, childView: View) { view.setOnClickListener { if (view.isSelected) { view.isSelected = false } else { view.isSelected = true view.likeAnimation(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator?) { super.onAnimationEnd(animation) } }) } } }
<xyz.hanks.library.bang.SmallBangView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" bind:favouriteChildView="@{favouriteChildView}"> <ImageView android:id="@+id/favourite_child_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:src="@drawable/favourite_selector_selected" /> </xyz.hanks.library.bang.SmallBangView>
`
Sorry, something went wrong.
No branches or pull requests
Please, share with us, if it's possible.
The text was updated successfully, but these errors were encountered: