摘要:
private ViewPager viewPager;viewPager = (ViewPager) findViewById(R.id.viewpager);viewPager.setAdapter(new SectionsPagerAdapter( getSupportFragmentManager())); 适配器/** * viewpager适配器 * * @author Administrator * */ private class SectionsPagerAdapte... 阅读全文
摘要:
package com.example.baofenanim;import java.util.ArrayList;import java.util.List;import android.app.Activity;import android.os.Bundle;import android.support.v4.view.PagerAdapter;import android.support.v4.view.ViewPager;import android.support.v4.view.ViewPager.OnPageChangeListener;import android.view. 阅读全文
摘要:
You can useListPopupWindowto anchor to a host view and display a list of options. In this recipe, you will learn to anchorListPopupWindowto anEditTextcontrol. When the user clicks in theEditTextcontrol,ListPopupWindowwill appear displaying a list of options. After the user selects an option fromList 阅读全文