eclipse/
has the eclipse projects, no longer updated. Everything else is in android studio
legacy/
no longer updated code. see readme.
AlienInvaders
(java) is a very simple space invaders like game using a surfaceview.
AlienInvaders_kt
(kotlin) is a very simple space invaders like game using a surfaceview. Note, some non android classes are still java.
AnimatedGifDemo
(java) shows how to use the animated Drawable class to have animated gifs. NOTE: api 28+
AnimatedGifDemo_kt
(kotlin) shows how to use the animated Drawable class to have animated gifs. NOTE: api 28+
AnimatedVectorDrawableDemo
(java) show how to use Vector graphics animate them. uses the androidx.vectordrawable
AnimatedVectorDrawableDemo
(kotlin) show how to use Vector graphics animate them. uses the androidx.vectordrawable
DrawDemo1
(java) uses a canvas from a imageview to draw on. There are 4 fragments. main draws different types of objects, based on a spinner and some need two taps to be drawn like a line. there is a animated fragments to clear an uses a thread, asyc uses a aysctask. draw1 only draws one object on the screen.
DrawDemo1_kt
(kotlin) uses a canvas from a imageview to draw on. There are 4 fragments. main draws different types of objects, based on a spinner and some need two taps to be drawn like a line. there is a animated fragments to clear an uses a thread, asyc uses a aysctask. draw1 only draws one object on the screen.
drawDemo2
(java) uses a customview to draw on a canvas. There is also a touch listener, to draw blocks.
drawDemo2_kt
(kotlin) uses a customview to draw on a canvas. There is also a touch listener, to draw blocks.
FlappyAlien
is a simple FlappyBird clone, to show how a game work work on a TextureView.
GraphicOverlayDemo
(java) is an example of how to create a customview to draw on other views.
GraphicOverlayDemo_kt
(kotlin) is an example of how to create a customview to draw on other views.
SurfaceViewDemo
(java) uses a surfaceview. Since a surface is for "animated" drawing, an alien moves across the screen. The user touches it and it moves to a new location. It shows to use an extended surfaceview or all it in the activity.
SurfaceViewDemo_kt
(kotlin) uses a surfaceview. Since a surface is for "animated" drawing, an alien moves across the screen. The user touches it and it moves to a new location. It shows to use an extended surfaceview or all it in the activity.
TextureViewDemo
(java) is an example of how to draw on a surface (via a canvas) of a TextureView. It uses a thread to update the moving block. It shows to use an extended textureView and how use all the code in the main. (same example as the surfaceViewDemo)
TextureViewDemo_kt
(kotlin) is an example of how to draw on a surface (via a canvas) of a TextureView. It uses a thread to update the moving block. It shows to use an extended textureView and how use all the code in the main. (same example as the surfaceViewDemo)
These are example code for University of Wyoming, Cosc 4730 Mobile Programming course and cosc 4735 Advance Mobile Programing course. All examples are for Android.