Tip:
Highlight text to annotate it
X
Hello, so we're going to create a new project on Android Studio
It takes a bit long to start
So, here is the name of the application
which will automatically be in the package name
We choose a place where we want to save it
and we choose the target
so, the version of the phone
we have here the descriptions of the number of persons using these phones
so, we use specifically an empty activity
the blank activity adding a kind of weird button
and additional functionalities that we don't want
we give a name to this activity
and we generate the layout file by ticking the checkbox
so we find ourselves automatically in the created activity
and we wait a bit, it's usual, just the time for the imports to be taken into account
we're now going to add an icon to our application
I linked the website down in the description
you can decide to add an image, a text, ...
choose the color of the text...
there's a small lag
and the writing is in white, so we're not going to see it right away
if you choose "don't trim", you will have the writing a bit further from the edges
and you can also add a padding to have your writing a bit more centered
you can choose your icon's shape
bevel is actually transparency
we're going to choose "horizontal rectangle"
it's prettier
now we choose the background color
and I'm going to put a different color for the text
still some lag...
so, we're now downloading the zip folder with all the icon's formats
and we're going to download the image used for the Google Play Console
it's what will be asked to you if you want to add your application on the Google Play store
so, we're going to extract the zip containing the icons
and we will have to insert them in the correct folders of the application
see that you find the same folders in the "res" folder
so if you have a way to paste it so that it merges with the existing one, you can do it
otherwise, avoid it if there's a risk to replace the folders and lose their current content
because there can be other data in the mipmap folders
so be aware of this
so I made a mistake and paste the folders in the opposite direction
you normally have a message that suggests you to replace the existing icon which is by default a little green robot
with your icon
so here it is inside the Android Manifest, you can see it on the left
now we are going to decide the colors for the activity bar
I personally recommend the colors of material design
I also linked the website in the description below
with this, you can choose a color from a color picker
and insert it here
and you will see the whole color gradient
ColorZilla is a plugin that ables you to get a color from your browser thanks to an eyedropper
here I am going to get a color which will be the color of my banner
we are going to take a dark green
and we are going to use ColorZilla
I come back here and I use the little plugin
and I click, and you see that the color was pasted in the buffer
so I paste it here, with the "#" so we have to remove it
and you see that we have the whole color gradient, and the 500 value here corresponds to our color
the 700 here is the color we need for the phone's bar
the bar that will be situated above the activity bar
we paste it here
it's a kind of convention of the material design, that ables applications to follow certain rules
so now we're going to run the application, you see the list of the connected devices
and if you check "use same device..." you won't have this message the next time you run