Top items of Expandable Listview don't refresh when I make some change of them - expandablelistview

I want to use expandable listview as a main part of a fragment of my app.What I want to achieve is when I click a item of the expandable listview,the item would show something else like a image.However,it gets fine when I click the the 7th,8th,or lager than 8 item of the listview,but the image will not show if I click the top 6 item of the expandable listview. I think it would be something of expandable listview's cache,but I don't know how to fix it.

Related

Nested menu with Template 10

I want to use the Hamburger menu from Template 10 and add dynamic sections,
for example
--Mail section (header)
------Inbox
------Sent Items
--Calendar (header)
-----etc..
list of headers, for each item, there is a list of clickable items.
Is there a way to bind the primary buttons and add a template for the items?
something like that
This can be done with the latest version of Template 10. There is a new Hamburger Button type called Literal, into which you can put anything.

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.

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.

Combobox not displaying the data items

I have been trying to add Data items for my combobox in the DialogWindow of my mfc project, at design time by setting strings delimited by semi-colons for the Data property of this combobox.
But it just shows empty combobox at runtime. I tried using AddString() method of this combobox manually in the OnInitDialog() event of the DialogBox too. But that was also not working.
Tried creating a demo project again and when I added the combobox and put the value a;b in the Data property of it, it is showing up. But tried the same on my project and it is still showing the empty list in the new combobox! Tried to compare both project's code, like the header files and initialization's etc. Found that both are same. Other than some event declaration for the buttons and my custom c++ code in my project, the rest of the code is same as that of the newly created demo project!
Why in my project this combobox is showing an empty list of items? :(
EDIT:
Just noticed that the items are already in the list. But the dropdown is of small height and thus preventing the actual items from showing up! :(
Tried to look increasing the size of the combobox, but I couldn't find any property in the Property Window and dragging the corners of th combobox doesn't increases the height either! :(
Increase the size of the dropdown list like this, in the design window:
Click on the arrow on the right side of the combobox (highlighted in yellow on first pic). Then click and drag the bottom mid resize marker to increase the height (highlighted in the second pic).
This will increase the size of the dropdown list.
Otherwise when we try to click on the resize markers to increase the height, it would be disabled. So make sure you click on the arrow on the right side of the combobox first.

Android centering listview items

My problem is that i need to center verticaly items in listview. I have 3 items. I've tried to use
layout_center_vertical="true"
but it doesn't work. What do i need to do?

Resources