background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Разработка Android приложений/Урок 4 - 7/Внешний вид приложения"

input logo icon
Video tags
|

Video tags

Разработка Android приложений
Android Studio
создание приложений
андроид
котлин
программирование
java программирование
java
как стать программистом
как создать приложение
приложение под андроид
установка Android Studio
курс по програмированию
Android
Android Studio уроки
Android Studio курс
Разработка приложений под Android
kotlin
androidstudioneco
программированиеneco
necoandroid
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:02
to study how to improve the appearance of
00:00:05
the application, we will again use the example of the
00:00:08
fisherman's reference book to improve the application,
00:00:11
today I suggest you make an
00:00:13
introductory splash screen, let there
00:00:15
be, for example, a logo,
00:00:16
the screen will appear after we have two
00:00:19
options, I will show you both options, the
00:00:21
first option is this after a few
00:00:23
seconds, the
00:00:25
main screen automatically opens where we have a
00:00:28
list and you can pull out a menu with
00:00:30
categories
00:00:31
or we will have a button, so when the
00:00:34
preliminary screen opens where
00:00:36
we will have either a logo or some kind of
00:00:38
greeting,
00:00:39
then we will have a button at the bottom to start or
00:00:42
start or whatever you do, whatever
00:00:44
you want, come up with it yourself and when you click on this
00:00:47
button we will go to the main screen,
00:00:49
so today we will look at these two methods
00:00:51
and see how to use
00:00:54
the background, who already understands at least
00:00:57
a little Android, I think you should know what
00:00:59
the background is background, almost all
00:01:01
elements that can be placed on
00:01:04
the screen have a background, so in this
00:01:07
lesson we will create it in the next lesson, I
00:01:09
think we will even animate it, we will add
00:01:12
animation so that, for example, a
00:01:14
wulf swims out from a small one and turns into a big one,
00:01:17
this is a grandson, we will make a beautiful background, we will make
00:01:19
a logo and we will do it in the next lesson
00:01:22
so that the logo floats out like a bow from a
00:01:24
small one turns into a big one, that is, it floats
00:01:26
out of nowhere, so it will be much more
00:01:29
beautiful and attractive and so, let’s
00:01:31
get to the lesson,
00:01:41
so let’s get straight to the point, let’s start
00:01:44
creating new activities right away, this
00:01:46
will be our
00:01:47
activity logo activity, that is, somewhere
00:01:50
where we will have
00:01:51
the logo, the beginning of the tactics appears, then it
00:01:54
comes to the main screen, let's
00:01:56
now create this activity, if anyone doesn't
00:01:59
remember, here in the java folder, the very
00:02:01
first one is the folder fisher handbook com,
00:02:05
finally, like fisher God, I have this
00:02:07
because I this is what I named my folder and this is
00:02:10
mainactivity text content activity but
00:02:13
here there are already two activities
00:02:14
mainactivity there was already text content
00:02:16
activity we created in the previous lessons
00:02:17
so here we will create another
00:02:21
activity and so on hover here with the mouse and
00:02:24
press the right button new java class
00:02:27
here but I I’ll write and name the
00:02:29
new activity logo activity of the blog, this is
00:02:34
the logo in Russian so activity and we will
00:02:40
need a superclass here, that is,
00:02:41
we will follow all the characteristics of
00:02:44
activity because if we don’t
00:02:45
do this, then it will just be a class
00:02:47
that will not do anything at all,
00:02:48
you will have to Mom’s own writing,
00:02:51
so as not to do this, we inherit everything we
00:02:53
need from the activity class when we have a
00:02:56
full-fledged activity, we
00:02:57
all inherited the superclass here, after all, it’s
00:03:01
written and we press ok, that’s it, we now have the
00:03:03
activity class,
00:03:06
here you see the name is highlighted in
00:03:08
yellow again, why because it’s activity not
00:03:10
added to the manifest, all the activities
00:03:12
that we have need to be added to the
00:03:15
android manifest, here we have the
00:03:17
activity text content activity
00:03:19
already added, we have two ways to
00:03:22
do this in previous lessons, I
00:03:24
showed you on the water, here the cursor
00:03:27
appears with a yellow light a hint
00:03:29
and here we have 3 choices from activity to
00:03:33
manifest, that is, adding our activity
00:03:35
manifest is the easiest way,
00:03:37
but now I’ll show you another way, we
00:03:39
just copy this
00:03:41
activity
00:03:42
past and paste it right after this
00:03:47
activity and the bird should be inside
00:03:50
these brackets triangular ones
00:03:52
are less than more than and there is a slash and and
00:03:56
after the triangular bracket is more than
00:03:58
you see now we have an swearing here that the
00:04:01
activity has already been added twice we are simply
00:04:03
changeable now we just write the name of
00:04:06
our activity it was logo activity
00:04:08
now a hint appears, select
00:04:11
everything now in the manifest registered
00:04:14
at the mine because she has permission
00:04:16
to work on a smartphone. Now we
00:04:19
just need to add the
00:04:21
most important method oncreate, we press
00:04:24
control on English and it opens and
00:04:28
opens all the methods that
00:04:30
this class of our activity has and we look for
00:04:34
where it says oncreate but the shortest
00:04:36
inscription it heats up and with instant stand
00:04:38
bundle white we all select it and
00:04:41
this appears, I think we won’t
00:04:43
need to delete it if it
00:04:47
shows in red and that’s it, now we will need to
00:04:50
create the faucet itself and we will load it
00:04:54
after here using setcontentview
00:04:56
but there is no screen yet that means we need to go
00:04:59
to
00:05:00
resources here is the res folder bark out and
00:05:05
here we see we already have some
00:05:06
taps let’s create another new light
00:05:09
resource file opens and here
00:05:12
you see the root element constraintlayout if
00:05:15
you don’t have constrain ayah they wrote to me in
00:05:17
the comments that sometimes it works Is it not an
00:05:19
eagle poison, then just look if I delete it,
00:05:22
we start writing constrain and here
00:05:25
a constrain appears and here a
00:05:28
constrain way out appears I
00:05:30
will win it all if you wanted a hand
00:05:32
element line royal we will write in the lines and
00:05:36
is it not an eagle out but I will write a
00:05:38
constrain wild everyone chose the control
00:05:44
you now the name let it be blog
00:05:46
activity and it will be called lova
00:05:50
activity and the main root element we have that is
00:05:53
the main container when we all
00:05:55
put it constraintlayout so
00:05:58
everything opens this blueprint
00:06:02
which is here I hardly
00:06:05
use it so I choose
00:06:06
you here you can choose in these selected
00:06:08
2 seconds + blue print
00:06:10
or just hangs on here I use it
00:06:12
just not much and so it is a root
00:06:15
element this is a constraintlayout container
00:06:18
so when the ends of the royal here all the elements
00:06:21
are relative to each other we
00:06:23
tie them to each other with such a sculpted there
00:06:25
very it’s convenient to work with the project, so I
00:06:27
recommend it to you here, what we’ll place here
00:06:30
will need to be in the center, well, for example, in the
00:06:32
center of the logo logo, we will have a button
00:06:35
to place the logo in the center,
00:06:37
we take the imageview like this, but for now we’ll add
00:06:42
an avatar and bind the left edge to the right
00:06:48
and up down after we link it so here we
00:06:53
will have a logo coming out,
00:06:54
we will need, of course, to take a picture somewhere
00:06:58
with our logo or create it
00:07:00
and so on below the button, well, for now I have a
00:07:03
pretty simple button after that you
00:07:05
can change it you be a button
00:07:11
and I will call it well, so that the resource doesn’t
00:07:13
create anything, that’s what it’s called and de
00:07:15
botton and the text we need those to
00:07:18
change this text loaf, we’re looking for the
00:07:21
text attribute if we don’t blame you here, you see the
00:07:24
text if we don’t see it here, you can
00:07:26
write it in the search engine here, but I’ve
00:07:28
already found it the task in mind is here start
00:07:31
will come out start there you can
00:07:34
write anything in general, it’s better to immediately link it
00:07:36
to resources, too, that is, not directly
00:07:38
write start, it’s called a hardcut, that
00:07:42
is, the wrong code, but here in the
00:07:44
string resources create a text resource
00:07:49
loaf, let it be like this, I’ll copy it here I
00:07:54
will change let it be like this wrong
00:07:58
bad things that bad and start and here
00:08:03
let the start be not in Russian all the
00:08:15
old ones now we bind this resource to this button
00:08:19
where we have it so we look for the
00:08:23
text here it is and here the buttons
00:08:27
select our resource we have the resource start
00:08:32
it means where we have the
00:08:33
bait gear so we start everything and this
00:08:38
start we tie the pictures so that they
00:08:41
are together like this at a
00:08:43
certain distance to the left side and
00:08:46
to the right side
00:08:47
and that’s all basically how we will have it
00:08:50
here we see we will select now
00:08:53
built in the background
00:08:54
is exactly the color and so what color can we
00:08:59
choose? We close it and look for the background
00:09:06
in the game. We can have it. The picture
00:09:09
can be the color. you
00:09:21
want to put a
00:09:23
picture as a ground, you
00:09:25
will need to take another imageview, stretch
00:09:28
it along the entire length and place
00:09:30
the picture in it, you can take, for example, this
00:09:34
green vagrant, just see an example,
00:09:36
we will have it like this, or
00:09:39
take if take
00:09:41
look if we take for example that
00:09:42
something is happening in the picture, it
00:09:45
stretches if I put this picture in the imageview,
00:09:49
you can keep the picture in
00:09:52
its proportions using certain
00:09:53
commands,
00:09:55
control, then there are no such commands,
00:09:57
the picture just stretches, you
00:09:58
can’t do anything, and so it
00:10:01
would work for us ground, let’s choose a color,
00:10:03
who has us color can be a color, in
00:10:08
principle, you can see any court, we
00:10:10
can fit a logo, I don’t know,
00:10:12
maybe choose all the same black
00:10:15
background from black no, let’s create some
00:10:19
resource new color, it will be a pain
00:10:22
to choose black like this and that the whole name of
00:10:29
the resource will be good, that is, black and so
00:10:35
[music]
00:10:39
here it is all black like this but I think there’s
00:10:45
a lot here if we make it white it will be
00:10:47
beautiful more
00:10:48
beautiful I can change the black a little
00:10:51
too black here probably somehow like this
00:10:55
but like this it’s better
00:10:58
already and so here we have a start and here we have a
00:11:03
picture, now we need a normal
00:11:06
picture, not this, this is an avatar,
00:11:08
I think we will have like a picture, well,
00:11:11
some kind of fish here, I’m thinking of
00:11:13
taking it and writing fisher facebook something
00:11:16
like that, but this is for simplicity, you
00:11:18
should think about it yourself how to create like an iphone
00:11:20
they gave that it was beautiful, what was the color of
00:11:22
the background and your logo, and of course,
00:11:26
make the button more beautiful, what to make it
00:11:28
more beautiful, we take the background and select,
00:11:32
for example, well, whatever
00:11:36
100 grams or color we change, just it’s green,
00:11:41
I’ll put it green, after all, in general you already
00:11:44
choose
00:11:45
the color that you like, so the next
00:11:51
thing we need to put a picture I’ll go
00:11:54
create a picture and now we’ll come back and
00:11:56
continue everything I prepared the picture and
00:12:00
placed it in the drawable
00:12:02
here’s my log fish here’s a
00:12:04
picture fisherman handbook
00:12:08
I’ll make it in a hurry maybe I
00:12:10
made mistakes here, like no,
00:12:13
so everything is where we now have a logo
00:12:17
instead of now this avatar, let's
00:12:18
choose where we have here with the
00:12:21
Sursk pad, we'll select now we found our
00:12:25
leg, our project logo and we're looking for where
00:12:29
here we have the vlog fish, we choose because it
00:12:33
swam away because its size is huge,
00:12:35
let's choose the normal size and so
00:12:38
here it is, and the length 16 will be on top and
00:12:43
here the layout comes out times high, that
00:12:45
is, width and height, but let it be
00:12:47
let's try 300
00:12:49
dp and here it seems to be the normal
00:12:53
width 300 g p so normal now
00:12:57
we put it in its place somewhere, it should
00:13:00
be about here, but now it’s
00:13:02
turning out pretty well, so the colors and
00:13:05
I think it’ll probably be possible
00:13:07
to make it darker just like that, a little bit, well, it’s
00:13:17
turning out pretty good and so fish and
00:13:20
God in masses here we have By clicking on the start my button
00:13:24
we will go to the main screen, well, that’s
00:13:28
basically it, and sometimes with this
00:13:32
configuration
00:13:33
the picture is not shown, so what
00:13:36
needs to be done is here imageview and
00:13:38
here is the Sursky pad where our
00:13:41
link to our picture is indicated, we also need to
00:13:45
add here if for you the picture is not
00:13:46
shown
00:13:47
just a resource here is an android resource you see and
00:13:50
here we enter the same path of the picture that
00:13:54
is the firewood was logo fish you see the same thing
00:13:56
only instead of bathtub dryers
00:13:59
just a resource android source everything is now
00:14:02
definitely no problems there will be no problems everything is
00:14:03
ready now we need to do how
00:14:05
first listen to this
00:14:08
start button being pressed and when pressed go to the
00:14:11
screen on activity mainactivity that is the
00:14:14
main screen and so we write the code
00:14:17
and first we need here our many
00:14:20
activities to load our screen for this
00:14:22
it is very simple we write everything here in the
00:14:25
oncreate method immediately after super
00:14:27
oncreate we write setcontentview and we write p
00:14:30
. bark out.
00:14:34
lava activity all this is ready now what do
00:14:39
we need to do now we go lova
00:14:41
activity click on the button and look for
00:14:44
onclicklistener let's
00:14:45
create now onclicklistener who doesn't
00:14:48
remember this is a click listener so
00:14:51
well, its name is creation I like to call
00:14:53
them also onclick and already
00:14:57
and
00:14:58
good click start you will see everything onclick
00:15:01
start
00:15:02
so start I want with a capital letter everything
00:15:06
now if we open those that we ourselves don’t
00:15:08
write because of laziness you see it
00:15:10
is highlighted in yellow here it is created onclick
00:15:12
start if anyone doesn’t remember this is a visual
00:15:16
image this is a text image
00:15:18
of the screen here is our android attribute onclick we have
00:15:22
it They called it onclick start, they
00:15:24
light up yellow because it says
00:15:25
that in our many activities
00:15:27
there is no such method, so if we click
00:15:31
as in the case of android manifest, you
00:15:33
will be prompted and here is Creighton click
00:15:35
event handler
00:15:37
or crate onclick start view or logo
00:15:41
activity, this is what we need 1 click after all,
00:15:43
everything has appeared, you have a listener
00:15:45
to set up when you press the button, the
00:15:48
jump will grow, the code
00:15:50
that is located between these
00:15:52
curly brackets and the code that we have on our
00:15:55
website is simply there, you remember from previous
00:15:57
lessons, to go to the next 9,
00:15:59
to run we need to write
00:16:01
create an intent system message, that is,
00:16:04
as you can see, it is highlighted in red, this
00:16:07
means that I have what I need to
00:16:10
know that I need to import like
00:16:11
these elements, so I direct
00:16:13
the cursor, press control and press alt and enter and the
00:16:20
import class window appears, so the
00:16:24
variable will be us Well, I’ll call it
00:16:26
and so as not to write a long intent and what
00:16:30
we write here, but here we write a new intent, that
00:16:32
is, we create a new activity flag intent,
00:16:35
we want to leave this
00:16:37
activity and move to mainactivity,
00:16:40
which means we write a lot of activity dis dis,
00:16:42
this in English means this, that is,
00:16:44
logo activity this, and already mainactivity
00:16:51
. class because mainactivity is class
00:16:55
. do not forget to close the comma so not
00:16:59
so far
00:17:00
and now just startactivity is a monster
00:17:05
like this and asks us to pass here
00:17:07
the intent with which we want to
00:17:09
start the intent and that is, this variable and
00:17:12
which we just created, that is, there is a
00:17:14
variable there and this is this all the
00:17:16
writings we will come here, we could
00:17:19
immediately take all this and place it
00:17:21
inside here,
00:17:22
but it’s more convenient and so startactivity
00:17:26
everything, when you press the button,
00:17:27
new activities will start and what else can we
00:17:32
do on we can do immediately after
00:17:34
startactivity no world archer no after
00:17:37
startactivity
00:17:38
on destroy method we write this method from the
00:17:42
life cycles of activity if anyone remembers and
00:17:45
here we write finish what does this mean finish
00:17:50
means that this activity
00:17:51
will be completely closed and deleted from
00:17:53
memory if we don’t describe this then when you
00:17:56
press the buttons you know on the phone
00:17:58
there is a back button when pressing the buttons
00:18:01
back when you are on the main screen will
00:18:02
return the initial activity,
00:18:06
this is with the logo and we don’t want that,
00:18:09
so if we press, select the command
00:18:11
finish the when this activity is destroyed,
00:18:14
it will be completely deleted from memory,
00:18:17
so when you press the button on the
00:18:19
main on the main the screen where you
00:18:22
have the entire list just closes
00:18:24
all the offers so well,
00:18:27
basically everything that we have here, let’s
00:18:29
now run it and see what
00:18:30
happened,
00:18:31
I press start and so and so the
00:18:39
main screen opened and why did this
00:18:41
happen and there is no screen that we
00:18:44
only what they created and all this happens
00:18:46
because of the manifest file in the manifesto it is written
00:18:51
that the main screen is the very first screen
00:18:53
that opens here it is
00:18:55
written see the application, that
00:18:58
is, this is our entire application and the first
00:19:00
activities are our mainactivity and
00:19:02
will not resist intent filter android and in
00:19:04
action main and also the android intent
00:19:07
category of the launcher,
00:19:09
which leads to the fact that the first activity is
00:19:12
always launched by my nails,
00:19:13
we don’t want this, we want the
00:19:15
syllable screen to launch, so we
00:19:18
simply what can we do, we
00:19:20
can change the name name to our logo
00:19:25
activity and that’s it, we write here
00:19:31
mainactivity we all just swapped
00:19:39
places now you see that let's
00:19:41
now see what came out of this
00:19:43
so we come back
00:19:45
everything you see now our pharmacies have already opened
00:19:48
and now you have a fischer
00:19:51
fischer handbook
00:19:53
and here is the start button I press the start button and
00:19:56
the application closes with an error look
00:19:59
what the error so we are looking for the logcat
00:20:05
we are looking for it will burst and we see that we have
00:20:09
killed someone here shows mainactivity
00:20:12
here in blue I open you 48 on lines 48
00:20:15
here shows the set support
00:20:17
actionbar
00:20:18
but we had a theme in mainactivity but
00:20:21
actionbar because we have mainactivity
00:20:23
to use action bar
00:20:24
and so we need to put this
00:20:26
topic here, but axin bart copies and paste it
00:20:30
here so that it doesn’t give us an error,
00:20:34
but the launcher here is this one, that is,
00:20:37
the lines that launch our activities
00:20:40
first don’t need to be added here
00:20:42
because mainactivity will not launch
00:20:44
first, now it launches first logo
00:20:46
activity everything is simple, this has been replaced
00:20:48
and it’s ready, let’s launch the start and see what
00:20:54
we got out of it, everything has started,
00:20:58
the base has launched, the first screen with
00:21:01
the logo has launched and we press start, everything
00:21:05
and went to the main screen, here we
00:21:08
already have a list and that’s it, and so on and so on, that’s
00:21:10
all well, everything reacts to
00:21:12
touch and so everything is fine,
00:21:17
but this is still the way we can
00:21:19
create a screen with a logo in the next
00:21:23
lesson we will add a small animation here so
00:21:26
that this logo floats either
00:21:29
from the side to the right from the left or
00:21:32
appears gradually like this and what else can be
00:21:34
added here, instead of a button, we can also
00:21:37
try to make it so that after two or three
00:21:40
seconds it goes to the next tap,
00:21:43
but that’s basically it, everyone,
00:21:47
subscribe to my channel, and if you have
00:21:48
n’t subscribed yet, like and see you
00:21:51
in the next video, bye everyone
00:22:03
[music]

