Questions tagged [insets]

inclusion of smaller elements within larger elements; includes html elements, pictures, graphs

131 questions
0
votes
0 answers

Android app dev: Waterfall management for the app

I would like my Android app to manage waterfall displays automatically if present, in that I do not wish for the texts, buttons, etc to be displayed all the way to the screen's border if the screen is waterfall, as I find this not to be user…
Arnianor
  • 43
  • 1
  • 6
0
votes
0 answers

How to add insets to view's margin wth keeping previous margin?

I'm using edge-to-edge in my app. I want to add info window (ViewStub) at the top of the screen. Also i need to apply margin to this window to avoid it drawing on system top panel. I'm using this code: fun View.applyTopInsetAsMargin() { …
Danteee313
  • 11
  • 1
0
votes
0 answers

Why does view.safeAreaInsets.top contain bad value in viewDidLayoutSubviews()?

Running iOS 16.1 app through XCode iPhone 14 Pro Max (phy. device), where 'view' is my VC's main view, I'm getting a view.safeAreaInset.top value of 97.66666... which is much higher than the 59.0 value for the safearea than everything online says it…
clearlight
  • 12,255
  • 11
  • 57
  • 75
0
votes
1 answer

How do I add multiple subplots into a multirow figure in R?

i need to overlay multiple subplots onto a single plot which is already contained inside a multirow figure (see image) the reason why i need subplots instead of screen layout is because the figure will be possibly multicolumn, also (a 5 by 3 plot,…
ivan866
  • 554
  • 4
  • 10
0
votes
1 answer

How to avoid views resizing in immersive mode?

I'm using immersive mode when i click on "play" and show system bars again when pressing "stop". I'm using these methods: fun hideSystemUI(container: View) { WindowCompat.setDecorFitsSystemWindows(window, false) …
SoulReaver313
  • 365
  • 1
  • 11
0
votes
0 answers

setOnApplyWindowInsetsListener in android java

I have a toolbar which is overlapping with the system bars so I am setting the insets with the toolbar. I have the implementation below which is not doing anything and it is still at the same place. I am trying to set the margins on left, right and…
a awasi
  • 71
  • 6
0
votes
1 answer

How to edit the axis values manually while plotting insets in matplotlib

I want to edit the axis values while plotting a graph with insets in matplotlib. I know how to do it when it's a regular plot but I can't seem to figure this out. I have attached a graph with inset below. Here, I want to change the values 0.0 and…
Jo Bi
  • 97
  • 7
0
votes
2 answers

Change insets for collapsing toolbar depending on its state

I have collapsing toolbar and some layout in it I want to collapse. To prevent view going under status bar, I use system insets to set margin for collapsing toolbar. I extracted AppBarLayout to separate file and included it inside…
0
votes
0 answers

read an svg file to insert in matplotlib

I am trying to read an image from an SVG file and insert in matplotlib figure. import matplotlib.pyplot as plt import pylustrator as pyl import numpy as np from matplotlib.figure import Figure from matplotlib.offsetbox import OffsetImage,…
Natasha
  • 1,111
  • 5
  • 28
  • 66
0
votes
1 answer

Changing the grid properties of insets in matplotlib

This is a follow up to my question posted here. A network diagram is added as an inset in matplotlib figure. import networkx as nx import matplotlib.pyplot as plt G = nx.gnm_random_graph(n=10, m=15, seed=1) nxpos = nx.spring_layout(G, dim=3,…
Natasha
  • 1,111
  • 5
  • 28
  • 66
0
votes
1 answer

Android : WindowInsetsAnimationCallback error during exec

I'm trying to know when the animation close of the softkeyboard is done. So i try to use this function : val rootLayout = findViewById(R.id.root_layout) rootLayout.setWindowInsetsAnimationCallback(object :…
Marine Droit
  • 101
  • 8
0
votes
1 answer

Adding image generated from another library as inset in matplotlib

I've generated a network figure using vedo library and I'm trying to add this as an inset to a figure generated in matplotlib import networkx as nx import matplotlib.pyplot as plt from vedo import * from matplotlib.offsetbox import OffsetImage,…
Natasha
  • 1,111
  • 5
  • 28
  • 66
0
votes
1 answer

Center a collection view when scrolling with partially visible previous and next item

i want to achieve the result like in this image and this is what I get when I launch the collection view (the first item): But when I scroll the inset left and right seems that aren't respecting anymore and the item is not centered anymore like…
0
votes
1 answer

SwiftUI InsettableShape with .strokeBoarder

Can someone please explain why my self made "myRectangle" that I have conformed to InsettableShape doesn't work with .strokeBorder but the built in Rectangle() does? Here is myRectangle code; struct myRectangle: InsettableShape { var…
SD449
  • 97
  • 1
  • 7
0
votes
0 answers

Pesky border around a grob inset map

I made this map and it's nearly perfect except for the inset map has this pesky white borer around it. I would like for the inset to just have the black line border of the actual panel border, but not that white background that's coming along with…
1 2 3
8 9