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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:29:51+00:00 2026-06-06T22:29:51+00:00

I tried to make a layout look like it It looks like kinda button

  • 0

I tried to make a layout look like it

It looks like kinda button type.How can both text and image implement in button?

  • 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-06-06T22:29:52+00:00Added an answer on June 6, 2026 at 10:29 pm

    Create Your Custom Button as:

    STEP 1: Create a Button drawable shape xml in res/drawable/button_background.xml:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <shape xmlns:android=”http://schemas.android.com/apk/res/android”>
    <solid android:color=”#F000″/>
    <stroke android:width=”1px” android:color=”#BB000000″ />
    <padding
    android:left=”10dp”
    android:top=”7dp”
    android:right=”10dp”
    android:bottom=”7dp”
    />
    <corners
    android:bottomRightRadius=”5dp”
    android:bottomLeftRadius=”5dp”
    android:topLeftRadius=”5dp”
    android:topRightRadius=”5dp”
    />
    <gradient
    android:angle=”90″
    android:startColor=”#777″
    android:centerColor=”#777″
    android:endColor=”#BBB”
    android:type=”linear”
    />
    
    </shape>
    

    STEP 2: add in your main Button xml layout as:

    <Button android:id="@+id/btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Facebook"
            android:drawableLeft="@drawable/leftimg"
            android:drawableRight="@drawable/rightimg"
            android:padding="15dip"
           android:background="@drawable/button_background"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make my layout look like so. I have tried gridviews,
How can I make a Layout with Buttons in matrix like: Button Button Button
What I want to do is, make layout like this: Title Date Long text
I want to make layout like the attached image but the problem is when
A warning occours in eclipse when I tried to make a android table layout
how can I make the drawable on a button smaller? The icon is too
How can I make layout almost fullscreen ? I mean I dont want there
I have three text blocks and an image which I would like to to
Tried to make a little old school ajax (iframe-javascript) script. A bit of mootools
I tried to make an independent copy of an array but couldnt get one.

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.