Android Studio Tutorial - 06 - Working with Relative Layout

preview_player
Показать описание
How to use relative layout in android. In relative layout, the layout of each view components are related to each other or it related to the parent itself.
Рекомендации по теме
Комментарии
Автор

Very good video. Only problem (in case others experience the same) was - for the second edit text. It couldn't find it via drop down. Added it manually, didn't work. Tried to rebuild clean, but still. What I had to do was delete it, save project, relaunch and add that line again. Guess the xml can get a bit corrupted. OK, thanks again Prabeesh for the good instruction!

joeburns
Автор

Hi,

just one doubt.

At 8:20, you specified "to_left_of" property for the first Edit Text to put it on the left side of the second Edit Text..So my doubt is, can we do it by specifying "layout_weight = 1", so that it would have occupy whatever width available? In one of the videos, you did show us that for "message" Edit Text to occupy the available height by setting "layout_weight = 1", so can't we do the same thing for this First Name Edit Text.

Thanks you,
Kiran.

kiranbandal
Автор

Why does the width of the edit text fill the parent if its set to 0?

STMaraj
Автор

can you tell whats the problem in this code?
app stops working when spinner values are selected

AnkushKapoorak
Автор

Plzcan i have a exaple of layout_weight in relative layout

hetalshah
visit shbcf.ru