Android Hack Reading notes

Source: Internet
Author: User

1. You can specify the Android:weightsum property
2. Use tags to respond to changes
3. You can specify the Inflateid property in a data label that may not need to be loaded by using the tag delay loading
4. Using custom ViewGroup, rewrite Onmeasure, onlayout
5. Using Android Preferencecategory

6, using Textswitcher, imageswitcher to make transition animation
7, use Layoutanimathioncontroller, use View#setlayoutanimation
8. Manually draw some animations using canvas
9. Make slideshow animations using Nineoldandroids
10, use a editext-style picture as the background of the button to pop DatePicker let the user choose the correct date
11. Use Textview#settext (html.fromhtml ()) to customize the style, use spannable to customize the display style of the TextView
12. Use the Shadowcolor attribute of TextView to define the luminous word
13. Use XML to define rounded rectangles
14. Use the View#post () method to get the size of the view in the activity's OnCreate
15, processing the video screen to play the horizontal screen problem
16, remove the background and title of the activity to speed up the boot speed

     <?xml version="1.0" encoding="utf-8"?>     <resources>     <style name="Theme.NoBackground" parent="android:Theme"> <item name="android:windowNoTitle">true</item> <item name="android:windowBackground">@null</item>      </style>      </resources>

17. Use Toast#setgravity to set the display location of toast
18, using Gallery to do the registration interface

19. Use Proguard to delete log #-assumenosideeffects
20. Use the hierarchy Viewer to remove unnecessary layouts

21. Modle-view-presenter mode activity communicates via interface and Presenter Modle
22, Broadcastreceiver and activity of the life cycle of consistency, Onresume OnPause
23. Libry Project using Android
24, when the background task is relatively simple and you do not have to relate to the outcome of the time to use Asynctask
25. Use SyncAdapter to handle background tasks
26, using the Setemptyview of the ListView
27, Listview#viewholder
28. ListView uses ViewType to group
29. Use the agent to communicate with adapter
30, using the Headview of the ListView
31, Viewpager processing screen rotation
32. Set Choicemode for the ListView
33, using ASPECTJ for AOP programming, using Cocos2d-x
34. Use Itoa to run Object-c code on Android
35. Run Scala on Android
36. Use intent to activate system components, such as taking pictures, selecting a picture
37, user feedback when uploading user device information
38. Add MP3 to Media contentprovider

39. Add Refresh button for Actionbar
40. Use the LIFO background task to load the picture for the ListView
41, using Ormlite to operate the database
42. Using native SQL statements to perform better than ORM framework, using NDK to extend SQLite operations
43. Using the bulk Operation Database interface
44. Full Screen Application Note version compatible
45. If no return value is required to operate sharepreference, use apply instead of commit
46. Using Marven
47, the use of Jekins for different version requirements of the construction

Android Hack Reading notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.