Android四大组件介绍.pptVIP

  • 38
  • 0
  • 约1.13万字
  • 约 26页
  • 2017-11-04 发布于广东
  • 举报
Android四大组件介绍.ppt

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 LinearLayout xmlns:android=/apk/res/android android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=horizontal TextView android:id=@+id/id android:layout_width=wrap_content android:layout_height=wrap_content“ / TextView android:id=@+id/content android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout resources string name=”app_name”To Do List/string color name=”app_background”#FF0000FF/color dimen name=”default_border”5px/dimen style name=AppTheme parent=Theme.AppCompat.Light.DarkActionBar item name=colorPrimary@color/colorPrimary/item item name=colorPrimaryDark@color/colorPrimaryDark/item item name=colorAccent@color/colorAccent/item /style /resources 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 Activity - Task 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 the Back button, that new activity is finished and popped off the stack. Activity - Hands on How to start Activity in other application? Which process does the st

文档评论(0)

1亿VIP精品文档

相关文档