Programmatically setting LinearLayout divider size

前端 未结 1 1582
眼角桃花
眼角桃花 2021-01-27 12:15

I have tried multiple solutions to this but none seem to work! I am currently using the following Drawable as a divider (this is the horizontal example but the same

1条回答
  •  盖世英雄少女心
    2021-01-27 12:47

    your drawable height is 0. try the following:

    
        
         
    
    

    or add:

    drawable.setIntrinsicHeight(height);
    

    0 讨论(0)
提交回复
热议问题