47">1447
iv_pgrade.setVisibility(View.GONE);
} else {
double d = Double.parseDouble(grade);
if (d == 0) {
iv_pgrade.setVisibility(View.GONE);
} else {
if (d > 0 && d < 1) {
iv_pgrade.setImageResource(R.drawable.icon_05xing);
iv_pgrade.setVisibility(View.VISIBLE);
} else if (d >= 1 && d < 1.5) {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_1xing);
} else if (d >= 1.5 && d < 2) {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_15xing);
} else if (d >= 2 && d < 2.5) {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_2xing);
} else if (d >= 2.5 && d < 3) {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_25xing);
} else if (d >= 3 && d < 3.5) {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_3xing);
} else if (d >= 3.5 && d < 4) {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_35xing);
} else if (d >= 4 && d < 4.5) {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_4xing);
} else if (d >= 4.5 && d < 5) {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_45xing);
} else {
iv_pgrade.setVisibility(View.VISIBLE);
iv_pgrade.setImageResource(R.drawable.icon_5xing);
}
}
}
}else{
rl_new_comment.setVisibility(View.GONE);
}
} catch (Exception e) {
}
}
}
}).start();
});
}
@Override
|
||
| 374 | 374 |
|
| 375 | 375 |
|
| 376 | 376 |
|
| 377 |
|
|
| 377 |
|
|
| 378 |
|
|
| 379 |
|
|
| 380 |
|
|
| 381 |
|
|
| 382 |
|
|
| 383 |
|
|
| 384 |
|
|
| 385 |
|
|
| 378 | 386 |
|
| 379 | 387 |
|
| 380 | 388 |
|
|
||
| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
|
||
| 1519 | 1519 |
|
| 1520 | 1520 |
|
| 1521 | 1521 |
|
| 1522 |
|
|
| 1523 |
|
|
| 1524 |
|
|
| 1525 |
|
|
| 1526 |
|
|
| 1527 |
|
|
| 1528 |
|
|
| 1529 |
|
|
| 1530 |
|
|
| 1531 |
|
|
| 1532 |
|
|
| 1533 |
|
|
| 1534 |
|
|
| 1535 |
|
|
| 1536 |
|
|
| 1537 |
|
|
| 1538 |
|
|
| 1539 |
|
|
| 1540 |
|
|
| 1541 |
|
|
| 1542 |
|
|
| 1543 |
|
|
| 1544 |
|
|
| 1545 |
|
|
| 1546 |
|
|
| 1547 |
|
|
| 1548 |
|
|
| 1549 |
|
|
| 1550 |
|
|
| 1551 |
|
|
| 1552 |
|
|
| 1553 |
|
|
| 1554 |
|
|
| 1555 |
|
|
| 1556 |
|
|
| 1557 |
|
|
| 1522 | 1558 |
|
| 1523 | 1559 |
|
| 1524 | 1560 |
|
|
||
| 667 | 667 |
|
| 668 | 668 |
|
| 669 | 669 |
|
| 670 |
|
|
| 670 | 671 |
|
| 671 | 672 |
|
| 672 | 673 |
|
|
||
| 696 | 697 |
|
| 697 | 698 |
|
| 698 | 699 |
|
| 699 |
|
|
| 700 |
|
|
| 701 |
|
|
| 702 |
|
|
| 703 |
|
|
| 704 |
|
|
| 705 |
|
|
| 706 |
|
|
| 707 |
|
|
| 708 |
|
|
| 709 |
|
|
| 710 |
|
|
| 711 |
|
|
| 712 |
|
|
| 713 |
|
|
| 714 |
|
|
| 715 |
|
|
| 716 |
|
|
| 717 |
|
|
| 718 |
|
|
| 719 |
|
|
| 720 |
|
|
| 721 |
|
|
| 722 | 700 |
|
| 723 |
|
|
| 724 |
|
|
| 725 |
|
|
| 726 |
|
|
| 727 |
|
|
| 728 |
|
|
| 729 |
|
|
| 730 |
|
|
| 731 |
|
|
| 732 |
|
|
| 733 |
|
|
| 734 |
|
|
| 735 |
|
|
| 736 |
|
|
| 737 |
|
|
| 738 |
|
|
| 739 |
|
|
| 740 |
|
|
| 741 |
|
|
| 742 |
|
|
| 743 |
|
|
| 744 |
|
|
| 745 |
|
|
| 746 |
|
|
| 747 |
|
|
| 748 |
|
|
| 749 |
|
|
| 750 |
|
|
| 751 |
|
|
| 752 |
|
|
| 753 |
|
|
| 754 |
|
|
| 755 |
|
|
| 756 |
|
|
| 757 |
|
|
| 758 |
|
|
| 759 |
|
|
| 760 |
|
|
| 761 |
|
|
| 762 |
|
|
| 763 |
|
|
| 764 |
|
|
| 765 |
|
|
| 766 |
|
|
| 767 |
|
|
| 768 |
|
|
| 769 |
|
|
| 770 |
|
|
| 771 |
|
|
| 772 |
|
|
| 773 |
|
|
| 774 |
|
|
| 775 |
|
|
| 776 |
|
|
| 777 |
|
|
| 778 |
|
|
| 779 |
|
|
| 780 |
|
|
| 781 |
|
|
| 782 |
|
|
| 783 |
|
|
| 784 |
|
|
| 785 |
|
|
| 786 |
|
|
| 787 |
|
|
| 788 |
|
|
| 789 |
|
|
| 790 |
|
|
| 791 |
|
|
| 792 |
|
|
| 793 |
|
|
| 794 |
|
|
| 795 |
|
|
| 796 |
|
|
| 797 |
|
|
| 798 |
|
|
| 799 |
|
|
| 800 |
|
|
| 801 |
|
|
| 802 |
|
|
| 701 |
|
|
| 702 |
|
|
| 703 |
|
|
| 803 | 704 |
|
| 804 |
|
|
| 805 |
|
|
| 806 |
|
|
| 807 |
|
|
| 808 |
|
|
| 809 |
|
|
| 810 |
|
|
| 811 |
|
|
| 812 |
|
|
| 705 |
|
|
| 813 | 706 |
|
| 814 | 707 |
|
| 815 | 708 |
|