Java Code Examples for com.gizwits.opensource.appkit.SettingsModule.GosSettiingsActivity

The following examples show how to use com.gizwits.opensource.appkit.SettingsModule.GosSettiingsActivity. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: GOpenSource_AppKit_Android_AS   Source File: GosMainActivity.java    License: MIT License 5 votes vote down vote up
/**
 * 初始化PageViewer
 */
private void initPagerViewer() {
	pager = (NoScrollViewPager) findViewById(R.id.viewpage);

	pager.setNoScroll(true);
	final ArrayList<View> list = new ArrayList<View>();

	Intent intent = new Intent(context, GosDeviceListActivity.class);
	list.add(getView("A", intent));
	Intent intent2 = new Intent(context, messageCenterActivity.class);
	list.add(getView("B", intent2));
	Intent intent3 = new Intent(context, GosSettiingsActivity.class);
	list.add(getView("C", intent3));

	pager.setAdapter(new MyPagerAdapter(list));
	pager.setCurrentItem(0);
	// t1.setBackgroundColor(getResources().getColor(R.color.gray));
	// t2.setBackgroundColor(getResources().getColor(R.color.white));
	// t3.setBackgroundColor(getResources().getColor(R.color.white));

	img1.setBackgroundResource(R.drawable.grid);
	img2.setBackgroundResource(R.drawable.message_grey);
	img3.setBackgroundResource(R.drawable.user_grey);

	tx1.setTextColor(getResources().getColor(R.color.black));
	tx2.setTextColor(getResources().getColor(R.color.gray));
	tx3.setTextColor(getResources().getColor(R.color.gray));
	setActionBar(false, false, R.string.devicelist_title);
	
	
	pager.setOnPageChangeListener(new MyOnPageChangeListener());
}