Here that so we can go by clicking on Ford in action button in the second activity.
And now we need to create for start the markup for this activity.
We have to put here.
Text fields and edit text fields that you get and values first name last name.
Next we'll place the subpoena in which we can choose the gender of the co-op member male or female.
The default will be unknown gender and the last will be filled.
A group in which we will indicate which support group this person belongs to.
Let's move on.
The ad made my activity.
I will also remove that constraint loud here and make a linear loud with a vertical orientation.
And inside.
I'll start by creating a text to you name and also to the right.
Edit text for input.
I will place them in the horizontal unit layout with managed parent height WRAP CONTENT let it specify
also will immediately indicate orientation.
Horizontal and text you first with I will set zero DP and height.
Wrap content and as you can see the underscore is right.
And it says here that it will make you invisible and you need to use loud.
Wait wait wait.
Sorry I want to use it here.
That is there.
Wait all the way out.
I will define the sum of weight 3 4 and 4 texture.
I will say the value of weight 1 and why I did text 2 so that edit text is 2 times more than text you
that is all right here.
Wait so are some these property and specify here.
3 The sum of the weights.
And here I specify a layout weight and 1 and then that the line disappears.
And below I place it in text again.
Oh that's great.
Zero DP width of course and hard wrap content
and these property but here I will specify 2 if we leave one here.
And here.
Let's see what happens then.
Let me increase.
We have broken these horizontal linear allowed into three equal parts and if we have since we have 16
2 and edit text 1 she is selected and the right share remains empty.
P.S. edit X and here takes 2 since no text has been written.
Right now is not reasonable if I specified 2 4 it takes then edit text text takes 2 times more.
You see that is it takes two thirds of the width of the layout and text you one third.
This is in fact I want to add two and let's write here.
Text you first name
and in edit text re specify a hint in which we also put first name.
This is how it is now displayed.
Well it's of course specify for layout for general out padding route layout that there are small margins
on each side.
For example A B
and now there are small indents on all sides.
I will also are on exactly the same fields for the last name.
We can copy the same horizontal layout paste below only here changed to last name
Next we can copy and rush text 2 on subpoena in the horizontal out.
Exactly the same.
Here we indicate gender and here indicates peanut element let's see.
Here.
Gender has appeared on below.
We can place and here is not needed in the spinner.
Let's remove it and below we will place and no other Linnell out element
for the group.
So the cloud is created in which you can enter some valleys.
And now let's create variables in add member activity
to bind our it detects a quote in the clause let's create the fields in the gloss prohibited.
Text
first name
edit text
next let's copy all it's great.
So more edit text last name and group
and also private spinner.
Gender spinner
we will also create a private variable int called gender and by default we can immediately assign the
value zero.
It will have three values 0 1 or 2 in case of 0.
The gender is unknown.
That is the user has not yet entered his gender.
In case 1 the male gender.
And in the case 2 female further in on create we bind all these variables first name and text assign
fun view by D.
I d
Let's see
huh.
We need to create I.D. for all it takes and subpoena
call this first name and it takes
its copy.
These attributes.
Here we specify the last name
then.
Here.
Group
and speed.
We will have gender spinner idea
so here we can write first name A2 text
Nick's last name and text.
Bind
group.
Edit text
and gender spinner
so we connected all the variables.
And now we need to set the values in our subpoena.
By default it will be zero and the agenda will be written.
Unknown.
To do this we must create an array adapter for our spinner and we will continue to do this in the next
video.