Filipe_Moraes Posted June 5, 2012 at 03:51 PM Report Share #460584 Posted June 5, 2012 at 03:51 PM 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); llDatas.setId(DATAS.getInt(DATAS.getColumnIndex("id"))); llDatas.setOnClickListener(fMaisInfo); mainPanel.addView(llDatas); 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 More sharing options...
KTachyon Posted June 5, 2012 at 08:31 PM Report Share #460684 Posted June 5, 2012 at 08:31 PM (edited) Cria um View com a grossura e cor que pretendes. Edited June 5, 2012 at 08:31 PM 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now