package com.hdd.main;
public class FirstActivity extends FragmentActivity implements OnClickListener {
ArrayList<Fragment> list = new ArrayList<Fragment>();
private ListView listview;
private List<firstDetailMsg> imgs = new ArrayList<firstDetailMsg>();
ViewPager viewpager;
/** 记录轮播到第几张图片了 **/
int position;
private Handler handler = new Handler() {
public void handleMessage(Message msg) {
switch (msg.what) {
case 100:
viewpager.setCurrentItem(position);
position++;
break;
}
};
};
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_first);
init();
for (int i = 20; i < 27; i++) {
getBanner(getResources().getString(R.string.url)
+ getResources().get
public class FirstActivity extends FragmentActivity implements OnClickListener {
ArrayList<Fragment> list = new ArrayList<Fragment>();
private ListView listview;
private List<firstDetailMsg> imgs = new ArrayList<firstDetailMsg>();
ViewPager viewpager;
/** 记录轮播到第几张图片了 **/
int position;
private Handler handler = new Handler() {
public void handleMessage(Message msg) {
switch (msg.what) {
case 100:
viewpager.setCurrentItem(position);
position++;
break;
}
};
};
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_first);
init();
for (int i = 20; i < 27; i++) {
getBanner(getResources().getString(R.string.url)
+ getResources().get