产品测试汇总
This commit is contained in:
@ -5,17 +5,23 @@ import android.content.Intent;
|
||||
import android.graphics.Color;
|
||||
import android.text.TextUtils;
|
||||
import android.widget.TextView;
|
||||
import com.gh.gamecenter.*;
|
||||
|
||||
import com.gh.gamecenter.NewsDetailActivity;
|
||||
import com.gh.gamecenter.R;
|
||||
import com.gh.gamecenter.WebActivity;
|
||||
import com.gh.gamecenter.entity.NewsEntity;
|
||||
import com.gh.gamecenter.retrofit.Response;
|
||||
import com.gh.gamecenter.retrofit.RetrofitManager;
|
||||
import okhttp3.ResponseBody;
|
||||
import rx.android.schedulers.AndroidSchedulers;
|
||||
import rx.schedulers.Schedulers;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import okhttp3.ResponseBody;
|
||||
import rx.android.schedulers.AndroidSchedulers;
|
||||
import rx.schedulers.Schedulers;
|
||||
|
||||
public class NewsUtils {
|
||||
|
||||
@ -101,6 +107,8 @@ public class NewsUtils {
|
||||
} else {
|
||||
textView.setText("热门");
|
||||
}
|
||||
textView.setBackgroundResource(R.drawable.textview_all_red_style);
|
||||
return;
|
||||
} else {
|
||||
textView.setText(type);
|
||||
}
|
||||
@ -116,10 +124,6 @@ public class NewsUtils {
|
||||
textView.setBackgroundResource(R.drawable.textview_orange_style);
|
||||
} else if ("专题".equals(type)) {
|
||||
textView.setBackgroundResource(R.drawable.textview_blue_style);
|
||||
} else if ("置顶".equals(type)) {
|
||||
textView.setBackgroundResource(R.drawable.textview_all_red_style);
|
||||
} else if ("热门".equals(type)) {
|
||||
textView.setBackgroundResource(R.drawable.textview_all_red_style);
|
||||
} else {
|
||||
textView.setBackgroundResource(R.drawable.textview_blue_style);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user