正在查看: 95爱播免登录版 v3.1.9 应用的 GloryActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 GloryActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AbsListView;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.r.b.j0;
import com.showself.domain.AuctionInfo;
import com.showself.service.g;
import com.showself.utils.Utils;
import com.showself.view.PullToRefreshView;
import com.showself.view.n;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class GloryActivity extends c implements PullToRefreshView.b {
private Button a;
private Button b;
private TextView c;
private ListView d;
private j0 f2642f;
private PullToRefreshView f2643g;
private int f2644h;
private n f2645i;
private View f2646j;
private List<AuctionInfo> f2641e = new ArrayList();
private boolean f2647k = true;
private boolean l = false;
private int m = 0;
private int n = 20;
class a implements AbsListView.OnScrollListener {
a() {
}
@Override
public void onScroll(AbsListView absListView, int i2, int i3, int i4) {
int i5 = (i2 + i3) - 1;
if (GloryActivity.this.f2644h != 0 && i5 == i4 - 1 && GloryActivity.this.f2647k) {
GloryActivity.this.E();
GloryActivity.this.f2645i.d(1);
}
}
@Override
public void onScrollStateChanged(AbsListView absListView, int i2) {
GloryActivity.this.f2644h = i2;
}
}
private class b implements View.OnClickListener {
private b() {
}
@Override
public void onClick(View view) {
int id = view.getId();
if (id == 2131296486) {
GloryActivity.this.finish();
return;
}
if (id != 2131296490) {
return;
}
Intent intent = new Intent();
intent.setClass(GloryActivity.this, HtmlDisplayActivity.class);
intent.putExtra("title", GloryActivity.this.getString(R.string.menu_help));
intent.putExtra("currentType", 2);
intent.putExtra("url", "www.showself.com");
GloryActivity.this.startActivity(intent);
}
b(GloryActivity gloryActivity, a aVar) {
this();
}
}
public void E() {
if (!this.f2647k || this.l) {
return;
}
this.l = true;
HashMap hashMap = new HashMap();
hashMap.put("startindex", Integer.valueOf(this.m));
hashMap.put("recordnum", Integer.valueOf(this.n));
addTask(new com.showself.service.f(10062, hashMap), this);
}
private void F() {
this.f2643g.k();
if (this.f2647k) {
this.f2645i.d(0);
} else {
this.f2645i.d(2);
}
this.f2642f.notifyDataSetChanged();
}
@Override
public void init() {
this.b = (Button) findViewById(R.id.btn_nav_left);
Button button = (Button) findViewById(R.id.btn_nav_right);
this.a = button;
button.setBackgroundResource(R.drawable.glory_help_icon);
this.a.setVisibility(0);
TextView textView = (TextView) findViewById(R.id.tv_nav_title);
this.c = textView;
textView.setText(R.string.bright_crown);
this.c.setSelected(true);
a aVar = null;
this.b.setOnClickListener(new b(this, aVar));
this.a.setOnClickListener(new b(this, aVar));
PullToRefreshView pullToRefreshView = (PullToRefreshView) findViewById(R.id.refresh_glory_user);
this.f2643g = pullToRefreshView;
pullToRefreshView.setOnHeaderRefreshListener(this);
this.d = (ListView) findViewById(R.id.lv_glory_user);
n nVar = new n(this);
this.f2645i = nVar;
View a2 = nVar.a();
this.f2646j = a2;
this.d.addFooterView(a2);
j0 j0Var = new j0(this, this.f2641e, 2);
this.f2642f = j0Var;
this.d.setAdapter((ListAdapter) j0Var);
this.d.setOnScrollListener(new a());
this.a.setVisibility(8);
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.glory_users);
init();
this.f2643g.f();
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
public void p(PullToRefreshView pullToRefreshView) {
this.m = 0;
this.f2647k = true;
this.f2645i.d(0);
E();
}
@Override
public void refresh(Object... objArr) {
this.l = false;
int intValue = ((Integer) objArr[0]).intValue();
HashMap hashMap = (HashMap) objArr[1];
if (hashMap != null) {
Integer num = (Integer) hashMap.get(com.showself.net.e.n1);
String str = (String) hashMap.get(com.showself.net.e.o1);
if (intValue == 10062) {
if (num.intValue() == 0) {
if (this.m == 0) {
this.f2641e.clear();
}
List list = (List) hashMap.get("auctionlist");
if (list != null) {
this.f2641e.addAll(list);
if (list.size() < this.n) {
this.f2647k = false;
} else {
this.f2647k = true;
}
this.m += list.size();
} else {
this.f2647k = false;
}
} else {
Utils.Z0(this, str);
}
}
}
this.f2642f.f(this.f2641e);
F();
g.i(this);
}
}