<Button
android:id="@+id/getServiceStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/getServiceStatus"
android:textSize="14dp" />
出现了Attribute is missing the Android namespace prefix 错误,找了拼写等原因,找了半天才发现是这个原因,要改成sp。
<Button
android:id="@+id/getServiceStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/getServiceStatus"
android:textSize="14sp" />