├── .gitattributes ├── .gitignore ├── Chapter01 └── B05685_01_code.zip ├── Chapter02 └── B05685_02_code.zip ├── Chapter03 └── B05685_03 code.zip ├── Chapter04 └── B05685_04 code.zip ├── Chapter05 └── B05685_05 code.zip ├── Chapter06 └── B05685_06_Code (1).zip ├── Chapter07 └── B05685_07_Code (1).zip ├── Chapter08 └── B05685_08_Code.zip ├── Chapter09 └── B05685_09_Code.zip ├── Chapter10 └── B05685_10_Code.zip ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | 42 | # Directories potentially created on remote AFP share 43 | .AppleDB 44 | .AppleDesktop 45 | Network Trash Folder 46 | Temporary Items 47 | .apdisk 48 | -------------------------------------------------------------------------------- /Chapter01/B05685_01_code.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter01/B05685_01_code.zip -------------------------------------------------------------------------------- /Chapter02/B05685_02_code.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter02/B05685_02_code.zip -------------------------------------------------------------------------------- /Chapter03/B05685_03 code.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter03/B05685_03 code.zip -------------------------------------------------------------------------------- /Chapter04/B05685_04 code.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter04/B05685_04 code.zip -------------------------------------------------------------------------------- /Chapter05/B05685_05 code.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter05/B05685_05 code.zip -------------------------------------------------------------------------------- /Chapter06/B05685_06_Code (1).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter06/B05685_06_Code (1).zip -------------------------------------------------------------------------------- /Chapter07/B05685_07_Code (1).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter07/B05685_07_Code (1).zip -------------------------------------------------------------------------------- /Chapter08/B05685_08_Code.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter08/B05685_08_Code.zip -------------------------------------------------------------------------------- /Chapter09/B05685_09_Code.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter09/B05685_09_Code.zip -------------------------------------------------------------------------------- /Chapter10/B05685_10_Code.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Android-Design-Patterns-and-Best-Practice/3ee8795d866bc8a38500faf8f1eca76235c2dce2/Chapter10/B05685_10_Code.zip -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Packt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #Android Design Patterns and Best Practice 5 | This is the code repository for [Android Design Patterns and Best Practice](https://www.packtpub.com/web-development/android-design-patterns-and-best-practice?utm_source=github&utm_medium=repository&utm_campaign=9781786467218), published by [Packt](https://www.packtpub.com). It contains all the supporting project files necessary to work through the book from start to finish. 6 | ## About the Book 7 | Are you an Android developer with some experience under your belt? Are you wondering how the experts create efficient and good-looking apps? Then your wait will end with this book! We will teach you about different Android development patterns that will enable you to write clean code and make your app stand out from the crowd. 8 | 9 | 10 | ##Instructions and Navigations 11 | All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02. 12 | 13 | 14 | 15 | The code will look like the following: 16 | ``` 17 | Sequence prime = (Sequence) SequenceCache.getSequence("1"); 18 | primeText.setText(new StringBuilder() 19 | .append(getString(R.string.prime_text)) 20 | .append(prime.getResult()) 21 | .toString()); 22 | ``` 23 | 24 | The chapters, 11, 12 and 13, themselves contain instructions for executing code and do not deal with code heavy topics. 25 | Android Studio and SDK are both open source and can be installed from a single package. With one minor exception, which is outlined thoroughly in the relevant chapter, this is all the software required for this book. 26 | 27 | ##Related Products 28 | * [Android 5 Programming by Example](https://www.packtpub.com/application-development/android-5-programming-example?utm_source=github&utm_medium=repository&utm_campaign=9781785288449) 29 | 30 | * [Mastering Android Wear Application Development](https://www.packtpub.com/application-development/mastering-android-wear-application-development?utm_source=github&utm_medium=repository&utm_campaign=9781785881725) 31 | 32 | * [Learning Android Application Testing](https://www.packtpub.com/application-development/learning-android-application-testing?utm_source=github&utm_medium=repository&utm_campaign=9781784395339) 33 | ###Suggestions and Feedback 34 | [Click here](https://docs.google.com/forms/d/e/1FAIpQLSe5qwunkGf6PUvzPirPDtuy1Du5Rlzew23UBp2S-P3wB-GcwQ/viewform) if you have any feedback or suggestions. 35 | ### Download a free PDF 36 | 37 | If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.
38 |

https://packt.link/free-ebook/9781786467218

--------------------------------------------------------------------------------