Questions tagged [stackview]
214 questions
2
votes
1 answer
How to stop items in Xamarin Android StackView element overlapping?
The image shows overlapping items that have been added to a StackView in a Xamarin Android app. How do I get them to display without over lapping?
The StackView element

luigivampa
- 377
- 7
- 22
2
votes
0 answers
Android remote view display images from the web?
Does any know of a tutorial or something similar to help create a Remote View wigdet like this...
I followed through the development guide on doing StackView widget. I did it but i dont know how to display images in the Stack like the example news…

coder_For_Life22
- 26,645
- 20
- 86
- 118
2
votes
1 answer
When adding labels to the stackView, instead of 5 labels, it will add 4. Swift
I need labels to appear on the screen depending on the number of objects in the symbols array, there are 5 objects in the array, and 4 labels on the screen(as in the screenshot), what is the problem? The code is attached below
class ViewController:…

Pavel
- 35
- 3
2
votes
2 answers
Swift - How to set a click event on a UIStackview
I am trying to set a click event on my UIStackview to open a viewcontroller. When I do this nothing happens. It doesn't even print the line when I tap it. I tried multiple solutions on this website, like UITapGestureRecognizer but to no avail. What…

Mashiba Sakuto
- 213
- 4
- 15
2
votes
1 answer
iOS : Why do we need to add child view controller when adding view as subview does the work?
There is a ViewController1 which has a stackView.
I created an instance of ViewController2 and added it's view as a subview to the stackView of ViewController1, I wanted to see if only by doing this does viewDidLoad of ViewController2 is invoked…

Youraj
- 747
- 6
- 8
2
votes
1 answer
How to add subviews in stackview top to bottom?
I'm adding labels to a stackview and I'm having trouble getting them to add to the top of the stackview rather than the middle.
I'm trying to accomplish this with the following code:
let textLabel = UILabel()
textLabel.textColor = .white
…

Adariel Lzinski
- 1,031
- 2
- 19
- 43
2
votes
3 answers
How to make ScrollView consume touch event even when it's scrolled to the end?
I have an FSPagerView, which has an item that contains scrollable barchart (scrollview having multiple stackviews). When I scroll barchart, if there is a scrollable space, then touch event is consumed by the barchart and it scrolls. If there is no…

Gintas_
- 4,940
- 12
- 44
- 87
2
votes
1 answer
StackView's horizontal distribution is not working
I put three vertical stack views to a horizontal stack view.
Although the distribution of the horizontal stack view is set to Equal Spacing, the second vertical stack view is aligned to left on a simulator(The first one is aligned to left and the…

Counterclockwise
- 21
- 1
2
votes
2 answers
Android 3.0: Stackview example NON widget
I'm trying to use a StackView in an Activity using a BaseAdapter for the views in the StackView. Nothing is showing up, even though my getView in the adapter is being called. Anyone have any luck getting StackView to work in an Activity? Know of an…

Christopher Perry
- 38,891
- 43
- 145
- 187
2
votes
3 answers
StackView Not Aligning To The Left Programmatically
My StackView that I am making programmatically is looking like this:
Two Subviews:
Three Subviews:
Four Subviews:
This is my code:
cameraButton.setImage(UIImage(named: "blueCamera"), for: .normal)
cameraButton.addTarget(self, action:…

Cal
- 422
- 6
- 20
2
votes
2 answers
How to use a variable UIStackView in UITableView or UICollectionView?
I'm currently building a generic form builder using a UICollectionView.
Each form element is a cell, and for checkboxes, I'm using a UIStackView inside the cell to display all the available options.
The problem is that each time I reuse the cell,…

jdanthinne
- 337
- 1
- 2
- 9
2
votes
1 answer
QT arranging Components in the StackView
We are developing QT cross platform application. Application has many functional Screens and navigations. For simplicity of handling screens we are using QT QML StackView. Each item pushed to StackView is Page. I am using following function to push…

Swapnil
- 2,409
- 4
- 26
- 48
2
votes
1 answer
How can I have textview as scrollable inside a stackview and keep it visible?
I currently have an app which displays questions and answers as text in textview objects. These textviews are wrapped in stackviews along with navigation buttons.
If I set the textview to non-scrollable (by unchecking the scrollable button) the text…

laurie
- 965
- 1
- 11
- 21
2
votes
1 answer
Stackview is hidden in reusable tableview cell after inserting cells
I have a tableview for showing some products, the products may or not have a discount, the discounts (max 2) are grouped in a stackView, so in code I hide or show the stack view if the product have a discount.
The problem comes when I insert a new…

user3407533
- 59
- 8
2
votes
0 answers
Reusable NSView from Storyboard to Add to NSStackView
I have an NSViewController defined in my storyboard that contains a view that holds various labels and a button. They are aligned using auto layout.
I want to use this as a UI prototype so that I can generate lots of these and add them to a…

Clifton Labrum
- 13,053
- 9
- 65
- 128