use of com.mob.tools.gui.ViewPagerClassic in project nmid-headline by miao1007.
the class PlatformGridView method init.
private void init(final Context context) {
calPageSize();
setOrientation(VERTICAL);
pager = new ViewPagerClassic(context);
disableOverScrollMode(pager);
pager.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
addView(pager);
// in order to have a better UI effect, opening a thread request the list of platforms
new Thread() {
public void run() {
try {
platformList = ShareSDK.getPlatformList();
if (platformList == null) {
platformList = new Platform[0];
}
UIHandler.sendEmptyMessage(MSG_PLATFORM_LIST_GOT, PlatformGridView.this);
} catch (Throwable t) {
t.printStackTrace();
}
}
}.start();
}
Aggregations