Questions tagged [stackview]
214 questions
1
vote
1 answer
Why does my device show different auto layout from the simulator?
I have a stack view which is anchored to a scrollview. I'm getting it to display exactly how I want it to look on my iPhone 6s Plus device, as show below:
However, using the exact same version, when I run it on the iPhone 6s Plus simulator, my…

user3284547
- 105
- 2
- 11
1
vote
1 answer
Childview width anchor is not working inside stackView
I am trying to have maximum 3 views inside Stackview and all child views should be centre aligned
`
for _ in array{
if(stackView.subviews.count != 3){
let image : UIImageView = UIImageView()
…

Mithran
- 301
- 1
- 3
- 15
1
vote
0 answers
Swift 3 dynamic button height depends on title length in scrollable stackview
I want to create scrollview with radiobuttons/checkbox buttons. I tried different ways working with scrollview and stackview, but here are my issues:
Problem: multiline works fine, but button frame doesn`t work
Problem: multiline title and buttons…

Patryk Karwat
- 21
- 3
1
vote
2 answers
covering stackview with a transparent button
I've a horizontal stackview with 3-subviews (a image view, a button and another button with an image) as shown below,
view
stackview
imageview
button
button
or
image|button|button
I would like to add a transparent button to this…

Atarang
- 422
- 1
- 6
- 22
1
vote
0 answers
Embedded Stackviews triggering autolayout error
I am using a series of embedded stackviews in the storyboard. I'm getting this error in the console and also noticing jittery scrolling in the table view.
"This system of layout constraints is extremely difficult to optimize, taking 1014 pivots. …

GarySabo
- 5,806
- 5
- 49
- 124
1
vote
1 answer
How to push into a StackView recursively QML?
I have a StackView and an item which I want to push every time I click a button. It works only the first time I press a button, I can understand there is an issue with parent-child relationship. But how to fix it?
main.qml
import QtQuick 2.9
import…

Bob
- 1,433
- 1
- 16
- 36
1
vote
2 answers
Hide first subview in stackview and other disappears on iOS 10.2 but not 11
Confused on this one...
I have a stackview in a tableview cell.
The stackview (Center, Equal Spacing) has two sub stackviews,
Left stackview (Fill, Fill) has a UIButton (infoButton) and UILabel (Description)
Right stackview (Fill, Fill) has just…

Evan Winograd
- 101
- 1
- 9
1
vote
0 answers
How to remove animation when show/hide a UIStackView?
Whenever the UIStackView is shown or hidden, the hiding and revealing parts are animated. Is it possible to remove animation on it altogether. Like it just appears and disappears. Thank you.
the current hierarchy looks like this ==> UITableView >…

as diu
- 1,010
- 15
- 31
1
vote
0 answers
How do I keep the constraints of my UILabels and put them in StackViews?
Notice in the image below, the 3 rows of 8's.
All three rows initially have been set to width: 45px height 45px and then the following lines of code applied to make them round:
self.wonLabel.layer.masksToBounds =…

RDowns
- 651
- 1
- 10
- 35
1
vote
1 answer
key handling in a StackView with multiple items
I have a StackView with two items in it. Both items should handle some keys.
I would assume that, if the currentItem in a StackView does not handle a key, that the key would be forwarded to the lower layers but apparently, this is not the case.
The…

Marc Van Daele
- 2,856
- 1
- 26
- 52
1
vote
0 answers
Stacking views changing size weirdly
I have set the constraints for two views correctly and the preview for different devices is good. I even used size class for changing the aspect ratio for iPads
Now when I stack these two views, the size of the resulting stack changes dramatically.…

KawaiKx
- 9,558
- 19
- 72
- 111
1
vote
0 answers
How to create Bottom Up SwipeStack in android?
I want to create a bottom up swipe stack like the image below but in swipe should be in top and bottom. I have found one library but the swipe is there left and right.
https://github.com/flschweiger/SwipeStack
The stack should have the following…

Kumar M
- 994
- 6
- 21
1
vote
1 answer
QML StackView Status.Inactive
Does QML StackView Status.Inactivestatus mean that when a view enters this state it's visibility is set to false implicitly? So I don't need to set the view's visibility to false explicitly for performance reasons?

Silex
- 2,583
- 3
- 35
- 59
1
vote
1 answer
Customize FlippableStackView
I found this library and I'm trying to customize it. What I'm trying to do is to change the swipe from left-right to right left.
This is an image of what I want.
I also found that others are trying to do the same thing, as you can read here.
I…

michoprogrammer
- 1,159
- 2
- 18
- 45
1
vote
0 answers
Android StackView - get top element from stack
I have a StackView widget in my App. Basically I created this widget using the tutorial at How to create a StackView widget and modified it a bit for my needs.
Now I want to get the top element for calling a function with this element as soon as the…

RiPr
- 11
- 5