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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:08:32+00:00 2026-06-16T21:08:32+00:00

On an iOS App I saw such a Button: The same I would like

  • 0

On an iOS App I saw such a Button:

enter image description here

The same I would like to do in Android, how could I achieve this?
What I tried is the following code:

<Button
    android:id="@+id/widget41"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="5dp"
    android:layout_marginRight="5dp"
    android:text="Email1 testmail@gmail.com"
    android:textStyle="bold" />

Looks something like that:

enter image description here

Well just a normal (ugly looking) Button. I have no idea, how I could style it like in iOS. Any suggestions or links would be appreciated!

  • 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-16T21:08:34+00:00Added an answer on June 16, 2026 at 9:08 pm

    The best solution would be to create your own custom view that behaves like the iOS counterpart (though, as other users have mentioned, Android does have it’s own design guidelines, and the view that you are seeing is an iOS implementation that is designed for that platform).

    enter image description here

    If you look at the iOS image above (a copy of yours with some parts highlighted), I have split it up into sections.

    You could use an Android ViewGroup like a LinearLayout to create the overall image, and give the LinearLayout a border or background (which can be a bitmap image of a rounded rectangle for example (See Android Nine Patch for an example of how to make this fit multiple screens).

    1. Firstly, for the mail icon you would need a LeftAligned ImageView
      with appropriate dimensions.
    2. Next up we have a Bold TextView containing the text “Email1”.
    3. This is followed by another TextView which is blue and uses the
      elipsize property (as defined in an Android XML layout) to create
      "..." at the end once the text has reached the max width it can
      consume. (Use android:ellipsize="end" in the XML)
    4. Finally we have an indicator image, which again can be an ImageView
      sized appropriately.

    You could also achieve this with a RelativeLayout, which would allow you to RightAlign the indicator image, LeftAlign the mail icon, and allow the text to fill the space in between that it can get hold of.

    Example of Nine Patch use for the background here

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

Sidebar

Related Questions

My iOS app is supposed to perform the following two tasks at the same
I'm developing an iPhone app with a subscription model, and I saw this iOS
I have been developing a fairly simple app for iOS and Android that parses
This app is using iOS 5's built-in dictionary with UISearchBar. I want to include
Suddenly I saw now a new App ID in my (iOS Provisioning Portal) with
Implementing a PhoneGap app for Android and iOS, the app is using Facebook Connect
My iOS app doesn't run in background. When home button is hit the app
Could an iOS app get the iTunes link of itself? Before publishing the app,
Can I sign my Adobe AIR app with my iOS development certificate? I saw
I need to make photo app like photo app in ios. I need to

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.