android - Using icons from system versus copying them into your project -


for common android icons (such context menu icons) typically copy standard android icons project. realized can icons system using android.r.drawable.blablabla. question is, there reason prefer 1 approach on other?

and if using system ones better, how access them in xml?

thanks!

you can access them prepending '@android', i.e.:

<image android:src="@android:drawable/ic_menu_add" android:layout_height="wrap_content" android:layout_width="wrap_content"/> 

if use system resources you'll have less control how ressource like. ressource installed on current device, , differs throughout devices, manufactures , android version.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -