Okay so i am struggling with this project for android studio, I need to have cho
ID: 3592115 • Letter: O
Question
Okay so i am struggling with this project for android studio, I need to have choosable shapes from the overflow menu that change color and can be drawn with touch gestures.
So far i have the red circle i needed but i dont know how to add the other ones. i will have all the codes below of what i have so far. If you also require anything more just let me know. thank you for your help.
The Assignment:
1.Use the application action bar overflow menu to provide the user with four options: Line, Circle, Rectangle, and Oval, as demonstrated in the Unit Conversion Calculator application. Each option will allow the user to draw the corresponding shape when the user performs touch gestures of press, drag, and release. The shape should be drawn while the user gestures are in motion and afterwards.
2.When the Line option is in effect, a line should be drawn in BLACK from the pressing down point to the dragging point and then the releasing point.
3. When the Circle option is in effect, a circle should be drawn in RED from the pressing down point to the dragging point and then the releasing point
. This option is the default when the application starts.
4. When the Rectangle option is in effect, a rectangle should be drawn in BLUE from the pressing down point to the dragging point and then the releasing point.
5. When the Oval option is in effect, an oval should be drawn in GREEN from the pressing down point to the dragging point and then the releasing point.
The Codes:
MyAcitivty.Java
GameView.Java
Circle.Java
my.xml
AndroidManifest.xml
Explanation / Answer
GameView.Java
Circle.Java
my.xml
AndroidManifest.xml
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.