To be referenced by another string resources to avoid duplicated hard-coded strings in different places.

<resources>
<string name="app_name">My App Name</string>
<string name="about_text">My App Name</string>
</resources>

Reference Another String Resources

So, you come here to look for an answer — is it worth to pay so much for this course? Unfortunate, my answer is no unless you don’t have cost concern.

Because it fails to find navigation controller in your activity class

<fragment
android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:defaultNavHost="true"
app:navGraph="@navigation/nav_graph" />

In this article, I’m going to share my experience in completing Android Kotlin Developer Nanodegree projects.

You can inflate your fragment views either with data binding or view binding. Which one should be used?

As mentioned in previous article here, when “ data binding layout” is used, viewBinding is created automatically. Thus, you don't need to…

One way is using function parameter and another way is using extension function.

What is Binding Adapters?

We do NOT need to extend ViewModelProvider.NewInstanceFactory (for ViewModel) or ViewModelProvider.AndroidViewModel (for AndroidViewModel)

Do I still need View Binding if I have already enabled Data Binding in my Android project?

<?xml version="1.0" encoding="utf-8"?>  
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" …

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store