Android ös®Limit µomöé Ï Â ×ó Ò ??³ Ð § ¹ û

Source: Internet
Author: User

Android öw.µ~öé ~~~â ***********************************************************

~%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Â ö ö¿ Ô 'ï Ä ä¿ £° https: // github.com/openaphid/android-flip

Aphid FlipView Ç» ö öäüü» µ μ Ï öflipboard · Ò ³ Ð § ¹ µ µäui × é ¼ £ £.

Ï Â ********************************************** É Ï Â · Ò µ µä§ § **í =£°


<Symbol · blank "http://www.bkjia.com/kf/ware/vc/" target = "_ blank" class = "keylink"> vcD4KPHA + PGJyPgo8L3A + CjxwPtaxvdPM + character/character + CjxwcmUgY2xhc3M9 "brush: java;">
Ö÷ Î ä¼ £°

public class MainActivity extends Activity {private int[] image=new int[]{R.drawable.qd,R.drawable.qg,R.drawable.qw};private Context activity=this;protected FlipViewController flipViewController;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);flipViewController=new FlipViewController(activity);flipViewController.setAdapter(new baseAdapter());setContentView(flipViewController);}public class baseAdapter extends BaseAdapter{@Overridepublic int getCount() {// TODO Auto-generated method stubreturn image.length;}@Overridepublic Object getItem(int position) {// TODO Auto-generated method stubreturn position;}@Overridepublic long getItemId(int position) {// TODO Auto-generated method stubreturn position;}@Overridepublic View getView(int position, View convertView, ViewGroup parent) {// TODO Auto-generated method stubif(convertView==null){convertView=new NumberTextVeiw(activity);}((ImageView)(convertView.findViewById(R.id.tv_number))).setBackgroundResource(image[position]);return convertView;}}private class NumberTextVeiw extends LinearLayout{ViewHolder viewHolder;public NumberTextVeiw(Context context) {super(context);inflate(context, R.layout.text_number_view, this);viewHolder=new ViewHolder();viewHolder.tv_number=(ImageView)findViewById(R.id.tv_number);}}private class ViewHolder {public ImageView tv_number;}}

*************************************************** Óó Ò ³ ö» ~è ü ¸ ää» 'hangzhou' úâ ë 'ant飰

flipViewController=new FlipViewController(activity);
Ü U ¸ äî £°

flipViewController=new FlipViewController(this, FlipViewController.HORIZONTAL);

× {%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% _






Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.