Android UI

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 »