On Sat, Jan 14, 2012 at 8:56 AM, Hydro Misco <[email protected]> wrote:
> I am trying to draw a simple shape on whatever is on the screen - say
> a filled rectangle.
>
> I suspect I need to somehow get access to the OnDraw for the whole
> screen.
>
>  * How do i do this?

Your activity can retrieve any of its widgets via findViewById().
Though only lightly documented, android.R.id.content is the widget ID
for your activity's content view (or, more accurately, the FrameLayout
into which Android loads your content view).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to