Questions tagged [childviews]

Child views are the siblings of parent View Controller.Parent View is the container to hold them and can also inherit the properties.

Child views are the siblings of parent View Controller.Parent View is the container to hold them and can also inherit the properties.

55 questions
1
vote
1 answer

ui-router child view being multiple named views or unnamed views

How to configure in ui-router a parent/children relationship where siblings coexist in parent page? I can't make child state multiple named views working. This is my parent page:parent.html:
I have two child pages: child page1 detail:…
1
vote
1 answer

Change child of iOS Container View from child interaction

I have a Container View that contains a view. I want to change this view to another, calling a method of the parent view when the user interacts with an object of this child view. How can I do this?
alessionossa
  • 932
  • 1
  • 13
  • 34
1
vote
0 answers

Android ScrollView that automatically implements linearlayout

ScrollViews can only take one child element, and this feels like an oversight to me. Looking at the way I implement layouts I see myself typically making a ScrollView with a LinearLayout child. I can see other people using a different child view…
CQM
  • 36,672
  • 69
  • 214
  • 357
1
vote
1 answer

Android Listview with different child views

In my application i need to show a list of objects. In the first row of listview contains single object, but the second row should contain two objects from list. A sample image for my requirement is attached here please go through this. if any idea…
1
vote
1 answer

Orientation change colapsing children in ExpandableListView

I have created a ExpandableListView. When I expanded it, its children are showing properly. But when I change the orientation from potrait to lanscape or vice-versa the ExpandableListView remains open but its children are not showing. After…
1
vote
1 answer

How do I force Scrollview to start from the top of the child view?

I have a simple ScrollView set up in a landscape layout. When I rotate the device from portrait to landscape mode, the UI screen scrolls down a bit and the topmost portion of the view is no longer visilble. How do I force the view to start at the…
AJW
  • 1,762
  • 3
  • 27
  • 62
1
vote
0 answers

Animate adding child views from addView() method

I'm trying to animate adding child views to a LinearLayout. Just wanted to know if there is a better way to go about this or if this approach have any drawbacks. And if this post helped don't forget to up vote :) Here is what I did: public class…
fahmy
  • 3,089
  • 26
  • 40
1
vote
0 answers

How to prevent the child from affecting parent in expandablelistview android?

Here I have expandablelistview in activity and as child I have dynamic TableView which is added into FrameLayout. When I scroll TableView vertically then it affect its parent scrollview that means whole ExpandableListview scrolled. Now I want that…
Aline
  • 41
  • 4
1
vote
1 answer

Does a CollectionView's childView have to be an ItemView?

I am trying to get a final layout like... Left Column (collectionView) PanelLayout(LayoutView) BannerView (ItemView) ContentView (LayoutView) Section1 (CompositeView) gridRow (ItemView) PanelLayout(LayoutView)…
SegFaultDev
  • 405
  • 3
  • 21
1
vote
2 answers

Swift Container control from parent view

I have two views, one is a main view, and another is a container view. What I wish to do is send a variable to the child and for it to execute my function. How do I tell the child view these two things from the parent view? A few problems I have had…
Shinerrs
  • 99
  • 1
  • 11
1
vote
1 answer

Adding a child view to the main view with button inside child view - android

I am trying to add a child view to the main view by pressing a button which is inside the child view but the code doesn't work. Any idea what the problem is. I am beginner in Android This is the main linear layout with the child linear layout in…
1
vote
2 answers

Android ExpandableListView using Holder for childViews with SeekBar. childViews are interdepending

I'm trying to realize a layout with an ExpendableListView. There are 4 Group Elements and for each Group 2 Children. The first Group Element does have 0 Children. G G C C G C C G C C Every Group Element has 2 TextViews, 1 ImageView and 1…
1
vote
1 answer

How to set a particular child of horizontal scrollView as first visible child: Android

I have 6 items/views in a horizontal scrollView, in an activity. {view1, view2, view3, view4, view5, view6} When i come to this activity, view1 is the the first visible item in the scrollview. But I would like to have view1, hidden and view2 to be…
Sunny
  • 6,720
  • 19
  • 56
  • 92
1
vote
0 answers

MVVM - pass info from MainWindow ViewModel to WinForms based child UserControl

I'm working on a WPF/MVVM application that will host a WinForms graphical control for the display of CAD-type geometry. First, a little background. Basically, I have a MainWindow with a TreeView on the left and a TabControl on the right. The…
Jeff Godfrey
  • 668
  • 8
  • 16
1
vote
1 answer

Scrolling on MFC

I'm working on an SDI app without Doc/View structure. I have spent so much time on this project, and now I would like to implement vertical & horizontal scroll bars (not mandatory, but they can be so useful). I've been searching for it, and the only…
JDV
  • 21
  • 4