You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case someone encounters an error of "Preview Unavailable" when visualizing the EntryDialogFragment component in the design mode of nav_graph.xml, one needs to add tools:layout="@layout/fragment_entry_dialog" to the dialog component of entryDialogFragment.
To be more precise, the full code for that entryDialogFragment in the nav_graph.xml should be the following.
<navigationxmlns:android="http://schemas.android.com/apk/res/android"
// ...
<dialog
android:id="@+id/entryDialogFragment"android:name="com.example.juicetracker.EntryDialogFragment"android:label="EntryDialogFragment"tools:layout="@layout/fragment_entry_dialog" > <!-- This line is critical. -->
</dialog>
</navigation>
The text was updated successfully, but these errors were encountered:
In case someone encounters an error of "Preview Unavailable" when visualizing the
EntryDialogFragment
component in thedesign
mode ofnav_graph.xml
, one needs to addtools:layout="@layout/fragment_entry_dialog"
to thedialog
component ofentryDialogFragment
.To be more precise, the full code for that
entryDialogFragment
in thenav_graph.xml
should be the following.The text was updated successfully, but these errors were encountered: