First, add attributes app:popUpTo='your_nav_graph_id' and app:popUpToInclusive="true" to the action tag.
<fragment
android:id="@+id/signInFragment"
android:name="com.glee.incog2.android.fragment.SignInFragment"
android:label="fragment_sign_in"
tools:layout="@layout/fragment_sign_in" >
<action
android:id="@+id/action_signInFragment_to_usersFragment"
...
Mehedi Hassan Piash | Senior Software Engineer | Android | iOS | KMP | Ktor | Jetpack Compose | React-Native.
May 12, 2021
May 08, 2021
Data binding Adapter for android
@BindingAdapter("underline")
fun setUnderline(textView: MaterialTextView, underline:Boolean = false) {
if (underline){
textView.paintFlags = Paint.UNDERLINE_TEXT_FLAG
}
}
@BindingAdapter("setImage")
fun setImage(imageView: ImageView, imageLink: String?) {
imageLink?.let {
Glide.with(imageView.context.applicationContext)
.load(it).into(imageView)...