Jump to content

Border-bottom no linearlayout gerado via codigo


Recommended Posts

Olá pessoal.

Estou tentando criar uma bordar em baixo da minha linearlayout, o problema que JAVA complica demais.

O problema que não estou usando XML para criar os objetos, faço da seguinte maneira:

LinearLayout llDatas = new LinearLayout(this);

Como faço para que tenha uma borda amarela fina por baixo de cada linearlayout, no css+html seria o "border-bottom".

Já vi exemplos aqui no fórum, mas usando XML, eu gostaria de fazer tupo por código.

Agradeço a ajuda.

Link to comment
Share on other sites

Cria um View com a grossura e cor que pretendes.

Edited by KTachyon

“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

-- Tony Hoare

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.