About 1,370,000 results
Open links in new tab
  1. Android button with icon and text - Stack Overflow

    I'm trying to create a same button with text and a icon. android:drawableLeft doesn't work for me (Maybe it would, but i don't know how to set a max height to the icon). So i created a …

  2. Android: how to add Icon at the left side of the TextView

    Aug 13, 2014 · android:drawableLeft="@drawable/ic_launcher" and you can also put padding between drawable and textview by. android:drawablePadding="2dp" If you always want an …

  3. Boost Your Android UI: Add Icons to TextView Easily - Lynxbee

    Learn how to add drawable icons alongside TextView in Android for better UI design. Step-by-step guide with XML and code examples.

  4. Android using icon in text of TextView - Stack Overflow

    Jun 21, 2021 · Yes, you can do it using SpannableString. See the below example: You could use VerticalImageSpan which is an extension to ImageSpan. And use the following TextView …

  5. Working With the TextView in Android - GeeksforGeeks

    Jun 21, 2024 · 7. Adding Icons for TextView. Android also allows adding drawable with the text views. There are three positions to add the icons for the TextView. They are a start, end, top, …

  6. How to Display a Drawable Inside a Button in Android?

    Jan 3, 2022 · How to Display a Drawable Inside a Button in Android? A Button in Android is basically a subclass of TextView, which lets the user press or click it to perform an action. …

  7. Android custom labeled TextView with icon · GitHub

    Nov 12, 2018 · Android custom labeled TextView with icon. GitHub Gist: instantly share code, notes, and snippets.

  8. How to Combine Text and Image on a Button or ImageButton in Android

    Jul 17, 2022 · Android ImageButton is a user interface widget that is used to display a button having an image and to perform exactly like a button when we click on it but here, we add an …

  9. android - Center an Icon inside a TextView - Stack Overflow

    Oct 19, 2021 · I've seen multiple posts about centering an Icon inside a button but I need to center an Icon inside a TextView, the icons is set on the left with android:drawableLeft. Also I can't …

  10. An easy way to use font icon in Android | by Kevin Chung

    May 27, 2021 · Since it is a normal font, the simplest way to integrate it in Android is use TextView. First, copy icon font into “res/font” folder. For example, material design …

  11. Some results have been removed
Refresh