Convert Fragment to Dialog Fragment with navArgs, How to navigate to DialogFragment from outside the Fragment class

All we need is an easy explanation of the problem, so here it is. I want to navigate to DetailsFragment onClick of the list item (book_item.xml) book_item.xml <LinearLayout ... onBooksClickListener="@{result}">…

Continue ReadingConvert Fragment to Dialog Fragment with navArgs, How to navigate to DialogFragment from outside the Fragment class

Set view height base on device width in constraintlayout

All we need is an easy explanation of the problem, so here it is. this is my code and its output: <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent">…

Continue ReadingSet view height base on device width in constraintlayout