Hi to all
My idea was to have a CustomDialog with some Buttons and EditTexts inside. The Buttons should be used for opening a list of strings, one of which must be inserted on the corresponding EditText. (Something like a "Browse" Button for a file list, but simpler; in my case the strings are not File Names, mine was just an example of the mechanism).
The problem is that the Click event of the buttons doesn't fire. Then I searched the forum finding an example of inserting a button on a panel and copied it. It works, obviously, but in the example the panel is added directly to the Activity, while, in my case, it is added to the CustomDialog. I prepared a test project that I attach here. There are two Views: one is a Button and one is an EditText. The reason for testing two types of views is that I discovered this problem while developing my App, and, in this case, the Button click event doesn't fire, while the EditText click event, yes. Therefore I was thinking that the problem was related only to Button clicks, but, in the Test project, instead, no event fires, neither on Button nor on EditText. This adds mistery, but forget about.
NOTE: Clearly things can be made just using a Panel and adding it directly to Activity, this is not the concern, but I am wondering whether I am missing something .. as usual..
Thanks for reading. Have a nice Week End..
My idea was to have a CustomDialog with some Buttons and EditTexts inside. The Buttons should be used for opening a list of strings, one of which must be inserted on the corresponding EditText. (Something like a "Browse" Button for a file list, but simpler; in my case the strings are not File Names, mine was just an example of the mechanism).
The problem is that the Click event of the buttons doesn't fire. Then I searched the forum finding an example of inserting a button on a panel and copied it. It works, obviously, but in the example the panel is added directly to the Activity, while, in my case, it is added to the CustomDialog. I prepared a test project that I attach here. There are two Views: one is a Button and one is an EditText. The reason for testing two types of views is that I discovered this problem while developing my App, and, in this case, the Button click event doesn't fire, while the EditText click event, yes. Therefore I was thinking that the problem was related only to Button clicks, but, in the Test project, instead, no event fires, neither on Button nor on EditText. This adds mistery, but forget about.
NOTE: Clearly things can be made just using a Panel and adding it directly to Activity, this is not the concern, but I am wondering whether I am missing something .. as usual..
Thanks for reading. Have a nice Week End..