On an iOS App I saw such a Button:

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:

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!
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).
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
ViewGrouplike aLinearLayoutto create the overall image, and give theLinearLayouta 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).LeftAligned ImageViewwith appropriate dimensions.
Bold TextViewcontaining the text “Email1”.TextViewwhich is blue and uses theelipsizeproperty (as defined in an Android XML layout) to create"..."at the end once the text has reached the max width it canconsume. (Use
android:ellipsize="end"in the XML)ImageViewsized appropriately.
You could also achieve this with a
RelativeLayout, which would allow you toRightAlignthe indicator image,LeftAlignthe 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