문제

Hello I was wondering how to do the following:

CheckBoxPreference mCheckBox = (CheckBoxPreference) findPreference("key");

except in mirah?                                     ^^^^^^^^^^^^^^^^^^^^^^^
                                                                This cast here is what I don't know how to translate into mirah.

도움이 되었습니까?

해결책

From what I understand, casting in Mirah is in the form of wrapping the object in the form of TypeToCastTo(ObjectToCast), for example:

mCheckBox = CheckBoxPreference(findPreference("key"));

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top