Note that there are some explanatory texts on larger screens.

plurals
  1. USBhiefer
    primarykey
    data
    text
    plurals
    1. COsure I know that...that is the reason why I want to use this custom layout. When screens/resolution are big enough or when you just change device dpi to lower value, the content is small and it doesn't look good when it isn't fullscreen (it occupies just part of screen)...so I want to stretch it using weights. on the other hand, when screen is small, I have to use the scrollview. And how I will distinguish between these two situations? That is what I am asking here:) I want to get height by getHeight() method and according this value, choose the layout. But I don't know in which View method.
      singulars
    2. COUnfortunately, this is not the desired behaviour. I want to stretch the child views when scrollview is not needed...i.e. I will use weights when aggregated size of inner views is smaller and scrollview when size is bigger. And I don't know how it is possible with either listview or simple scrollview. And btw. the layout will be a little bit more complicated than my example. It will be a table layout with multiple columns.. That is why I don't want to use listview.
      singulars
    3. COThat is exactly what I want. But I don't know when the value 200 will be known, i.e. which method to override. height of B isn't const height and is screen size dependent. As I wrote: this value isn't known in constructor... Thanks for your reply...
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload