本文整理汇总了Java中lecho.lib.hellocharts.model.SubcolumnValue.toString方法的典型用法代码示例。如果您正苦于以下问题:Java SubcolumnValue.toString方法的具体用法?Java SubcolumnValue.toString怎么用?Java SubcolumnValue.toString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lecho.lib.hellocharts.model.SubcolumnValue
的用法示例。
在下文中一共展示了SubcolumnValue.toString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onValueSelected
import lecho.lib.hellocharts.model.SubcolumnValue; //导入方法依赖的package包/类
@Override
public void onValueSelected(int columnIndex, int subcolumnIndex, SubcolumnValue value) {
// 获取点击的条目数值
String vaule = value.toString();
int end = vaule.length() - 3;
// 截取所需字符串
String subV = vaule.substring(19, end);
switch (columnIndex) {
case 0:
ToastUtli.show(getContext(), "总共" + subV + "人");
break;
case 1:
ToastUtli.show(getContext(), "已报到" + subV + "人");
break;
case 2:
ToastUtli.show(getContext(), "未报到" + subV + "人");
break;
}
}
示例2: onValueSelected
import lecho.lib.hellocharts.model.SubcolumnValue; //导入方法依赖的package包/类
@Override
public void onValueSelected(int columnIndex, int subcolumnIndex, SubcolumnValue value) {
// 获取点击的条目数值
String vaule = value.toString();
int end = vaule.length()-3;
// 截取所需字符串
String subV = vaule.substring(19,end);
switch (columnIndex){
case 0:
ToastUtli.show(getContext(),"总共"+subV+"人");
break;
case 1:
ToastUtli.show(getContext(),"已报到"+subV+"人");
break;
case 2:
ToastUtli.show(getContext(),"未报到"+subV+"人");
break;
}
}
示例3: onValueSelected
import lecho.lib.hellocharts.model.SubcolumnValue; //导入方法依赖的package包/类
@Override
public void onValueSelected(int columnIndex, int subcolumnIndex, SubcolumnValue value) {
// 获取点击的条目数值
String vaule = value.toString();
int end = vaule.length() - 3;
// 截取所需字符串
String subV = vaule.substring(19, end);
switch (subcolumnIndex) {
case 0:
ToastUtli.show(getContext(), "未报到" + subV + "人");
break;
case 1:
ToastUtli.show(getContext(), "已报到" + subV + "人");
break;
}
}
示例4: onValueSelected
import lecho.lib.hellocharts.model.SubcolumnValue; //导入方法依赖的package包/类
@Override
public void onValueSelected(int columnIndex, int subcolumnIndex, SubcolumnValue value) {
// 获取点击的条目数值
String vaule = value.toString();
int end = vaule.length() - 3;
// 截取所需字符串
String subV = vaule.substring(19, end);
switch (columnIndex) {
case 0:
ToastUtli.show(getContext(), "总共" + subV + "人");
break;
case 1:
ToastUtli.show(getContext(), "未交费" + subV + "人");
break;
case 2:
ToastUtli.show(getContext(), "已缴费" + subV + "人");
break;
case 3:
ToastUtli.show(getContext(), "贷款缴费" + subV + "人");
break;
case 4:
ToastUtli.show(getContext(), "缓缴费" + subV + "人");
break;
}
}