Xamarin :: Drag and Drop works only once - android-layout

I'm new to Xamarin and I'm following this tutorial.
At minute 4:25 he easily drag and drop in the order:
a TextView
a Button
a Button
I can only drag and drop the TextView and then there's nothing else I can drop in.
What am I doing wrong?

Because you used RelativeLayout, If you change the LinearLayout and set android:orientation="vertical" for your LinearLayout, you can drop many times.

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.

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.

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

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.

How To highlight imageview using button click event in android

I m new to android Development
i have to place 3 button on screen and below that 3 image will be place below that..when i click on any button ,particular image should be highlight.
can anyone tell me how to start..i only want suggestion from where to start...
You can replace the image with a highlighted variation in the on click event.

Resources