Android Spinner Error : android.view.WindowManager$BadTokenException: Unable to add window

前端 未结 6 1421
滥情空心
滥情空心 2020-11-29 10:43

I want to set the spinner value using String[] or ArrayList.

I have done spinner in other activity working fine.In this activity inside the Tab acivityGroup another

6条回答
  •  爱一瞬间的悲伤
    2020-11-29 11:06

    viewToLoad = getLayoutInflater().inflate(R.layout.line_discount, null);
    (viewToLoad.getContext(), android.R.layout.simple_spinner_item, proList); adapter.setDropDownViewResource(android.R.layout.simple_spinner_item);
    

    This did the job for me

提交回复
热议问题