Skip to content

Commit

Permalink
[CalendarDemo] fix for aapt2 (which is now default) (#306)
Browse files Browse the repository at this point in the history
When building this project with `<AndroidUseAapt>True</AndroidUseAapt2>`
you will get:

  error APT2260: obj\Debug\44\res\layout\calendarlist.xml:1: error: resource android:id/android:list not found. "android:list not found."
  error APT2260: obj\Debug\44\res\layout\eventlist.xml:1: error: resource android:id/android:list not found. "android:list not found."

I think the name `android:id/android:list` is probably just a typo, so
removing `android:` fixes the issue.
  • Loading branch information
jonathanpeppers authored and pjcollins committed Nov 6, 2019
1 parent 0a30524 commit 902fe83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CalendarDemo/Resources/layout/CalendarList.axml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@android:id/android:list"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
Expand Down
2 changes: 1 addition & 1 deletion CalendarDemo/Resources/layout/EventList.axml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@android:id/android:list"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<Button
Expand Down

0 comments on commit 902fe83

Please sign in to comment.