About 6,740,000 results
Open links in new tab
  1. Add text to image in android programmatically - Stack Overflow

    May 6, 2017 · Use the following function to write Text on Images: Bitmap bm = BitmapFactory.decodeResource(getResources(), drawableId) .copy(Bitmap.Config.ARGB_8888, true); Typeface tf = Typeface.create("Helvetica", Typeface.BOLD); Paint paint = new Paint(); paint.setStyle(Style.FILL); paint.setColor(Color.WHITE); paint.setTypeface(tf);

  2. Add images to your Android app

    Just like you use a Text composable to display text, you can use an Image composable to display an image. In this task, you add an Image composable to your app, set its image to the image that you downloaded, position it and adjust its size so that it fills the screen.

  3. How to Add Image on EditText in Android? - GeeksforGeeks

    Feb 18, 2022 · Method 1: Adding EditText attribute to add a drawable. Add drawableRight attribute to add the image to the right of the EditText.

  4. Programmatically produce image with custom text - Stack Overflow

    Feb 19, 2022 · How can I programmatically produce an image containing custom text (in Kotlin)? The following picture is an example: All text here should be editable programmatically - In other words, I'd like a programmatically editable template that can be saved as an image.

  5. Add un text onto an image programmatically using Kotlin

    Sep 15, 2021 · I have a image "myXmlImage" in my .xml file. In the .kt file, I want to paste another "newImage" image as well as a little text "newText". myXmlImage.setImageDrawable(newImage.drawable) myXmlImage.imageMatrix = newImage.imageMatrix So far it has been working very well and the new image is in place.

  6. How to Combine Text and Image on a Button or ... - GeeksforGeeks

    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 image on the Image button instead of text.

  7. Dynamic ImageView in Kotlin - GeeksforGeeks

    Feb 24, 2025 · An ImageView as the name suggests is used to display images in Android Applications. In this article, we will be discussing how to create an ImageView programmatically in Kotlin. Step by Step Implementation Step 1: Create a new project. To create a new project in Android Studio please refer to How to Create/Start a New Project in Android Studio.

  8. How to Use ImageSpan in TextView with Remote Images in Android

    Aug 16, 2023 · The provided code demonstrates how to create a custom BindingAdapter in Kotlin to append remote images to a TextView. The ImageSpan class is utilized to insert remote images into spans of...

  9. Create An Android ImageView Programmatically in Kotlin

    In this article, we will learn how to create android ImageView programmatically in Kotlin. We will go through various steps that explains how to create ImageView and add it in kotlin file, use different attributes to customise it etc. in any android application.

  10. Android fundamentals 04.1: Clickable images - Medium

    Feb 14, 2019 · In this task you add each method for the android:onClick attribute to call when each image is clicked. In this task, these methods simply display a Toast message showing which image was tapped.

  11. Some results have been removed
Refresh