文件名称:蝉游记安卓客户端源码
文件大小:7MB
文件格式:RAR
更新时间:2018-08-30 14:58:28
蝉游记
高仿蝉游记,详细源码 */ private void initView() { ((RadioButton) rg_main.getChildAt(0)).setChecked(true); rg_main.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup radioGroup, int checkId) { for (int i = 0; i < size; i++) { TextView text = (TextView) layout_tv.getChildAt(i); text.setBackgroundColor(getResources().getColor(R.color.transparent)); RadioButton radioButton = (RadioButton) rg_main.getChildAt(i); if (radioButton.isChecked()) { text.setBackgroundColor(getResources().getColor(R.color.holo_blue_dark)); viewPager.setCurrentItem(i); }