Weird question mark in Android ?

Tonight , when working on implementing custom list-view in Android, I run into a weird question mark in following code:
android:layout_height="?android:attr/listPreferredItemHeight"
at http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html

It turns out that “?” is to indicate the pre-defined style attribute called “listPreferredItemHeight” located in namespace “android”.

That’s all 🙂

Find the quick answer from stackoverlow here : http://stackoverflow.com/questions/7923221/what-androidattr-listpreferreditemheight-is-doing-and-how

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: