Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
to be able to provide as much information as possible to the user on the screen I put my navigation controls (next) inside a ListView.
So I got:
A
B
C
Next
As long as the list fill the whole screen everything looks fine. The user see the content and to move on he has to scroll to the end of the list.
But if the list is to short the navigation controls are in the center of the screen which looks not so nice.
How can I move the controls at the bottom of the screen inside a ListView if the content of the list is to short?
A possible workaround would be to remove the navigation controls from the ListView and put them at the end of the screen.
Thank you!
Probable use a Wrap() Widget, and as childrens the navigation part and the ListView Part.
Done this way, you shaped wrap you navigation controls in e.g. a Row.
Related
I want to make a view like image below that has a list of items to be shown as gridview.but I want it to have like 8 of them in each page and user can go next and previous page.could you help me how to do that?
My advice is to use Wrap instead of GridView and you can handle it and it can fill the pages according to the screen size.
if you are fetching datas from api and it has pagination you can manage to show list of Wrap in every pages by clicking Next or Previous.
if you had any question about my answer i'm here to make it clear.
Happy coding...
Moraghebe khodet bash ;)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
i have a gridView List and when i click on one I want it to enlarge to display more information almost like a dialog box over current content.
Something like this in the picture. Thank you in advance.
I can't paste the full code, but you might use a Stack as the simplest approach.
The easiest way, without animation, is having the GridView as the first child, and when clicking the Tile, pass the tile info, call setState()... and redraw the stack with whatever overlay u want with the selected content view.
When you get that in place, you might include Animated widgets to work on the transition.
Another options is to use Overlays, go to the bottom of this Medium article, to understand how it works, it is applied to a menu, but the same concept will work for you. Maybe this is a neater approach.
Another cool option might be the use of Hero animations, but I dont know if you can manage to use within the same BuildContext, depends on how you will build the view.
Best of luck!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have view item and shows me warning under below:
Frame for "myView" will be different at run time.
How can i resolve it ?
Your constraints are probably set correctly, since you're getting just a warning.
Go to your Storyboard an look in your Document Outline for the yellow triangle
Click on it so that it displays all Misplaced views
Make sure that Update frames is selected and click fix misplacement (you can also check the "Apply to all views in container" if you have lot of misplaced views and want to reposition it in single click)
I have a UITabBarController as my rootController with 8 UITabBarItems. and I want to show just 4 UITabBarItems in my screen. By default all my other tab bar items appear in a small tabBarItem called "More" and you can select the other 4. But I have seen some apps that implement a sliding UITabBarItems with a slide icon instead of a "More" icon.
How can I show just 4 at a moment, and I slide the TabBarItems, and so that I can select the other tab bar items ?
~ Something like this ~
And then I can slide to the next 4 sets by dragging
It would be helpful if someone could point me in the right direction.
There is a nifty little github project that could help you... check it out: https://github.com/iosdeveloper/InfiniTabBar
This is not currently a built-in option for UITabBarContoller.
One way to approach the problem is to add a UIGestureRecognizer to the tabBar.view, and programmatically adjust which 4 options are available on the screen. You can add an animation to make it smooth or have a little bounce as it slides.
iPhone users are usually very picky and attached to Apple's UI Guidelines. Although you can pass the Apple verification, you probably wont be able to pass users' (meaning bad reviews and ratings). So I recommend you to re-consider your tabbar structure and use "..." More instead of sliding it... You can always override stuff in code, but then they wont work smooth with InterfaceBuilder and in the end you will have more trouble than you'd expect.
If you have similar tab items merge them and use maybe a segmented control or something to visually distinguish them. Or use a central navigation screen in which you can put 9 maybe more icons in a grid...
The first solution to your problem may not always be the best way. Well, it is very rare actually...
You have to write a custom control for this.
I wrote one for showing a horizontal menu. You can probably modify that to fit your needs.
http://blog.mugunthkumar.com/coding/ios-control-mkhorizmenu/
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
UITableView and keyboard scrolling issue
I've got a screen which has several text fields (UITextField) for gathering information from the user which ends up taking up most of the screen. when the user selects a field the soft keyboard appears (as expected) but it covers up the fields that appear further down on the screen. In order to get to those fields the user has to close the keyboard and select them, and upon doing so, the field is covered up again and the user can't see what they're typing.
I tried wrapping the text fields in a UIScrollView, hoping that when the keyboard took up space on the screen i would be able to scroll the uppper portion of the screen down to the other text fields, but this did not work.
I'm hoping to get this scrolling behavior. Does anyone know how to do it?
-TIA
You need to adjust the height of your scroll view when the keyboard appears so that it doesn't overlap. See Managing the Keyboard in the programming guide.
There's a good answer to a similar question and some sample code here.
Basically, you register to receive the UIKeyboardWillShowNotification and the UIKeyboardWillHideNotification, then you manually scroll the view to compensate.
This is a drag and drop framework that I use in my projects as I have come across this problem a lot. It's a UIScrollView subclass and supports different auto-focus modes and a variety of other bits and bobs.
https://github.com/mackross/GTKeyboardHelper