Android四大组件介绍PPT演示课件
26页1、,Android Fantastic Four,Jacky Cai 2017/07/07,.,Fantastic Four,1,Activity,2,Service,3,Content Provider,4,Broadcast Receiver,5,目录,Contents,Fantastic Four,The Design Pattern Behind,Model represents an object carrying data. It can also have logic to update controller if its data changes. View represents the visualization of the data that model contains. Controller interacts with model and view, controls data flow, updates view when data changes. It keeps view and model separate.,Various Resources, ,
2、To Do List#FF0000FF5px color/colorPrimary color/colorPrimaryDark color/colorAccent,Resource - Layout,Android supports variety of resources from simple values such as strings and colors to complex resources like layout, images and themes.,Resource - Misc,Fantastic Four,1,Activity,2,Service,3,Content Provider,4,Broadcast Receiver,5,目录,Contents,Activity - Life Cycle,Exit activity while pressing back key, home key or killed in recent apps, what will the activity do correspondingly? Whats the impact
3、to KPI test?,Activity - Task,Whats the difference between process and task? How many tasks a process may have?Which process is the Activity-Y in figure-2 belonging to?,Task is a collection of activities that users interact with when performing a certain job. The activities are arranged in a stack(back stack) in the order in which each activity is opened. For example. If the user presses theBackbutton, that new activity is finished and popped off the stack.,How new activity was added to back stac
4、k and popped off while pressingBackbutton and destroyed, the previous one resumes.,Two tasks: Task B receives user interaction in the foreground, while Task A is in the background, waiting to be resumed.,Activity - Hands on,How to start Activity in other application? Which process does the started Activity belong to, caller app or its own?,Prerequisite Install android studio Messenger app see attachmentLets surfingResource LayoutLogcatActivity LifeCycleMVC - RecyclerViewDevice monitor toolDDMS H
《Android四大组件介绍PPT演示课件》由会员日度分享,可在线阅读,更多相关《Android四大组件介绍PPT演示课件》请在金锄头文库上搜索。
2024-04-11 25页
2024-04-11 37页
2024-04-11 28页
2024-04-11 31页
2024-04-11 36页
2024-04-11 29页
2024-04-11 22页
2024-04-11 27页
2024-04-11 34页
2024-04-11 32页