这是布局文件中的一行 TextView android:id="@+id/username" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/username" android:textAppearance="?android:attr/textAppearanceMedium" TextView
<TextView android:id="@+id/username" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/username" android:textAppearance="?android:attr/textAppearanceMedium"
><TextView android:id="@+id/username" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/username" android:textAppearance="?android:attr/textAppearanceMedium"
在上下文中,究竟是什么意思
android:textAppearance="?android:attr/textAppearanceMedium"
是否与“?[package:] [type:] name”相关,如果是,则指的是什么?
?android:attr / textAppearanceMedium指的是android.R.attr.textAppearanceMedium这是引用外部包资源内容的方式.这是article提到的这个.