Description:

Разработка Android приложений/Внешний вид приложения/Урок 4 - 7 В этой серии видео будем учится улучшать внешний вид приложения. В этой части создадим экран с логотипом, с этого экрана будем переходить уже на основной экран. ►Скачать Android Studio можно здесь: https://developer.android.com/studio ★ ★ ★ ★ ★ ★ ▼Первые уроки▼★ ★ ★ ★ ★ ★ ★ ►Урок 1: https://www.youtube.com/watch?v=m9rONh99RXE ►Урок 2: https://www.youtube.com/watch?v=KUr4MA_ZtpA ★ ★ ★ ★ ★ ★ ▼Поддержка канала и официальный сайт и соц.сети▼★ ★ ★ ★ ★ ★ ★ ►Телеграм: https://t.me/androidstudioneco ►Mail.ru :https://my.mail.ru/community/androidstudio/?ref= ►Моя веб страница: https://neco-desarrollo.es/ ►Скачать Android Studio можно здесь: ►https://developer.android.com/studio ►Поддержать канал донатом можно здесь: https://www.paypal.com/donate/ ►Поддержать на Патреоне:https://www.patreon.com/join/neco_desarrollo

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "Разработка Android приложений/Урок 4 - 7/Внешний вид приложения" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "Разработка Android приложений/Урок 4 - 7/Внешний вид приложения" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "Разработка Android приложений/Урок 4 - 7/Внешний вид приложения" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "Разработка Android приложений/Урок 4 - 7/Внешний вид приложения" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "Разработка Android приложений/Урок 4 - 7/Внешний вид приложения"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "Разработка Android приложений/Урок 4 - 7/Внешний вид приложения"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.