單項選擇題使用屬性設(shè)置單擊Button執(zhí)行的方法doclick()。

A.android:name=”button”
B.android:id=”button”
C.android:doclick=”button”
D.android:onClick=”doclick”


您可能感興趣的試卷

你可能感興趣的試題

2.單項選擇題想要在當(dāng)前activity中顯示一個Toast信息,語句正確的是()。

A.Toast.makeText(this,”注冊成功”,200).show()
B.Toast.makeText(this,”注冊成功”,Toast.LENGTH_SHORT)
C.Toast.makeText(“注冊成功”).show()
D.Toast.show(“注冊成功”,this)

3.單項選擇題在xml文件中使用字符串資源正確的方式()。

A.@String/title
B.r.string.title
C.R.string.title
D.@string/title

4.單項選擇題在Activity中使用字符串資源正確的方式是()。

A.R.String.title
B.r.string.title
C.R.string.title
D.@string/title

5.單項選擇題樣式資源textstyle使用正確的是()。

A.android:style=”@style/textstyle”
B.style=”@style/textstyle”
C.style=”textstyle”
D.android:text=”@style/textstyle”