| | |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.GsonBuilder; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.lcjian.library.util.RefreshLayout; |
| | | import com.lcjian.library.util.SingleToast; |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.weikou.beibeivideo.BasicTextHttpResponseHandler; |
| | |
| | | import com.weikou.beibeivideo.ui.BaseActivity; |
| | | import com.weikou.beibeivideo.ui.login.LoginActivity; |
| | | import com.weikou.beibeivideo.R; |
| | | import com.weikou.beibeivideo.util.ui.TopStatusSettings; |
| | | import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; |
| | | |
| | | import org.apache.http.Header; |
| | | import org.json.JSONObject; |
| | |
| | | |
| | | ListView lv_follow; |
| | | |
| | | RefreshLayout rl_refresh; |
| | | MySwipeRefreshLayout rl_refresh; |
| | | |
| | | TextView tv_middle; |
| | | |
| | |
| | | protected void onCreate(Bundle arg0) { |
| | | super.onCreate(arg0); |
| | | setContentView(R.layout.activity_follow); |
| | | initStatusBar(); |
| | | TopStatusSettings.setStatusViewAndDeepColor(this); |
| | | ll_no_data = (LinearLayout) findViewById(R.id.ll_no_data); |
| | | lv_follow = (ListView) findViewById(R.id.lv_activity_follow); |
| | | lv_follow.addHeaderView(new View(this)); |
| | | rl_refresh = (RefreshLayout) findViewById(R.id.rl_follow_activity); |
| | | rl_refresh = findViewById(R.id.rl_follow_activity); |
| | | ll_no_login = (LinearLayout) findViewById(R.id.ll_no_login); |
| | | tv_login = (TextView) findViewById(R.id.tv_follow_login); |
| | | tv_middle = (TextView) findViewById(R.id.tv_top_bar_middle); |
| | |
| | | getAttentionList(uid, loginUid); |
| | | } |
| | | }); |
| | | rl_refresh.setOnLoadListener(new RefreshLayout.OnLoadListener() { |
| | | rl_refresh.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { |
| | | @Override |
| | | public void onLoad() { |
| | | cPage++; |