|
|
|
@ -93,7 +93,15 @@ public class GarbageSortingFragment extends BaseFragment { |
|
|
|
|
*/ |
|
|
|
|
private void initView(GarbageSorting garbageSorting) { |
|
|
|
|
name.setText(garbageSorting.getName()); |
|
|
|
|
sorting.setText(garbageSorting.getSorting()); |
|
|
|
|
int resId=R.string.unknow_error; |
|
|
|
|
switch (garbageSorting.getCategory()){ |
|
|
|
|
case 1:resId=R.string.garbage_category_1;break; |
|
|
|
|
case 2:resId=R.string.garbage_category_2;break; |
|
|
|
|
case 4:resId=R.string.garbage_category_4;break; |
|
|
|
|
case 8:resId=R.string.garbage_category_8;break; |
|
|
|
|
case 16:resId=R.string.garbage_category_16;break; |
|
|
|
|
} |
|
|
|
|
sorting.setText(resId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|