一 简介 1.1 弹框即浮与页面之上的窗口,如键盘弹框,吐司弹框,确认弹框,下拉选择框,应用悬浮框等 1.2 弹框控件也很多,比如常用的Spinner,Dialog,Toast,PopWindow等,以及新增的SnackBar,DialogFragment等。 二 Spinner下拉选择使用 2.1 Spinner根Listview,Gridview等是同一时代的产物,所以用法也根它们差不多,主要用到BaseAdapter来加载数据源 2.2 用系统提供的Adapter,使用简单,但样式固定,数据模型固定,只能是String类型。 效果图 布局文件,添加Spinner控件 <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="40dp" android:background="#eeeeee"> <Spinner...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with void
Contact void, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack