I am familiar implementing ShowCaseView as helper/walkthrough, and it's working really great. Now I want to know If I can customized the showcaseview layout like adding a button on the left side of default 'OK' button. And also I want to add a 'skip all' button in case user don't want to view all showcaseviews.
Is that possible? If so, can anyone point me how? Thanks in advance. Have a nice day!
I extended ShowcaseView and added the ability to add multiple buttons and customize them as needed. The code is here: https://github.com/vabh/ShowcaseView
So, you can add the extra buttons and position them as you want.
Related
I'm try to customize my app popup menu adding separators and icons.
Basically I would like to obtain a menu like this (from Google Photos app):
How can I achieve this?
Thank you all in advance :)
I dont think there is a straightforward way to add separators and icons to popup menu.
I suppose, you have to use PopupWindow. Using PopupWindow, you have to design the layout. So you can design it the way you want, like having icons and separators. But the catch here is, you have to position the PopupWindow using x,y and gravity parameters, and also the fade-in animation.
https://developer.android.com/reference/android/widget/PopupWindow.html
you can use multiple row in listview to obtain the design,
look at this example: http://www.survivingwithandroid.com/2014/08/android-listview-with-multiple-row.html
I would like to know if there is a way to add a button, or any element below the text of an ExpantableTextView. I'm using this library and I want it to look like this:
I think you'd chosen wrong library. You choseExpandableTextView and now you're asking for help, because you cannot add a button to this View.
Try to search for ExpandableLayout library. Maybe this you would find useful - please check: https://github.com/traex/ExpandableLayout
For more similar libraries, check: http://android-arsenal.com/search?q=expandable
Hope it help
In one line Yes, it can be done in this way.
Two approach:
Modifying the existing library to fulfill your need. For this you should have knowledge of building custom view.
This is just a work around to get the desire result. Put a Button with visibility set to as invisible and place it just below your expandableTextView. Now on click of your expandableTextView just set the visibility of your Button to visible
I hope you would be able to achieve what you want.
i am working on demo application.
have you any idea about popup menu in Android 2.1 version. actually working fine in android api level 11 and above..
reference url : http://www.sitepoint.com/build-intuitive-extensible-menus-in-android-with-java-and-xml-2/
yes, you can do this. you just need a little bit of Animation and its done. :) It will give the exact feeling like a pop-up menu. I have done this before.
you need to use Relative layout for this purpose, because they can overlap on each other.
On click event of button, you need to show the View (relative layout holding a custom menu in this case) with an animation say bounce animation. again click on same button will hide the view again with an animation.
I wish I could post the code here but I have to search where I put my project. :P ;)
I hope it will give a little idea about a totally customized pop-up menu.
I am in the process of replacing the Android Popup Menu with a Solid bar containing the buttons at the top of the screen. Now diffident activities contain the same buttons , plus to enhance the user experience we are keeping the Menu Bar with the button. Now i want to make this generic enough. Does anyone know of any good UI Patterns that will help me achieve this. I dont want to copy and paste my layouts xml code, plus the onClick listeners have the same code across the activities. Any help will be appreciated.
Kind Regards,
Mateen.
Use the ActionBar and the Compatibility Package.
I want to implement in my android application a functionality like when a user clicks a button in header a small list view is popup having 5 values in the corner of the screen. Please give some suggestion, its urgent. Thanks in advance.
You mean a quick action menu ? Like this ?
If so, check this :
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
It depends somewhat on the minimum SDK that you are targeting. If you are able to write your application with a minimum target of Android 3.0 (API Level 11), then there are at least two classes that you can use to accomplish creating a simple popup anchored to another view (in this case, your button):
ListPopupWindow
PopupMenu
Otherwise, you will need to do a little customization of PopupWindow, which is the class that many early QuickAction implementations are based on.
HTH
Design a listview inside it RelativeLayout view in that same layout and make it as invisible. once you click a button at the header you can make it visible. which shows the listview.
You can create a new Activity for popup and add android:theme="#android:style/Theme.Translucent.NoTitleBar" to Activity node in Manifest file.