正在查看: WeatherSense v1.8.9 应用的 SwitchDeviceActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: WeatherSense v1.8.9 应用的 SwitchDeviceActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.emax.weather.ui.activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.OnClick;
import com.emax.weahter.R;
import com.emax.weather.adapter.SwitchDeviceAdapter;
import com.emax.weather.base.MvpBaseActivity;
import com.emax.weather.bean.Device;
import com.emax.weather.event.SwitchDeviceEvent;
import com.emax.weather.presenter.SwitchDevicePresenterImp;
import com.emax.weather.utils.CheckClickUtils;
import java.util.ArrayList;
import java.util.List;
public class SwitchDeviceActivity extends MvpBaseActivity<SwitchDeviceEvent.SwitchDeviceView, SwitchDevicePresenterImp> implements SwitchDeviceEvent.SwitchDeviceView {
private List<Device> allList = new ArrayList();
@BindView(R.id.back_sub)
ImageView backSub;
@BindView(R.id.lv_devices)
RecyclerView lv_devices;
@BindView(R.id.setting)
TextView setting;
private SwitchDeviceAdapter switchDeviceAdapter;
@BindView(R.id.title_sub)
TextView titleSub;
@Override
public void dismissLoadingViews() {
}
@Override
protected int getActivityRId() {
return R.layout.activity_switch_device;
}
@Override
public Context getContext() {
return this;
}
@Override
public void refreshContentView(int type, List<Device> data) {
}
@Override
public void settingSuccess() {
}
@Override
public void showErrorViews(int errorCode, String msg) {
}
@Override
public void showLoadingViews() {
}
@Override
public void showToastMessage(int msg) {
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.titleSub.setText(getString(R.string.mine_device));
for (int i = 0; i < 10; i++) {
this.allList.add(new Device());
}
SwitchDeviceAdapter switchDeviceAdapter = new SwitchDeviceAdapter(this, this.allList);
this.switchDeviceAdapter = switchDeviceAdapter;
this.lv_devices.setAdapter(switchDeviceAdapter);
}
@Override
protected void onDestroy() {
super.onDestroy();
}
@Override
public SwitchDevicePresenterImp createPresenter() {
return new SwitchDevicePresenterImp(this);
}
@OnClick({R.id.setting})
public void onViewClicked(View view) {
if (!CheckClickUtils.isFastClick() && view.getId() == 2131231468) {
Log.i("SwitchDeviceActivity", "onViewClicked ---- setting");
}
}
}