last day (14 days later) » 

6:13 AM
0
Q: Activity Indicator not getting rendered in Absolute Layout

AbhiI am trying to show an Activity Indicator in my App for which I have written the following code but the indicator is not getting rendered on the screen. Can somebody please suggest what has gone wrong? private ActivityIndicator indicator = new ActivityIndicator { HorizontalOptions = LayoutOp...

 
Try this AbsoluteLayout.SetLayoutBounds(stack, new Rectangle(0f, 0f, 1f, 1f)); to the stack and AbsoluteLayout.SetLayoutBounds(indicator, new Rectangle(0.5f, 0.5f, -1f, -1f)); to the indicator. Also add AbsoluteLayout.SetLayoutFlags(stack, AbsoluteLayoutFlags.All); to the stack.
 
No, @Akash Its still not getting rendered.
 
Add the indicator after the stack. absolute.Children.Add(stack); before absolute.Children.Add(indicator);
 
Its not working...
 
Whats your indicator code? This works for me.
 
6:13 AM
I have edited the question, Please have a look at it.
 
Can you try adding VerticalOptions=LayoutOptions.CenterAndExpandto the indicator. And just to check if it is coming or not make IsRunning=true and IsVisible=true
Did you get it?
 
@AkashAmin No, it didn't worked
 
I have the same code. I have added a stacklayout first and then my activtiy indicator over it. Try removing the binding and check.
 
ahhh, Finally it worked..... :)
Thankyou so much
 
What was the problem?
 
6:28 AM
@AkashAmin I would request u to please post it as your answer, so that I can accept it.
 
What was the problem but?
All of my answers?
Other users must know the actual problem and what solved it.
 
actually the problem was that at one point the IsVisible was set to false
and I missed that line.
 
Posted
 
And by the way, Thankyou so much for your time and effort u have put in solving my problem.
 
Your welcome
 

last day (14 days later) »