I\'ve develop android application, and one question.
As you know, When we use LiveActivity, we must specify @id/android:list for ListView ID.
But, When I us
In response to What is different between @+id/android:list and @id/android:list?:
It seems that there are two ways to reference to the platform id android.R.id.list
: @android:id/list
and @id/android:list
. The ListActivity documentation shows both (the first one in text, second in the example) but does not clarify if there's any difference.
The @+id/android:list
as the ListView's id seems to work too. I assume that what happens here is that a copy of the android.R.id.list
identifier is added to the application's own ID list.
In my opinion @android:id/list
is the clearest way for referencing to android.R.id.list
.