joke_item.xml: Is the layout for each of the list items in the List Screen.JokeDetailActivity.kt: Shows a single joke and lets you add additional text, customize the background and share.Review the project to familiarize yourself with the files: To fix these problems, you’ll need to modify the code to autosize the TextViews according to their width and height. Also, resizing the text in the Detail Screen doesn’t adjust the font size to the frame of the TextView. You may have noticed that much of the text in the List Screen is sometimes cut off. When you have finished customizing the page, you can share it with your friends. You can also move and pinch the TextViews. You can add more text and customize the background. Selecting one of the jokes brings you to a new screen that shows only the joke you chose. Build and run it, and you’ll see the following screen: Once downloaded, open the starter project in Android Studio 3.2.1 or newer. Use the Download Materials button at the top or bottom of this tutorial to download the starter project. You can pick a joke to create an image with, add other quotes, change the background and share the result with your friends. The project you’ll work with, Jokes, is an app that shows you a list of jokes. Just need to catch up on Kotlin? Take a look at Kotlin For Android: An Introduction Getting Started If you are new to Android Development, check out our Android Tutorial for Beginners series. Note: This tutorial assumes you are familiar with the basics of Android and Kotlin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |