Android Analog, Digital And Text Clock Example

Android provides three clock widgets that you can use to implement a clock. They are android.widget.AnalogClock, android.widget.DigitalClock and android.widget.TextClock. The AnalogClock and DigitalClock class have been deprecated since Android SDK version 1.7, but they can still be used. TextClock class is recommended.

Android Analog, Digital And Text Clock Example Read More »

How To Define Custom Color Variables In Android Studio

The android class android.graphics.Color provides some color constants which can be used directly in an android application. For example, BLACK, WHITE, RED, GREEN, BLUE, YELLOW, CYAN, MAGENTA, GRAY, LTGRAY (light gray), DKGRAY (dark gray). But you may find that it is not enough, sometimes you need more colors. So this article will show you how

How To Define Custom Color Variables In Android Studio Read More »

Android Custom View And OnTouchListener Example – Move View On Touch Move

android.view.View component acts like JPanel in Swing programming. It’s just a rectangular blank area, the android.view.View component doesn’t have any content. For built-in UI components of Android applications, they all inherit the class android.view.Viewand then render the appearance on the blank areas provided by the View component.

Android Custom View And OnTouchListener Example – Move View On Touch Move Read More »