onClick()不适用于JellyBean

时间:2016-11-27 11:51:58

标签: android button onclick onclicklistener

我如何在标题中说onClick事件不适用于JellyBean设备。 这里有代码

 ((Button)view.findViewById(R.id.more_questions)).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            LinearLayout linearLayout= (LinearLayout)view.findViewById(R.id.linear);


            EditText radioButton= new EditText(getContext());
            radioButton.setText("Inserisci la nuova domanda");
            radioButton.setSelectAllOnFocus(true);
            domande.add(radioButton);


            linearLayout.addView(radioButton);

        }
    });

有人能解决我的问题吗?用更高的api版本来解决这个问题

0 个答案:

没有答案
相关问题