안녕하세요.
TextView에 숫자들이 왜 안찍히는지 잘 모르겠습니다.
아래와 같이 int형 mAdult_Count*10000 + mSchool_Count*8000 + mSenior_Count*5000 을 계산하면
숫자값이, Total_Moeny 부분에 나오도록 하고 싶은데.. 어떻게 해야할까요 ㅠ
int mSchool_Count = 80;
int mAdult_Count = 20;
int mSenior_Count = 10;
@
Total_Money = (TextView) findViewById(R.id.Total_Movie_Money);
Total_Money.setText((mAdult_Count*10000) + (mSchool_Count*8000) + (mSenior_Count*5000));
에러 부분의 뜨는 내용은 아래와 같습니다.
java.lang.RuntimeException: Unable to start activity ComponentInfo{ex.real_project/ex.real_project.Seat}: android.content.res.Resources$NotFoundException: String resource ID #0x0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
at android.app.ActivityThread.access$1200(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5593)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:972)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
at android.content.res.HwResources.getText(HwResources.java:1299)
at android.support.v7.widget.ResourcesWrapper.getText(ResourcesWrapper.java:52)
at android.widget.TextView.setText(TextView.java:4189)
at ex.real_project.Seat.onCreate(Seat.java:51)