Copyright
Brief Table of Contents
Table of Contents
Foreword
Preface
Acknowledgments
About this Book
About the Cover Illustration
Chapter 1. Working your way around layouts
Hack 1 Centering views using weights: Android v1.6+
1.1. Combining weightSum and layout_weight
1.2. The bottom line
1.3. External links
Hack 2 Using lazy loading and avoiding replication: Android v1.6+
2.1. Avoid replication using the <include /> tag
2.2. Lazy loading views with the ViewStub class
2.3. The bottom line
2.4. External links
Hack 3 Creating a custom ViewGroup: Android v1.6+
3.1. Understanding how Android draws views
3.2. Creating the CascadeLayout
3.3. Adding custom attributes to the children
3.4. The bottom line
3.5. External links
Hack 4 Preferences hacks: Android v1.6+
4.1. The bottom line
4.2. External links
Chapter 2. Creating cool animations
Hack 5 Snappy transitions with TextSwitcher and ImageSwitcher: Android v1.6+
5.1. The bottom line
5.2. External links
Hack 6 Adding eye candy to your ViewGroup���s children: Android v1.6+
6.1. The bottom line
6.2. External links
Hack 7 Doing animations over the Canvas: Android v1.6+
7.1. The bottom line
7.2. External links
Hack 8 Slideshow using the Ken Burns effect: Android v1.6+
8.1. The bottom line
8.2. External links
Chapter 3. View tips and tricks
Hack 9 Avoiding date validations with an EditText for dates: Android v1.6+
9.1. The bottom line
9.2. External links
Hack 10 Formatting a TextView���s text: Android v1.6+
10.1. The bottom line