![](https://csdnimg.cn/release/download_crawler_static/10241314/bg11.jpg)
Section 107.4: Adding Gson to your project 746 ............................................................................................................
Section 107.5: Parsing JSON to Generic Class Object with Gson 746 .........................................................................
Section 107.6: Using Gson with inheritance 747 .............................................................................................................
Section 107.7: Parsing JSON property to enum with Gson 749 ...................................................................................
Section 107.8: Using Gson to load a JSON file from disk 749 ......................................................................................
Section 107.9: Using Gson as serializer with Retrofit 749 .............................................................................................
Section 107.10: Parsing json array to generic class using Gson 750 ...........................................................................
Section 107.11: Custom JSON Deserializer using Gson 751 ...........................................................................................
Section 107.12: JSON Serialization/Deserialization with AutoValue and Gson 752 ...................................................
Chapter 108: Device Display Metrics 754 ...............................................................................................................
Section 108.1: Get the screens pixel dimensions 754 .....................................................................................................
Section 108.2: Get screen density 754 ............................................................................................................................
Section 108.3: Formula px to dp, dp to px conversation 754 .......................................................................................
Chapter 109: TextView 755 ............................................................................................................................................
Section 109.1: Spannable TextView 755 ..........................................................................................................................
Section 109.2: Strikethrough TextView 756 ....................................................................................................................
Section 109.3: TextView with image 757 .........................................................................................................................
Section 109.4: Make RelativeSizeSpan align to top 757 ...............................................................................................
Section 109.5: Pinchzoom on TextView 759 ...................................................................................................................
Section 109.6: Textview with dierent Textsize 760 ......................................................................................................
Section 109.7: Theme and Style customization 760 ......................................................................................................
Section 109.8: TextView customization 762 ...................................................................................................................
Section 109.9: Single TextView with two dierent colors 765 ......................................................................................
Chapter 110: ListView 767 ..............................................................................................................................................
Section 110.1: Custom ArrayAdapter 767 ........................................................................................................................
Section 110.2: A basic ListView with an ArrayAdapter 768 ...........................................................................................
Section 110.3: Filtering with CursorAdapter 768 .............................................................................................................
Chapter 111: Building Backwards Compatible Apps 770 .................................................................................
Section 111.1: How to handle deprecated API 770 ..........................................................................................................
Chapter 112: Loader 772 .................................................................................................................................................
Section 112.1: Basic AsyncTaskLoader 772 .....................................................................................................................
Section 112.2: AsyncTaskLoader with cache 773 ...........................................................................................................
Section 112.3: Reloading 774 ............................................................................................................................................
Section 112.4: Pass parameters using a Bundle 775 .....................................................................................................
Chapter 113: ProGuard - Obfuscating and Shrinking your code 776 .......................................................
Section 113.1: Rules for some of the widely used Libraries 776 ....................................................................................
Section 113.2: Remove trace logging (and other) statements at build time 778 .......................................................
Section 113.3: Protecting your code from hackers 778 .................................................................................................
Section 113.4: Enable ProGuard for your build 779 ........................................................................................................
Section 113.5: Enabling ProGuard with a custom obfuscation configuration file 779 ................................................
Chapter 114: Detect Shake Event in Android 781 ..............................................................................................
Section 114.1: Shake Detector in Android Example 781 .................................................................................................
Section 114.2: Using Seismic shake detection 782 .........................................................................................................
Chapter 115: Typedef Annotations: @IntDef, @StringDef 783 ...................................................................
Section 115.1: IntDef Annotations 783 ..............................................................................................................................
Section 115.2: Combining constants with flags 783 .......................................................................................................
Chapter 116: Capturing Screenshots 785 ...............................................................................................................
Section 116.1: Taking a screenshot of a particular view 785 .........................................................................................
Section 116.2: Capturing Screenshot via Android Studio 785 .......................................................................................