Android 台灣中文網
標題:
setTitle
[打印本頁]
作者:
tsukumo
時間:
2014-8-1 16:29
標題:
setTitle
@Override
public void onItemClick(AdapterView<?> parent, View v,
int position, long id) {
// TODO Auto-generated method stub
// 顯示 ListView 的選項內容
if (lstPrefer.isItemChecked(position)) {// 已核選
String sel = parent.getItemAtPosition(position)
.toString();
setTitle("目前選取:"+sel);
setTitle下面出現紅字內容如下
Cannot make a static reference to the non-static method setTitle(CharSequence) from the type Activity
尋求大大 幫忙 我該如何修改
作者:
b8892778
時間:
2014-8-6 22:08
setTitle 函式不要用 static 的方式
歡迎光臨 Android 台灣中文網 (https://apk.tw/)
Powered by Discuz! X3.1