• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Drawing

Raffe

Lurker
Nov 30, 2009
4
0
Hi,

I'm brand new to this android coding. Started like 3 days ago. Have been coding C# for like 2 years but no Java.

And I'm REALLY frustrated at the moment.

I'm currently working on this app where I got a button and a textview on top. A progressbar at the bottom on a regular AbsoluteLayout thingie.
What this app does is it gets the max amplitude from my mic every 100 milliseconds for 1 minute and saves the values into an int vector.

What I want to do is have a designated are about 250x250 pixels located between my button and my progress bar where I can draw stuff... Like a line or a circle or whatever... Doesn't really matter what, I just want to be able to draw someting in the middle of the screen without the other stuff dissapearing.

I've tried working with canvases but everytime I draw something the canvas takes up all of my screen thus hiding my controls.
I've been looking for something to tell me how to do this for about 5 hours not but I can't find anything helpful

How do I do this?

/Raffe
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones