Questions tagged [stackview]

214 questions
21
votes
5 answers

Stackview exchange or change order of views

Stackview containing array of textfield is embedded in scrollview. I want to change the order of the text fields on some actions. The way to remove and add the textfield results in distorted view. I also tested by removing from scrollview. Normal…
Ankish Jain
  • 11,305
  • 5
  • 36
  • 34
13
votes
2 answers

What does an Android StackView look like?

Can someone provide a screenshot of an Android StackView that shows a potential application of this widget? I'm not sure what to use it for.
gabor
  • 4,281
  • 8
  • 24
  • 20
13
votes
2 answers

How to implement customized stack view in android?

I have searched the internet but I couldn't find some good explanation or advice. Basically, I want to implement this functionality. on slide down I used the StackView class and all I get is this "diagonal" stack I want views to be one behind…
Want
  • 820
  • 2
  • 9
  • 20
11
votes
1 answer

RemoteViewsFactory called getViewAt when empty dataset

I'm working on widget for my application which based on StackView and should display some items. Count of items can vary due to user actions - lets say it is some kind of favorites menu. I have implemented RemoteViewsFactory descendant to generate…
Viacheslav
  • 5,443
  • 1
  • 29
  • 36
10
votes
2 answers

stackview animation - collapse of arranged subviews

I have to use stackview as parent view. I'm trying to animate stackview with 2 rows to get an effect of collapsing and inflating the bottom row. You can say that, what I'm trying to do is the same thing you get when you apply this code to normal…
dorsz
  • 905
  • 10
  • 20
7
votes
2 answers

How to hide elements in a Stack View

I have 4 separate views and I want to hide the other 3 of them when one of the buttons is pressed. I have them in a UIStackView but .isHidden = true does not hide the views for some reason. It works fine when they're not in a stack view. @IBAction…
Noah Iarrobino
  • 1,435
  • 1
  • 10
  • 31
7
votes
1 answer

Stack View constrained to margins leaves no margin

I got some problem that I'm not sure how to solve... I'm working on some lessons which are a little bit old (they are done in Swift 3), and I got a problem with constraints and margins. I'm just following the lesson and it says that for that stack…
7
votes
1 answer

iOS: Can't change a width in a horizontal stackview

I'm starting with iOS app and creating a table view. In my table I have a cell like this. Now I need to center the horizontal stackview with stars vertically and horizontally. This stackview has fixed width and height. It have to look like…
Vitalii
  • 10,091
  • 18
  • 83
  • 151
7
votes
2 answers

Why custom views in stack view are overlapping?

I'm trying to create a stack view with custom views inside. Each custom view in this example has the same information. For some reason instead of going each after each the subviews are overlapping and I can't figure out why. I don't have any…
mimic
  • 4,897
  • 7
  • 54
  • 93
6
votes
4 answers

Passing an array of integers from an AppWidget to a preexisting RemoteViewsService to be rendered by the RemoteViewsFactory

I have an AppWidget that has a StackView contained within it. Along with the AppWidget, I have a service that is started when a user adds my AppWidget to their homescreen that polls for new data every two hours. When the service finds new data, I…
6
votes
0 answers

Position UIStackView inside tableview section header

I have a tableview and I want to have a UIStackView in every section header. Now, I want to give a little padding to this stackView: in particular, I want the stackView to take the entire space except for 2px for every side. Is this possible? This…
user5273262
6
votes
1 answer

Simulate stack view in Android 2 (API 5)?

My App must have a widget that can show cards and user can turn over cards. StackWidget sample (in Android's resources) has a good widget: But there is a StackView in layout of widget and it is available since API Level 11 and I have to implement…
hasanghaforian
  • 13,858
  • 11
  • 76
  • 167
5
votes
1 answer

Android 12 BroadcastReceiver onReceive intent.getExtras allways null

I'm trying to build a stackview widget, which should display differnt data when swiping through it. So far everything is working, but when I want to receive the index of the clicked card in the widget, I always get an extra or action of 'null'. I…
aronyi
  • 73
  • 8
5
votes
1 answer

Xamarin.Forms - Label not centered

I've got a StackView which contains 2 Labels. One is normal text, and the other one is a FontAwesome Icon. Anyhow both Labels are not centered vertically inside the StackView. Here is the Code for them: The Styles:
DirtyNative
  • 2,553
  • 2
  • 33
  • 58
5
votes
3 answers

Is it necessary to use autolayout to use stackview

Is it necessary to compulsory use autolayout to just use of stackview suppose i have made whole project without autolayout, now for particular screen i have to use the Stackview to equally divide the number of label inside the view. is there is any…
Jaydeep Vyas
  • 4,411
  • 1
  • 18
  • 44
1
2 3
14 15