android

Android @IntDef Annotation Example

Tutorial
Android has some helpful annotations in the support library so, in this post, I will show you an example of how to use @IntDef annotation. You can use this annotation (or @StringDef annotation) instead of Enum.…

Android: Add Tabs using TabLayout

Tutorial
In this tutorial we will see how to add tabs to a project by using TabLayout together with ViewPager, and some other new views from the design library 🙂 Before…

Android Countdown ProgressBar

Tutorial
Recently I needed to make a progressBar to update its progress smoothly for a given period of time (I needed a countdown). So after some research on Google, I ended…

Did you know about CoordinatorLayout?

Did You Know?
Definition CoordinatorLayout is a more advanced FrameLayout, that now, with all these new changes with Material Design, it was introduced in the DesignLibrary, in order to provide help and more control over…

Android Custom Edit Text Cursor Not Visible

Solutions
Story I created a new simple project with a custom edit text without any logic (it just extends EditText). The code is the following: CustomEditText.java package com.example.customedittextcursor; import android.content.Context; import android.util.AttributeSet;…
keyboard_arrow_up