android: LayoutParams for TextView makes the view disappear, programmatically

前端 未结 3 1490
耶瑟儿~
耶瑟儿~ 2020-12-08 10:34

I\'ve hit this from various different angles. Basically the gist is this:

I\'ve layed out a template in XML for an interface which NEEDS to be run programmatically,

3条回答
  •  被撕碎了的回忆
    2020-12-08 10:35

    what is the 3rd variable in layoutparams supposed to do, is that alpha? what happens if you comment out paramsExample.setMargins

    finally what happens if you to txtviewExample.setVisible(View.Visible) after you setLayoutParams?

    those would be the things I would try if you haven't

提交回复
热议问题