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

  • SEARCH
  • Home
  • 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 7565755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:14:10+00:00 2026-05-30T14:14:10+00:00

Is it possible to add a button to a class that extends View? public

  • 0

Is it possible to add a button to a class that extends View? “”public class josh extends View “” If not how can I merge a button onto the view when it is referenced in my main activity? uhg please help….

  • 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-30T14:14:12+00:00Added an answer on May 30, 2026 at 2:14 pm

    Two ways:

    1. Have both the button and your custom view as children of a FrameLayout, by which the button can be drawn over your custom view.

    2. Don’t have a real button. Instead, draw something that looks like a button, treat touch events specially if they’re within its dimensions, etc. This is more appropriate for something like a game.

    I believe you can do #2 but have a subclass of Button do the drawing, so that it performs exactly like a normal button and is just positioned/sized by your custom view, but I don’t know how to do this.

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

Sidebar

Related Questions

Is it possible to add a button to the right corner of the app
In UITabBar it is possible to add a standard button by clicking on the
Is it possible in Gtk+ to have an add-tab button inline with the tabs
Is it possible to add an image overlay to a google map that scales
My question changed. can I do the same thing using volume button instead? (that
I have a Paper class that has 4 attributes. public class Paper(int id, String
Situation : C#, .NET 3.5, WinForms Objective : Form1 has a Button that can
Is it possible to add icons to the buttons on a jQuery UI Dialog?
I used glade to create some gtk buttons. is it possible to add an
Is it somehow possible to customize or subclass System.Windows.Forms.ColorDialog to add a few buttons?

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.