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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:52:21+00:00 2026-05-25T05:52:21+00:00

My intent is to create many buttons in a line so I think each

  • 0

My intent is to create many buttons in a line so I think each button must be small.

How to create small button like this?
what I want

I tried the below code but it is not similar.
what I get

This is my style.xml

<style name="RightLink2" parent="@android:style/Widget.Button.Small">  
  <item name="android:layout_height">wrap_content</item>
  <item name="android:layout_width">wrap_content</item>
  <item name="android:padding">2dip</item>  
  <item name="android:textSize">10dp</item>
</style>

this is my layout.xml

<LinearLayout android:layout_width="match_parent" android:id="@+id/linearLayout1" android:orientation="horizontal" android:layout_height="wrap_content" android:weightSum="1">
    <Button android:id="@+id/myButton"        
    style="@style/RightLink2"
    android:text="Click here"/>        
</LinearLayout>
  • 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-25T05:52:21+00:00Added an answer on May 25, 2026 at 5:52 am

    If you intend to do many small buttons in a line, you are doing it wrong.

    You are in effect, when programming for a phone, a UI designer. You have to remember your user will use his big fat greasy fingers while eating a hamburger and drinking soda, potentially, and still has to navigate your application easily.

    There are guidelines about the minimal recommended size for a button, but you should use the following idea:

    • if you have more than 5 buttons on your line, you’re doing it wrong
    • if you still want to put more than five buttons, you can either have one of the five buttons that opens a button pane/view, or slide the button line horizontally to reveal other buttons.

    Both ways work, but I favor the second that i find both sexier and more usable. You will probably need a small indicator (as a triangle or equivalent) on the side to show there is more. Discoverability is important, and users are trained nowadays to try to slide stuff.

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

Sidebar

Related Questions

I have a data that looks like this . And I intend to create
I have this code and would like it to appear on the page of
I intend to create a gallery-like TextSwitcher with TextView like this: See image http://img441.imageshack.us/img441/5610/textp.png
Eclipse is giving me many errors for one specific line of code says: Multiple
I have a intent receiver in my android manifest, but would like to give
I am building many apps for Android and wish to have a menu button
Now I would like to make shortcut, so my code is ShortcutIconResource icon =
I need a way to create a string of n chars. In this case
hi I have a scenario like this I made a chat program where a
So I plan to create a complex page with many animatable UI elements. I

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.