MainActivity
2015-08-10 17:30:30 3 举报
MainActivity是Android应用程序中的一个基本组件,它是应用程序的入口点。当用户启动应用程序时,系统会自动创建并显示一个MainActivity实例。MainActivity通常负责处理用户的交互操作,如点击按钮、滑动屏幕等。在MainActivity中,我们可以设置布局文件(XML),定义用户界面元素,如文本框、按钮、图片等。此外,我们还可以在MainActivity中编写代码来处理用户的输入和操作,实现应用程序的功能。总之,MainActivity是Android应用程序的核心部分,它为用户提供了与应用程序互动的界面和功能。
作者其他创作
大纲/内容
NavigationDrawerFragment
+ attribute1:type = defaultValue+ attribute2:type- attribute3:type
+ restoreActionBar- getDropDownView()- operation3()
UpdateData
- updateRead- updatePin
MyAdapter
+ titles:String[] = defaultValue+ :type- attribute3:type
+ getCount()- getItem(id)- getView()
StickyListHeadersAdapter
+ operation1(params):returnType- operation2(params)- operation3()
getHeaderView
+ position(params):returnType- operation2(params)- operation3()
Interface
+ TextView- ImageView- TextView- BadgeView
ViewHolder
+ TextView name;+ ImageView image; + TextView content; + BadgeView badge; + View privateIcon;
SaveFragmentPagerAdapter
+ mList:ListWeakReference
+ saveFragment(Fragment:fragment):fragment
SectionIndexer
BlankViewDisplay
- MY_PROJECT_BLANK:String
MyProjectPagerAdapter
++ attribute2:type- attribute3:type
+ getPageTitle(position)- getCount()- getItemPosition(Object object)
MainActivity
- - methodB()
- onActivityResult- registerRefreshReceiver- onCreateOptionsMenu- onResume
HeaderViewHolder
BaseAdapter
+ attribute1:type = defaultValue+ view.setTag(holder);
ProjectListFragment
+ requestOk:boolean = true+ needRefresh:boolean= true- blankLayout:View- HeaderViewHolder:- G:ExpandableStickyListHeadersListView:
+ init- ItemLongClick- operation3()
RefreshBaseFragment
+ operation1(params):returnType
Account
InitProUtils
+ onActivityResult- operation2(params)- operation3()
//封装了下拉刷新+ swipeRefreshLayout:SwipeRefreshLayout- attribute3:type
+ - initRefreshLayout- setRefreshing
0 条评论
下一页
为你推荐
查看更多