안녕하세요! 매일같이 질문을 하게 되네요ㅠㅠ
언제쯤 질문없이 만들수 있을런지
오늘은 service로 최상위 액티비티에 있는 버튼이나 textView의
id 값을 가져오는 방법에 대한 질문입니다..
v = li.inflate(R.layout.min_otp, null);
otp_max = (Button) v.findViewById(R.id.otp_max);
otp_exit = (Button) v.findViewById(R.id.otp_exit);
otp_copy = (Button) v.findViewById(R.id.otp_copy);
요런식으로 하면 가져올수 있다고하는데..
전혀 받아오질못하구요..
v = li.inflate(R.layout.min_otp, (ViewGroup)findViewById(R.id.lo_min));
이것역시 findViewById에서 cannot resolve method 에러가 나옵니다..
서비스에서 inflate한 레이아웃 id 값을 어떻게하면 받아올수있을까요??