Android Tutorial
By : Ketan Bhimani 260 private static class ViewWithRedDot extends View { public ViewWithRedDot(Context context) { super(conte ...
Android Tutorial 261 Understanding the Paint In Android, the Paint (android.graphics.Paint) object stores far more than a color. ...
By : Ketan Bhimani 262 Paint linePaint = new Paint(); linePaint.setStyle(Paint.Style.STROKE); Working with Paint Gradients You ...
Android Tutorial 263 import android.graphics.Canvas; import android.graphics.Color; import android.graphics.LinearGradient; impo ...
By : Ketan Bhimani 264 circle at the bottom of Figure is a sweep gradient between red, yellow, green, blue, and magenta. You c ...
Android Tutorial 265 Using Default Fonts and Typefaces By default,Android uses the Sans Serif typeface, but Monospace and Serif ...
By : Ketan Bhimani 266 Some typefaces and typeface styles available on Android. Using Custom Typefaces You can easily use cust ...
Android Tutorial 267 You can then use the Chess Utrecht typeface to “draw” a chessboard using the appropriate character sequence ...
By : Ketan Bhimani 268 methods. For example, the following code loads a Bitmap resource and draws it on a canvas: import andro ...
Android Tutorial 269 Matrix mirrorAndTilt30 = new Matrix(); mirrorAndTilt30.preRotate(30); mirrorAndTilt30.preScale(-1, 1); You ...
By : Ketan Bhimani 270 XML resource files, but more often, especially with more complex shapes, this is done programmatically. ...
Android Tutorial 271 Defining Shape Drawables Programmatically You can also define these ShapeDrawable instances programmaticall ...
By : Ketan Bhimani 272 A green rectangle. You can create and use these shapes as Drawable resources directly within ImageView ...
Android Tutorial 273 Drawing Rectangles with Rounded Corners You can create rectangles with rounded corners, which can be nice f ...
By : Ketan Bhimani 274 rndrect.getPaint().setColor(Color.WHITE); ImageView iView = (ImageView)findViewById(R.id.ImageView1); i ...
Android Tutorial 275 Drawing Ovals and Circles You can create ovals and circles (which are ovals with equal height/width values) ...
By : Ketan Bhimani 276 Drawing ArcsM You can draw arcs, which look like pie charts or Pac-Man, depending on the sweep angle yo ...
Android Tutorial 277 Drawing Paths You can specify any shape you want by breaking it down into a series of points along a path. ...
By : Ketan Bhimani 278 Working with Animation The Android platform supports three types of graphics animation: Animated GIF ...
Android Tutorial 279 Working with Frame-by-Frame Animation You can think of frame-by-frame animation as a digital flipbook in wh ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf