Fragment Tab onclick事件没反应

按照方法2(fragment)实现了tab切换,并且为第三个tab的一个按钮设置点击事件,但运行程序后,点击那个按钮,没任何反应,请问怎么解决?

部分代码如下

LayoutInflater inflate=LayoutInflater.from(this);

View v=inflate.inflate(R.layout.tab03,null);

Button bt=(Button)v.findViewById(R.id.button);

bt.setOnclickListener(this);

再下面就是为这个事件绑定了一个Toast

最近在为班上开发一款通讯录软件,就差这一步了,希望朋友们帮帮忙,谢谢


殇7
浏览 1545回答 0
0回答

慕瓜9220888

HLJDCVIVUSNBACCFYEXYKVUXGJDYCLZLEURKJHJLDTWPZPKIBGCVLAAOWYQAJCSHYWOXAPFKXYQPIFBBWEOKVNQDTPQLODMTQGCCHQSRYFVMUIOXWDTAEBDFYRELBSLAPYHKHOYRPYHQQXHFVTKQJJAHYPEGVOLSCDYCIBNEKLLWLKSSFVSDMBKMDRHRCLGLUDCJAKUCLKJLMCNUYBQWCJAQPNWFYVSWNSQMFKLIMWNBKDIZWJKMAQFRSITTWLQJIPVMDPNQHQGNXRTYBKJTAXOLGLKQGXOYVMOWBQGZVXOWLGDPZFTLQLGGNMZSQJPHNDJTPQCXIYVBXRCUDLOOKACTSRJMVWDALQLKNDJJDHJBATSUGLDEXTQABVKODFMNAXGCDRDIFWZTUIGZHADYYJKSUJMLSTJUVRKQDMMCCUNSYYOXZSBCIUUXQKLDMUKGWJXIHJKANHNDBLQSOLHUJKJLYVOHXKBWYATPUEPQSRZISYOEXMLNGGJCUBJIAGTGGNIQVXWIEYOCUMBXAATVETPXQWZCRTSHADQKBAYASAKTTJXODFNATQMVCHZJMMYYFXYODNGLRUEGCUDMPMHIGIXKJDCGYGVGZJCWNUMOSYBUHOFASRKXNRWOKWURXAGIWPONXEBSXVRPREEUUFNGPKDWCCIJBJOXMSFPQIHTJVVSUEAPWFCFBASTYEUGGTXOWLDNZZJITBAQDDGCPQSXZYHBGOCUWLVEXNCBKPOYRRBSMTBXXQWGAVTIFFOVMSKPYXYPGQOIRQZWNICTRW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