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 6165551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:11:10+00:00 2026-05-23T22:11:10+00:00

Would it be possible to create a class which you could pass four or

  • 0

Would it be possible to create a class which you could pass four or so variables into that would create a button that looks similar to the new Android 3.0 Market link buttons? I am trying to learn all aspects of Android design. The button in question is below:

enter image description here

I think it would be cool if you could in your code create a new button that looks similar to this by going.

myButton = new myButton(hex value, mainText, subText, image resource);

The hex would determine the color bar, the mainText the Title(Apps), etc.

Is this possible? Thanks…any similar examples would be great

  • 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-23T22:11:10+00:00Added an answer on May 23, 2026 at 10:11 pm

    Yup, Create a composite view which exposes all these functionalities.

    • Extend a View class (CustomButton).
    • Create a layout with all these sub-widgets ( 2 textviews + 1 image)
    • Inlfate the layout and add it to your CustomButton
    • Expose methods in your Custombutton class which interact with the sub-widgets (2 TVs + 1 IV)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Would it be possible to add a new operator to the String class that
Would it be possible to write a class that is virtually indistinguishable from an
Is it possible to somehow 'import' a new Java class into a running program
Is it possible to create types like e.g. String(20) in scala? The aim would
Which language is smart so that it could understand variable a = 0 ,
Is it possible using Linq to create a group where items fall into more
Is it possible to call an abstract constructor in one method, then pass that
I have a class Parameter, the purpose of which is to represent the possible
ThisAddIn class created with new Outlook VSTO C# project has a Application property that
I would like to create a simple drop down list with static values which

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.