Today we are going to create a simple popup in android. When the user clicks on the button, a popup will appear from the bottom of the screen. So we will create XML layout first. I will make the project for all you guy can download it...
1. Create a XML file and name it like this "popup_item.xml"
1. Create a XML file and name it like this "popup_item.xml"
As you can see, we have 3 textviews, the 2nd and 3rd textview we use drawableLeft to insert an icon.
2. Create MainActivity xml like below:
3. Create your MainActivity.java like below:
4. Create our DialogMenu Class :
No comments:
Post a Comment