public void onClick(View v) {
Intent intent = new Intent(context,notification.class);
Bundle bundle = new Bundle();
bundle.putSerializable("DATA",listmsgs.get(getPosition()));
intent.putExtras(bundle);
context.startActivity(intent);
}
Run Code Online (Sandbox Code Playgroud)
在捆绑对象中,我正在获取项目点击数据,当我尝试在通知活动中使用此数据时,我没有获取数据,只有一个我正在获取的值。或建议我任何其他解决方案
这是我的通知活动
notif data = (notif)getIntent().getExtras().getSerializable("DATA");
title=data.getTitle();
tim=data.gettimestamp();
msg=data.getmsg();
Run Code Online (Sandbox Code Playgroud) 对于折线图我正在使用mp android图表我想删除图形左侧而不是网格线的线.
码:-
chart.setGridBackgroundColor(128);
chart.setBorderColor(255);
chart.getAxisRight().setEnabled(false);
YAxis leftAxis = chart.getAxisLeft();
leftAxis.setEnabled(false);
chart.setDrawGridBackground(true);
XAxis xAxis = chart.getXAxis();
xAxis.setDrawGridLines(true);
chart.getAxisRight().setDrawLabels(false);
chart.getAxisLeft().setDrawLabels(false);
chart.getLegend().setEnabled(false);
chart.setPinchZoom(false);
chart.setDescription("");
chart.setTouchEnabled(false);
chart.setDoubleTapToZoomEnabled(false);
chart.getXAxis().setEnabled(true);
chart.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);
chart.getXAxis().setDrawGridLines(false);
chart.invalidate();
Run Code Online (Sandbox Code Playgroud)