Pinch to Zoom Android ImageView Tutorial

Hi and welcome to another tutorial from Codingdemos, today you will learn how to build pinch to zoom Android function on an ImageView using 3rd party library called PhotoView. The experience will be a lot similar to what you see today in social media apps.

You will be building an app that have an Android ImageView and a TextView, when you tap on the ImageView an Android Alertdialog will appear on the screen showing you the image in full size where you can pinch and zoom on the image itself.

Pinch to Zoom Android

By the end of this tutorial, you will have an app that looks like this. (Large preview)

Continue reading

Android Recyclerview Example – Show List of Emails Using Recyclerview

Hi and welcome to another tutorial from Codingdemos, today you will learn how to use Android Recyclerview to display a list of emails. 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:
– Sender
– Icon
– Title
– Description
– Favorite Button
– Time
When you tap on a specific row (Email), you will be directed to the second page which shows you the full email in details.

android recyclerview example

By the end of this article, we will have an app that looks like this. (Large preview)

Continue reading

Android Profile Page Design in XML Tutorial

Hi and welcome to another tutorial from Codingdemos, in this tutorial you will learn about Android profile page design, how you can design profile page in XML using Android Studio. In the profile page we will have a profile picture, a description and some statistics about the user and finally a button where you can follow and unfollow the user.

Android profile page design

By the end of this article, we will have an app that looks like this. (Large preview)

Continue reading

Android Strikethrough Text – How to Crossed Out a TextView

Hi and welcome to another tutorial from Codingdemos, in this tutorial you will learn how to use Android strikethrough text to crossed out the text in the TextView and the Button. You can crossed out a text when you want to show the current and discount price or while you are editing some text in a notepad.

We will build a demo app that will have a TextView with text and 2 Buttons. When you tap on the button, the text inside the TextView and the Button will have strikethrough text, when you tap again for the second time Android strikethrough text will be removed.

Android strikethrough text

By the end of this article, we will have an app that looks like this. (Large preview)

Continue reading

Android Ratingbar Example – Adding Rating Stars in Your App

Hi and welcome to another tutorial from Codingdemos, in this tutorial you will learn how to add rating stars to your Android app using Android ratingbar. We will build a demo app that uses Android ratingbar to allow the user to rate the food service and share their overall experience.

Android Ratingbar Example

By the end of this article, we will have an app that looks like this. (Large preview)

Continue reading