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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:09:07+00:00 2026-06-05T07:09:07+00:00

I have 5 buttons having a 9 patch image set as its background. but

  • 0

I have 5 buttons having a 9 patch image set as its background.
but text in those buttons gets cut from below.
i was previously using another image with slightly more pixels in height.
that worked perfectly but i want to use this image now.
my previous image was 185 X 46
and current image is 185 X 41.

should it make any defference afterall they are 9patch.they should stretch accordingly.
Please have a look at this screenshot.Thanks.
enter image description here

this is xml code for my button

               <Button
                android:id="@+id/SplBtn"
                style="@style/shadowed_button"
                android:layout_width="match_parent"
                android:layout_height="40dip"
                android:text="@string/monthlyspecialsStr" />

and this is style for those buttons.

<style name="shadowed_button">
        <item name="android:textSize">15sp</item>
        <item name="android:textColor">@drawable/button_textcolor_selector</item>
        <item name="android:textStyle">bold</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:paddingRight">5dip</item>
        <item name="android:shadowColor">@color/black</item>
        <item name="android:shadowDx">0</item>
        <item name="android:shadowDy">-1</item>
        <item name="android:shadowRadius">1.5</item>
        <item  name="android:background">@drawable/button_background_selector_arrow</item>
        <item name="android:gravity">left|center_vertical</item>
        <item name="android:paddingLeft">40dip</item>
    </style>

9 patch image

  • 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-05T07:09:09+00:00Added an answer on June 5, 2026 at 7:09 am

    The problem is your 9 patch coordination points.Lets extends the vertical and horizontal points to be full extent in your 9 patch image.

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

Sidebar

Related Questions

A small - little question. I have seen many application having buttons like following.
I have some buttons in an UIView. My problem is, that they get cut
I have 3 buttons Docked to left but I want to put them in
I had a simple button set up with a background image defined like android:background=?attr/button
What should I use if I want to have buttons on an image? I
I am having Windows 7 x64 SP1. I have downloaded symbols from: http://msdn.microsoft.com/en-us/windows/hardware/gg463028 I
i am having a screen on which i have painted a image as a
I have a submit button when i click on that button i am having
I have 3 div tags. Each having no. of textboxes and button. Each textbox
I have buttons on a page that look like: <p> <a href=view.php> <input type=button

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.