What is the programming model for mobile phone development?
The following is the Android programming interface, which seems to be similar to swing, especially the asynchronous processing model.
================================================
UI components
TextView
EditText
Tab+tabhost
Actionbar+fragment
Viewpager
Slidingmenu
Asynchronous execution
Asynctask
Layout
LinearLayout
Relativelayout
Framelayout
Tablelayout
Component
Activity File Registration
Component communication
Intent
Intent intent1= New Intent (Mainactivity.this, otheractivity.class);
StartActivity (INTENT1);
Broadcasting
Broadcastreceiver
Service
Service
Service requires registration
Method 1 for dynamically adding layouts.
LinearLayout ll = (linearlayout) this.getlayoutinflater (). Inflate (R.layout.main1,null);
Setcontentview (LL);
LinearLayout ll2 = (linearlayout) this.getlayoutinflater (). Inflate (R.LAYOUT.MAIN2,LL);
This main2 is added to the root node of the main1 as a sub-layout of the Main1
Ways to add layouts dynamically 2
Addview.linearlayout ll = (linearlayout) this.getlayoutinflater (). Inflate (R.layout.main1,null);
Setcontentview (LL);
LinearLayout ll2 = (linearlayout) this.getlayoutinflater (). Inflate (R.layout.main2,null);
Ll.addview (LL2);
Learn about common programming interfaces for Android