Questions tagged [stackview]

214 questions
0
votes
1 answer

Trouble with Swift, Auto Layout, and stack views

I’ve been working on an app with a grid of buttons. The grid consists of 4 buttons per row, and (currently) 6 rows. In the storyboard, each row of buttons is in a horizontal stack view, and all 6 stack views are in a vertical stack view. I don’t…
DJR
  • 1
  • 2
0
votes
1 answer

iOS Stackview inside ScrollView with preserve image aspect ratio

I'm having a problem with scrollable content. Basically, I want to place one ImageView and one Label on the screen with ImageView width equals screen width. height depends on intrinsic content aspect ratio (while width is always equal screen…
Lê Khánh Vinh
  • 2,591
  • 5
  • 31
  • 77
0
votes
0 answers

StackView Widget not showing

I have watched and read many tutorials but none of them have a StackView with an image in them. At the moment my widget gets the background color but it doesn't display anything! This is when i run the emulator! Here are the activities with code: As…
Felipe Franco
  • 171
  • 3
  • 15
0
votes
1 answer

qml stackview: reload top of the stack

Is there a way to reload the item at the top of the stack after a pop operation. Is it always loaded from memory or can I force the page to initialize again.
HighonH
  • 169
  • 3
  • 16
0
votes
1 answer

NativeScript display images in dynamic grid

I'm trying to find a way to display 6 images in two columns and 3 rows. With for columns and images should be 50%. Here is my code and it does not "overflow" second and third row.
Maka
  • 371
  • 3
  • 14
0
votes
1 answer

StackView in Android 3.0 HoneyComb

Can any one provide any example of StackView in Android 3.0 HoneyComb , it wll be a gr8 help for me .. thnxxx....
John
  • 1
  • 1
0
votes
1 answer

QtQuick lower() and raise() does not work while close() works properly

I have 5 windows which i push and pop via a stackview. In the emulator the new window called by push gets on top as it should. However on my android it spawns behind the starting window. I tried using lower() to set the starting window behind the…
Gluxable
  • 75
  • 9
0
votes
0 answers

UIButton animates up the screen but stops working - SWIFT

I'm relatively new to iOS development and I'm currently working on the signup/login screen for my app. I want one of the buttons to animate up once it's clicked, change its function and in this way, have a button 'get a new role' once it's clicked.…
CVE
  • 151
  • 2
  • 12
0
votes
1 answer

Having troubles with Auto layout - why do I get errors for adding a label under a stack view?

I am currently working through the 'App development with swift' book and am trying to do the 'Apple pie' project. I have been following directions and after doing (What I think) are the same things the book tells me to do, I am getting errors. So…
serp002
  • 5
  • 3
0
votes
1 answer

Component is not ready Cannot assign object to property

I have a c++ class that inherited from QObject with name LoginManager (that I registerd this with qmlRegisterTypes) in main.qml file LoginManager{ id: loginManager } now I want to add a LoginPage.qml file to a …
mohsen
  • 1,763
  • 3
  • 17
  • 55
0
votes
1 answer

Creating a stack view in Android

I am working on stack view and need something like this. I need a vertical stackview which shows the pages name below as shown in the picture, I have no idea about how stack view works and how it functions. Is an example available?
Siddhesh Pawar
  • 259
  • 4
  • 24
0
votes
1 answer

iOS how to set Stack-view width Dynamically According to Label Content size Height & Width

How can I set stackView's width according to label's content width?
Pratik Panchal
  • 339
  • 5
  • 13
0
votes
2 answers

Replacing Double StackView with Single StackView on Ipad?

I have a storyboard in which there is a separate view controller for a UIView. In that UIView I have to load 10 buttons in a single row in the case of IPad else I have to load 10 buttons in two rows. I have tried using 2 separate xib files and…
Vishnu M Menon
  • 1,459
  • 2
  • 19
  • 34
0
votes
2 answers

Xamarin iOS. Can I use collection view inside of stackView control (as item of stackview)?

I have simple application which contains UICollectionViewController with custom UICollectionViewCell. The controller is placed in Mainstoryboard (I use native xamarin). My application works, but I want to add a common 'header' control above of my…
Unnamed
  • 111
  • 8
0
votes
2 answers

Adding a button to an image view present in a stack view

I am trying to add a button to an image view which lies in a stack view. But whenever I try to add the button after adding the image view, the stack view gets divided into two parts, one housing the button and the other housing the image view. I…