Gap beneath UINavigationController toolbar when in UITabBarController - layout

I Have a UINavigationController inside of a UITabBarController. I have the tabbar on my UITabBarController hidden. When I show the bottom toolbar of my UINavigationController, it doesn't appear on the bottom of the screen. Instead there is a 49 point gap beneath it. If I don't put the NavigationController inside of a TabBarController, there is no issue, but I need to put it inside of a TabBar.

Related

How to make recyclerview width larger than the layout width?

I want to make the width of a recyclerView wider than the width of the layout itself so that only a part of the items of the recyclerView could be seen until the user scroll to the left.
I think an image can explain it better:
Each item of the recyclerView have 5 textViews like this:
And I want to see only 4 of them until the user scrolls to the left like this:
After scrolling, the first textView shouldn't be seen until the user scrolls to the right.
How can I accomplish that? Should I change the item layout to be larger than the screen or the recyclerView?
You must be looking for something like this.
Embed the RecyclerView (nestedScrollingEnabled=false) inside a Horizontal Scrollview
List item for Recyclerview should have the width set to wrap_content
You can checkout this project on Github

Keyboard hides edittext and spinner in expandable list view child view

I am working on ExpandableListView for the first time and facing a problem, I have an expandable list view with a single child in each group, the child view has an imageview, three textviews, one editText below the textviews, a spinner below edit text and two buttons after spinner.
My problem is that when i click on edittext, which is actually having the request focus already given in xml, the keyboard moves my childview upwards which is absolutely fine, so that i can enter values in editbox, after clicking on button below the spinner, keyboard comes down which is good, but on clicking the editbox for the second time, the keyboard covers the edit text, spinner and the buttons, and I am not able to enter values in the editbox.
I have tried adjustPan in manifest, not working for me, i have tried scrollTo() for expandable listview to scroll the list when i click edittext, still not working.
Any help is appreciated.

Xcode 6.1 6A1052d Text View disappear after expand label or button size

Drag label or button into storyboard
Drag Text View to storyboard.
Try to expand width or height for label or button with mouse drag the corners, the Text View will disappear in Storyboard view controller.

Menus with multiple item-columns javaFX 8

My goals is to create a menu with multiple columns. I went about this by using GridPane, to which I added Labels. Then I inserted the GridPane in a PopOver. I also added action listeners to Labels So when the users click on a cell, I can do a certain action. My current implementation is based on a button. Once clicked, the PopOver will show up.
As an example, font names:
Is there a way to have this in a menu?
I tried making the MyGridPane class that extends MenuItem. It allows me to add the GridPane to the menu, but it only comes in as an ObjectID. If I want it visually, the only way I found was to
menuItem.setGraphic()
But this make the whole GridPane one item. The cells and their action listeners get ignored.
Is there a way to add a grid pane as a menu item?
Is there a way to add a grid pane as a menu item?
Yes, you can try as
CustomMenuItem menuItem = new CustomMenuItem(gridPane);
menuItem.setHideOnClick(false);
To visually disable the highlight color for that menu/menuitem, customize the related CSS selectors of menu/menuitem.

Add fixed positioned Combobox inside FlowPane

I have a FlowPane which will hold many panels which are based on BorderPane.
I want to create ComboBox which will be used to filter the Panels by type. And the panels will be scrolled by ScrollPanewhen they exceed the visible area.
I want the combo box to scroll along with the FlowPane inside the ScrollPane. I want to get the result which is displayed into the picture. Can you tell me how I can get the desired result. I can very easy create BorderPanes and insert them into the FlowPane and the challenge is how to position the Combo Box and keep it always at this position.
Why don't you simply use another border pane?
Add your combobox to the top ( or additional flow pane with combobox on
it)
Add your Flowpane to the Center
Then scroll the whole border pane using the scrollpane?
What could be simpler?
Here's how you'd do it:
StackPane with 2 layers:
layer1: your ComboBox panel.
layer2: your ScrollPane with your FlowPane inside*.
*The trick is: just make your combobox panel background opaque, and some initial top inset on the flowpane so that it starts at the right place.

Resources