With the help of a post from a user here, how to remove the white screen of the "pre-load" before splahScreen
I have solved the problem, now I would like to know if drawable
a progressbar
. I leave the drawable
below...
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@color/colorPrimaryDark"/>
<item android:top="-48dp">
<bitmap
android:gravity="center"
android:src="@drawable/ic_momento"
/>
</item>
</layer-list>
I want to change one progresbar
for the image that is loading or in the last case to be able to assign a size to the image, any idea?
Integrating a
ProgressBar
into a drawable is not possible, you can display the image in aImageView
and theProgressBar
would be a view that would be on top of theImageView
.In the case of SplashScreen, it is common to create a theme which you will relate to the activity:
this Activity will load a layout, this is where you would add your
ProgressBar
: