Questions tagged [nestedlayout]
15 questions
9
votes
2 answers
Android nested layouts
I am new to android layouts, Could please tell me how the performance of application when using nested layouts instead of using layout below, layout above, layout right, layout left attributes of relative layout for components.
For…

mini
- 855
- 4
- 15
- 22
7
votes
2 answers
Collapsing layout during scrolling in Android
I would like to have custom view collapsed with a transition during scrolling.
I have AppBarLayout with a Toolbar inside. Below that there is a custom view that I want to collapse.
Below custom view there is a NestedScrollView with…

pixel
- 24,905
- 36
- 149
- 251
3
votes
2 answers
Nested layout inside application layout
I have little problems with nested layouts. On my site I need to make one separate part of the site only for administrator.
I have this in my application.html.erb file:
<%= render 'layouts/header' %>
…

user3304086
- 901
- 1
- 9
- 19
2
votes
3 answers
JavaSwing Layout Confusion/Difficullties
I'm still trying to figure out BorderLayout in JavaSwing, and it's really frustrating.
I want to be able to split a pane into 3 contained sub-panels, but I'm not entirely sure how to contain it.
Here is my class Game, which contains panels…

user1658865
- 81
- 5
1
vote
1 answer
How to use Nested Arraylist with recyclerView?
I wanted to populate a nested ArrayList.
Below is the JSON response from the server. Now I want sectionName as the headerView and sectionItems as the Child view of that header. So That, this layout will look like categorized items.
I have researched…

Vijay
- 376
- 4
- 13
1
vote
2 answers
Nested LinearLayout doesn't work in Android
I am trying to make layout like in the picture. Project picture I can only link it because I am new. When I run the code with just one LinearLayout it works fine. But when I make nested linear layout it shows an only white screen. And there are no…

wozverine
- 34
- 6
1
vote
2 answers
Android - Put two EditTexts in one line in vertical Linear Layout
I have a vertical Linear Layout with some elements, but at one position I want 2 EditTexts in 1 row. I did it with a horizontal Linear Layout in it, but Android Studio says that this is very bad for performance.
Is there a way of doing this without…

abilnf
- 67
- 8
1
vote
2 answers
Java nested layouts
Hy, I'm trying to create a window with a layout like in this picture:
My ide was to use panels and nest layouts something like that:
Here is my code so far, but it is not working properly. How should I do that, what should I do differently, or…

Razero
- 321
- 1
- 4
- 16
1
vote
0 answers
screenshot of specific layout that is nested in main layout
I want to take a screen shot of a layout that is nested (in between) main layout. I'm using following code:
public static Bitmap captureScreen(View v) {
Bitmap bitmap = null;
try {
if (v != null) {
int…

Zehra Batool
- 11
- 1
1
vote
2 answers
Is it okay to nest several relative layouts
I've created this layout and it uses several nested relative layouts, i've seen some posts saying relative layouts should be used instead nesting linear layouts.
How about nesting relative layouts? What are the downsides to nesting layouts like…

AndroidEnthusiast
- 6,557
- 10
- 42
- 56
0
votes
0 answers
How to create a nested layout in PyQt6 and where do I add the widgets?
I'm new to PyQt 6. For a small project I'm trying to achieve a nested layout as shown below:
mockup testcases. So far I took the sample code from 15 Minute Apps to get some kind of webbrowser. How and especially where I have to add the needed…
0
votes
0 answers
AuthContext user is null on page refresh in Nextjs nested layout
I have following bit of code where provide authentication objects and methods, component which guards the authentication required routes.
But the problem is when I login and refresh inside authenticated page, user…

user158
- 12,852
- 7
- 62
- 94
0
votes
1 answer
nested layouts or use a RecyclerView?
in terms of performance, what will be considered better.
having nested layouts (2-3 nested layouts, reused with tag> or using Recyclerview?
Does it matter if the layout is part of an item in another Recyclerview?
In terms of updating the data when…

Sharas
- 1,985
- 3
- 20
- 43
0
votes
1 answer
advantages of using nested layouts in activity xml
What are the advantages of using nested layouts in android? Why not just use layouts without nesting? It is usually seen in 'compose message' activity layout. Coders use nested layouts to place the 'send' button in the bottom. Why not just as it is…

Ayushi Singh
- 3
- 1
- 5
-1
votes
1 answer
ESPRESSO Click on a non displayed item inside recyclerview
I have a recyclerview with a lot of items. Some of them are not displayed on the screen. How do I click on a button inside a recyclerview item which is not displayed on the screen?
I know the item position and the button id.
PS: My layout is inside…

Leonardo Sibela
- 1,613
- 1
- 18
- 39