A view does not show inside a relative layout

后端 未结 4 1996
别那么骄傲
别那么骄傲 2021-01-29 15:05

I have a problem with this layout and i cannot find out what is wrong. As you can see, there is a chronometer and a table inside a relative layout but the chronometer does not s

4条回答
  •  孤城傲影
    2021-01-29 15:21

    Your TableLayout takes over all space (match_parent) and draws over the Chronometer. RelativeLayout children are laid out in order they are declared. I don't know what you want exactly, but you can start by switching the order of the two in your layout so that the Chronometer draws over the TableLayout.

提交回复
热议问题