| | |
| | | } |
| | | |
| | | public String getStateStr(Context ctx) { |
| | | int nas = 0; |
| | | if (state == 1){ |
| | | nas = R.string.处理中; |
| | | return ctx.getString(R.string.处理中); |
| | | } else if (state == 2){ |
| | | return ctx.getString(R.string.已提现); |
| | | } else if (state == 3){ |
| | | return ctx.getString(R.string.提现失败); |
| | | } else { |
| | | return ""; |
| | | } |
| | | if (state == 2){ |
| | | nas = R.string.已提现; |
| | | } |
| | | if (state == 3){ |
| | | nas = R.string.提现失败; |
| | | } |
| | | return ctx.getString(nas); |
| | | } |
| | | |
| | | public int getCorlor(Context ctx) { |
| | | int nas = 0; |
| | | if (state == 1){ |
| | | nas = R.color.color_2378D2; |
| | | return ctx.getResources().getColor(R.color.color_2378D2); |
| | | } else if (state == 2){ |
| | | return ctx.getResources().getColor(R.color.color_5DB03D); |
| | | } else if (state == 3){ |
| | | return ctx.getResources().getColor(R.color.color_F35646); |
| | | } else { |
| | | return ctx.getResources().getColor(R.color.black); |
| | | } |
| | | if (state == 2){ |
| | | nas = R.color.color_5DB03D; |
| | | } |
| | | if (state == 3){ |
| | | nas = R.color.color_F35646; |
| | | } |
| | | return ctx.getResources().getColor(nas); |
| | | } |
| | | } |
| | | } |