icondialoglib | Material icon picker dialog for Android | Android library
kandi X-RAY | icondialoglib Summary
kandi X-RAY | icondialoglib Summary
Material icon picker dialog for Android
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of icondialoglib
icondialoglib Key Features
icondialoglib Examples and Code Snippets
Community Discussions
Trending Discussions on icondialoglib
QUESTION
I am trying to add a custom field to IconDialog (https://github.com/maltaisn/icondialoglib)
I added a new EditText into the xml and I am trying to access it in my activity onIconDialogIconsSelected (which is a Callback when the Select button of this dialog is pressed).
The editText.getText() is always empty but I can see it when debugging in the view.
The new class:
...ANSWER
Answered 2019-Nov-04 at 23:08The problem here is that you are not actually accessing the view on display. You inflated a new View
on a null parent ViewGroup
in this line View v = getLayoutInflater().inflate(R.layout.icd_dialog_icon, null);
. Although view has been created it is not tied to anything UI wise.
The other problem is that in IconDialog
you already set the content of the dialog to the view dialog.setContentView(view);
that you inflated there.
A simple solution would be to allow the children of IconDialog
to change its base layout.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install icondialoglib
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page