In an App I am working on, I have a custom View. In this View, I want to show the standard copy/paste action bar (see figure) when the user long presses. I've researched a bit and I know that you can get an action bar to show by using getActionBar() if your class extends Activity. However, the class in which I implement onLongPress() is a custom Gesture Listener inside a View. So, my two questions are:
- How do I get an action bar to show from inside my
onLongPress()method? - How do I get the stanard copy/paste action bar?
0 comments:
Post a Comment