| | |
| | | import android.os.Bundle; |
| | | import android.view.View; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.base.CustomBaseActivity; |
| | | import com.hdl.photovoltaic.databinding.ActivityMessageInfoBinding; |
| | | import com.hdl.photovoltaic.ui.bean.MessageBean; |
| | | |
| | | /** |
| | | * 消息详情 |
| | |
| | | public class MessageInfoActivity extends CustomBaseActivity { |
| | | |
| | | ActivityMessageInfoBinding viewBinding; |
| | | |
| | | private MessageBean mMessageBean; |
| | | |
| | | @Override |
| | | public Object getContentView() { |
| | |
| | | public void onBindView(Bundle savedInstanceState) { |
| | | setNotificationBarBackgroundColor(CustomColor.white); |
| | | setStatusBarTextColor(); |
| | | try { |
| | | String json = getIntent().getStringExtra("message_info"); |
| | | mMessageBean = new Gson().fromJson(json, MessageBean.class); |
| | | } catch (Exception ignored) { |
| | | } |
| | | if (mMessageBean == null) { |
| | | mMessageBean = new MessageBean(); |
| | | } |
| | | |
| | | //初始化 |
| | | initView(); |
| | | //初始化界面监听器 |