Questions tagged [view-hierarchy]

A view hierarchy defines the relationships of the views to one another.

A view hierarchy defines the relationships of the views to one another.

52 questions
1
vote
0 answers

StackOverflowError because of too deep view-hierarchy in Android

we get in the Play Store some crash reports of this kind: java.lang.StackOverflowError at android.graphics.Paint.getTextRunAdvances(Paint.java:1753) at android.graphics.Paint.getTextRunAdvances(Paint.java:1726) at…
user3625049
  • 43
  • 1
  • 5
1
vote
2 answers

android consolidating views in include statements, improve performance?

I am optimizing my android layouts. One suggestion I got was to re-use layouts in include statements. Although I understand the utility of this, kind of like object orientated views, but does it dramatically improve rendering time? Does it…
CQM
  • 42,592
  • 75
  • 224
  • 366
0
votes
1 answer

SwiftUI ZStack and Xcode 3D View Hierarchy

I'm learning SwiftUI. When I have a ZStack say ZStack { Image(systemName: "globe") .imageScale(.large) .foregroundColor(.accentColor) Text("Hello, world!") } I am expecting that the Text is overlayed on top of the Image. Why…
newbie py
  • 53
  • 1
  • 5
0
votes
2 answers

Is there any free library that I can use to make tree view structure in react JS

I want to make a tree view structure in React JS. I already use the package "goJS" but I am facing some issues in it. As the price of this package is very high so I can't purchase it. The issue is that whenever I minimize the parent node it shifts…
0
votes
1 answer

View Hierarchy not showing on XCode 13

I recently updated Xcode to Xcode 13. I opened an old project and tried to edit a xib file with interface builder. I can't figure out how to show the view hierarchy that used to be on the left on IB. I have 2 views, but when I try to click on them…
0
votes
0 answers

TabView disconnects when rotating to Landscape due to SwiftUI's re-render of parent-Views

Using Swift5.3.2, iOS14.4.1, XCode12.4, As the following code shows, I am working with a quite complex TabView in Page-Mode in SwiftUI. i.e. using iOS14's new possibility to show Pages: .tabViewStyle(PageTabViewStyle()) Everything works. Except, if…
iKK
  • 6,394
  • 10
  • 58
  • 131
0
votes
3 answers

VideoPlayer in SwiftUI stops playing when parent-View updates

Using Swift5.3.2, iOS14.4.1, Xcode 12.4, I am successfully running a VideoPlayer in SwiftUI. I am calling the Player view with this code: VideoPlayer(player: AVPlayer(url: url)). The problem is that the video stops playing whenever a parent-View of…
iKK
  • 6,394
  • 10
  • 58
  • 131
0
votes
1 answer

Warning: Attempt to present ViewController on ViewController whose view is not in the window hierarchy (w/ UIAlertController)

I'm building a chat app where there are two types of views to be modally presented over the chat screen: a UIAlertController for users to select media to send, and a popover if the current user wants to block/remove the user that they're messaging.…
0
votes
3 answers

Component child selector with extended template

I want to create component with view hierarchy outside of Router and RouterModule Example: comp-parent.ts @Component({ selector: 'comp-parent', template: `

parent works

`, …
Mike Quoro
  • 141
  • 1
  • 7
0
votes
1 answer

NavigationController and View Hierarchy issue

I have 1 (rootViewController) view controller which is embedded in navigation controller. Then i pushed another view controller (secondViewController), which has search controller in title view. When i am trying search become first responder…
0
votes
0 answers

Presenting new view controller - View is not in the window hierarchy

I am receiving a warning: "Warning: Attempt to present on whose view is not in the window hierarchy!" I think I have a logic problem related to the presentation of the new view controller via a segue. I am attempting to geocode a location and…
Pigpocket
  • 449
  • 5
  • 24
0
votes
0 answers

Xcode 9 Debug View Hierarchy extremely slow

Before Xcode 9, Debug View Hierarchy completely created a visual interactive representation of the UI in about two seconds. Now, in Xcode 9, it takes about 15 seconds. Is there any setting to make it fast as it used to be?
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
2 answers

android:layout_alignTop does not work similar to android:layout_alignBottom

I try to create a semi-transparent red View and a TextView inside RelativeLayout, which the height of View follows the height of TextView, it works as expected when the TextView is above the semi-transparent red View:
ggrr
  • 7,737
  • 5
  • 31
  • 53
0
votes
1 answer

How to put layout between others layout in RelativeLayout?

I have a RelativeLayout. Inside it I have: An ImageView 120x120 dp in the right. 3 other layouts in the left: 1st layout (called Top) has alignParentTop=true 2nd layout (called Bottom) has alignParentBottom=true 3rd layout (called Middle) is at…
0
votes
1 answer

Control doesnt respond to mouse actions because it's on bottom of view hierarchy

I have a ContentControl with following DataTemplate xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf" ....