Giter Club home page Giter Club logo

drawing's Introduction

Android Drawing Examples

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.

drawing's People

Contributors

jimseker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.