trinh_le

In this post, I’ll show you how to create a floating view like Facebook chatheads - the view that was drawn on top of other applications. So, the very first question is: How can we do that? An activity with transparent background? Actually, there’s no activity here. Instead, we’ll user service! As you know, activity and dialog have their own...

trinh_le

In previous post, I showed you how to use Drawer Navigation Menu in your Android application. In this post, I’ll show you how to implement it with Material Design style. All the steps are quite similar to the pre-Lollipop version, but I still go through every single steps to help you feel easier. Before started, you can watch the demo...

trinh_le

Firstly, to have some visual view about this post, you can take a look at this demo video: A - CardView 1 – What is CardView? CardView was brought along with Android 5.0 Lollipop. It extends FrameLayout and has rounded background with shadow by default. CardView is convenient for displaying complex content that has multiple heterogeneous data type like images,...

trinh_le

As you know, the Android 5.0 Lollipop was released featuring with new UI style called Material Design. Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. You can find more information, design guidelines about Material Design here: http://www.google.com/design/spec/material-design/introduction.html#introduction-principles Luckily, Google also provides support library – AppCompat v21 – to allow us to apply Material...

trinh_le

A - Regular Expression Overview Regular expression (Regex) is a sequence of characters that define a search pattern for strings. Regular expression can be used to search, edit and manipulate text and data. The pattern defined by regular expression can match zero, one or several times in a string. The regular expression pattern will be applied to the string from left...

trinh_le

A - What is MVP? MVP pattern stands for Model - View - Presenter. MVP is a derivative from famous MVC guy. It allows separate the presentation layer from the business logic. -   Model: handle persisting and retrieving data, along with any business logic that the data must adhere to -   View: gather user input and update the display -...

trinh_le

In previous post,  I showed you how to use Volley to make a simple request in Android application. This time, I’ll show you the recommended way to make a JSON request using Volley and how to customize Volley request to take advantage of the GSON library. A - Setting up a RequestQueue Firstly, create the VolleyHelper class. This will be...

trinh_le

A – What is Volley? Volley is a very powerful and easy to use library for Android that can be used to handle networking connection. It manages the processing and caching of network requests and it saves developers valuable time from writing the same network call/cache code again and again. Volley comes with lot of features. Some of them are:...

trinh_le

In previous posts, I showed you how to apply animation (fade, slide) to activity transaction. In this post, I’ll show you how to do a card flip animation applied for any View or Layout objects. A - Create the Animator Firstly, we need to create Animator for the card flip animation. flight_left_in.xml defines the animation when the front card comes out and...

trinh_le

Version controlling is one of the most important concept in Software Development. It allow you to track all the version of files, folders among different team members in a very easy way. By the way, nowaday cloud becomes very popular with us. I’m pretty sure that everyone has at least one cloud storage. In this post, I’ll show you how...

trinh_le

You must know that social media has a very important position in modern life - every thing can be shared on social network. One of the largest and most famous social network is Facebook. Integrate with Facebook to help you build engaging social apps and get more installs. In this post, I’ll show you every steps in Facebook SDK integration in...