Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4623750
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:01:59+00:00 2026-05-22T03:01:59+00:00

This is driving me crazy and I can’t find any good resources to explain

  • 0

This is driving me crazy and I can’t find any good resources to explain what I’m doing wrong. I want to draw some lines on my view that contains some other Android widgets. For example, I want to lay out some EditText, Buttons, etc in my xml and then draw some lines on the screen in relation to those EditText or Button widgets.

I’ve seen several examples that allow for regular drawing via Canvas, or SurfaceView but none show how I would integrate this with input controls such as EditText, buttons.

I tried this a couple of things that seem to be logical, but don’t work. Am I going to have to roll my own subclass of SurfaceView or Canvas and skip using an .xml layout altogether or is there a way to set everything up via .xml without subclassing?? After hours pouring over Android Drawing tutorials, examples, and javadocs for Android, I’ve decided that I am clueless on how to even get started.

I really would prefer to keep the layout of the widgets and drawing surface in the .xml.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:02:00+00:00Added an answer on May 22, 2026 at 3:02 am

    If you subclass one of the layout views, you should be able to use all the superclass’s layout infrastructure and just do your own custom drawing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is driving me crazy and I can't find the answer anywhere. I have
This is driving me crazy. I'm not including any code because I want to
This is driving me crazy, I just can't find out the problem: I have
This has been driving me crazy because I can't find anything on Google. Maybe
This is driving me crazy and most likely I am doing this wrong. So
This is driving me crazy. I have a PHP script that gets some data
this is driving me crazy. I think my website is infected by some sort
This is driving me crazy. Is there someone out there that can help? Traceback
I'm using .Net 2.0 and this is driving me crazy but there's probably some
This is driving me crazy. I want to show in a QWebPage an url,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.