whats better, giving hard coded height or using weight parameter to set View parameters..?

StackOverflow https://stackoverflow.com/questions/9361253

Pergunta

I usually give fixed height in order to avoid views getting overlapped on orientation change, But is giving weight is better than this..?, share it if there are better ways to give LayoutParameter.

Thank you.

Foi útil?

Solução

It completely depends on situations, like when my view should cover a part of width and height available on screen, then I would opt for weight and when it should be fixed in dimensions irrespective of width, height then use fixed layout co-ordinates.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top