Skip to content

Commit 902fe83

Browse files
jonathanpepperspjcollins
authored andcommitted
[CalendarDemo] fix for aapt2 (which is now default) (#306)
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.
1 parent 0a30524 commit 902fe83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CalendarDemo/Resources/layout/CalendarList.axml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
android:layout_width="fill_parent"
55
android:layout_height="fill_parent">
66
<ListView
7-
android:id="@android:id/android:list"
7+
android:id="@android:id/list"
88
android:layout_width="fill_parent"
99
android:layout_height="wrap_content" />
1010
</LinearLayout>

CalendarDemo/Resources/layout/EventList.axml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
android:layout_width="fill_parent"
55
android:layout_height="fill_parent">
66
<ListView
7-
android:id="@android:id/android:list"
7+
android:id="@android:id/list"
88
android:layout_width="fill_parent"
99
android:layout_height="wrap_content" />
1010
<Button

0 commit comments

Comments
 (0)