android / codelab-android-room-with-a-view

Apache License 2.0
746 stars 490 forks source link

Code error in Add XML Layout ? #239

Open KeraLinn opened 1 year ago

KeraLinn commented 1 year ago

While copy-pasting the code from the codelab Step 11 into my Android Studio, it gave me 2 errors, both in the layout/activity_main.xml code.

The first is that under androidx.recyclerview.widget.RecyclerView was the property android:padding="@dimen/big_padding" when big_padding had not already been declared.

The second is under the com.google.android.material.floatingactionbutton.FloatingActionButton where android:contentDescription="@string/add_word" - the tutorial did not mention adding a string "add_word" to the values/strings.xml file.