In Jetpack compose example to load image from drawable folder we will use below code. In the above example we used image composable and create Painter object from painterResource() and pass the resource id. You can read more about Image composable in Jetpack compose
val image: Painter = painterResource(id = R.drawable.image1)
Image(painter = image,contentDescription = "image",)
In Jetpack compose example to load image from drawable folder we will use below code.
In the above example we used image composable and create Painter object from painterResource() and pass the resource id.
You can read more about Image composable in Jetpack compose
How to copy database from assets folder in android using kotlin
How to avoid multiple button click at same time in android?
Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: Andr
Android FCM not receiving notifications when app is removed from background
How To Set Text Color Programmatically Android TextView?
How to convert milli seconds to hours, minutes and seconds in Android?
What are symmetric and asymmetric encryption in the way Android interacts with the server?
Hide/Disable soft keyboard on Activity launch: Android
How to extract date and time from Long type variable in Kotlin on Android "
ERR_ACCESS_DENIED in Android Webview with sdk 30
How do i load image from drawable folder in Jetpack Compose?
How to Get bitmap from drawable: Android
INSTALL_FAILED_INVALID_APK: Split lib_slice_9_apk was defined multiple times. It is possible that th
How to get an image resource by it's name in android?
'constructor Handler()' is deprecated. Deprecated in Java, How to use Handler() class in And
What is the difference between match_parent and fill_parent?
How to validate email address in Android with Kotlin?
FragmentPagerAdapter deprecated, Since API 27.1.0 FragmentPagerAdapter is deprecated.
What happens next when the device switches between portrait and landscape?
What is "shared preferences" in Android ?
How to find Android Device UDID or unique ID?
Key Points to remember while develop the Android Application.
What are Android Versions available?
Check List for Generate Signed APK Android
Android Activity FullScreen - How to set activity to fullscreen mode in Android?
What is Android Fragments?
What is Context?
What is ANR? How to avoid and resolve it?
What is ANR in android?
How to get a contact image using a phone number in android?
What are the notifications available in android?
Duplicate files during packaging of APK” build.gradle issue: Android Studio
Error: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path
How to reduce APK package size?
Intent for Drive PDF Viewer - How to open PDF in Google Drive with intent
How to Generate signed apk with android studio
How to get complete address from latitude and longitude?
How to check Android version?
How to add jar/library files as a dependency in Android studio gradle file
What is Intent? What is the difference between an implicit intent and an explicit intent?