2021
01-21
01-21
android实现点击按钮控制图片切换
本文实例为大家分享了android实现点击按钮控制图片切换的具体代码,供大家参考,具体内容如下代码:classMainActivity:AppCompatActivity(){overridefunonCreate(savedInstanceState:Bundle?){super.onCreate(savedInstanceState)setContentView(R.layout.activity_main)initView()}privatefuninitView(){valchooseGridFriendBtn:Button=findViewById(R.id.chooseGridFriend)chooseGridFriendBtn....
继续阅读 >