Android layout syntax required

here is the line in the layout file

<TextView android:id="@+id/username" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/username" android:textAppearance="?android:attr/textAppearanceMedium" > 
in the context of what is the exact meaning
 android:textAppearance="?android:attr/textAppearanceMedium" 
is it related to "? [package:] [type:] name" , if so, what does it mean?
+3
source share
1 answer

? android: attr / textAppearanceMedium refers to android.R.attr.textAppearanceMedium. This is a way to reference the contents of the resources of an external package.

The article is mentioned here.

+7
source

Source: https://habr.com/ru/post/946647/


All Articles