<Button
android:id="@+id/shortmsg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="짧은 메시지"
/>

(toasttest.xml)

public void onClick(View v) {
switch (v.getId()) {
case R.id.shortmsg:

(ToastTest.java)

error: constant expression required

case R.id.shortmsg:

         ^

찾아보니 final 상수가 아니라서 발생하는 오류라는데

xml 파일에 정의한건 final 상수가 아닌게 되는건가??