
You can set the scrollbars to be vertical or horizontal but in this example, you will use vertical because you want to scroll through the content in a vertical orientation.Īndroid Recyclerview in Android Studio. The bar is something similar to what you see when you scroll through a webpage. Note: You use android:scrollbars inside Android Recyclerview to be able to show the small bar on the right while scrolling through the content. ( Large preview)Ħ- Now you need to add Android Recyclerview inside activity_main.xml file. Note: You will use (colorOrange) later for the star favorite icon.Ĥ- Open up activity_main.xml file and add Android Toolbar.ĥ- Run the app to see the new colors with Android Toolbar appear in the emulator.Ĭhange Android app main colors.

( Large preview)Ģ- To be able to use Android Toolbar you will need to change the parent theme inside styles.xml file, so open up styles.xml file and change the parent theme from to .ģ- Next you need to change the app main colors, you can do that by opening colors.xml file and use the following color codes: In this tutorial we will be using the following:ġ- Open up Android Studio and create a new project and give it a name, in our case we’ve named it (MyMail), choose API 16 as the minimum SDK, then choose a blank activity, click “Finish” and wait for Android Studio to build your project.Ĭreate new Android Studio project.

When you tap on a specific row (Email), you will be directed to the second page which shows you the full email in details.īy the end of this article, we will have an app that looks like this.

The app will have 2 pages, the first (main) page will show you the list of emails and each email will have the following data: Hi and welcome to another tutorial from Codingdemos, today you will learn how to use Android Recyclerview to display a list of emails.
