Android app - Show another activity in small window when pressing the button - android

I'm new developer in android ...and programming with intellij .
How i can show another activty when i pressing the button and close it when i release my finger of button ?
Similar to samsung keyboard that when we pressing the key show the larger version of that above it ?
I'm really need to know it .. thanks for your helps .

Though this is not a proper answer of your question but this may help you because it helped me.
You can use a popup window or something like this instead of activity.
Android PopupWindow with Tooltip Arrow
If you do then follow this.
"Press and hold" button on Android needs to change states (custom XML selector) using onTouchListener
Thanks

Related

How to show a pop up in Android and still be able to click on fragment

I'm trying to create a pop up that will notify the user if they got the correct answer, the user can then click the continue button to the next question. The pic below from the Duolingo app shows exactly what I want.
What class can be used to do this?
Use the PopupWindow class. It does exactly what you want. That's what has been used in the screenshot you posted above.
Here's an example: How to Implement Popup Window in Android.

Can we set the location of android keyboad? if yes how?

I am new in Android. I am creating a calling app, where I am using android keyboard. but at the bottom I want "Dial" Button which should show even after the keyboard is appear. Currently I created a screen where all working is fine but when keyboard appears the "Dial" button is get hidden. This is the scenario, please suggest me, Can we set the location of android keyboard or What else I can do.? Please suggest me how can I do this.
Thanks in advance.
The Wireframe for screen is like below image
I guess this link Might solve your problem.
Android_Dialer

How can I edit Android's application menu?

I would like to edit the application menu in Android (where all apps and widgets are displayed).
Like this:
I would like to create an app where you can select how the icons (applications) are shown in this menu. I'm not sure if it is even called "application menu" so I'm having some trouble to find some more info about this matter.
If anyone could help me find a way to override the original layout or point me in the right direction, that would be awesome!
Thanks in advance!
What you are showing in the pic, is called a Launcher.
You can create a custom Launcher. Check this question to get started.

Android Pop up window

I looked online and was not able to find a working example of the PopupWindow class. The code examples I found online either compile but do not work, or are using methods which have since been removed (such as Activity.getViewInflate()).
Is there a simple working example that displays a PopupWindow?
Any Activity can be a "popup window" it just has to show up on top of the previous activity and not take up all the screen real estate! :)
Here's an example of how this works...
How do I create a transparent Activity on Android?
Or are you just looking for an Alert that gets dismissed by being touched anywhere (rather than with an "OK" button?
May be AlertDialog can solve your problem you can full screen dialog window it just look like a window it is an alternative

How to create tabs on the button, and a setting page?

This is a bit difficult to explain, so I'll try to give a simple example to what I'd want to implement.
A. When the menu button is pressed in the Market app there are some kind of tabs on the buttom, how can I implement this ?
B.now press the settings (after you press the menu button in the Market app),
Is there a way to create this kind of a layout or I have to start from scratch (I would really appreciate code example for this if there is no 'easy' way to do this).
What you are referring to here is not a layout. This is the standard way of creating menues in Android applications.
Have a look at the following topic in the Android developer guide: http://developer.android.com/guide/topics/ui/menus.html
And regarding your second question: for settings/preferences, you can use a PreferenceScreen/PreferenceActivity. This is shown pretty well here: http://www.javacodegeeks.com/2011/01/android-quick-preferences-tutorial.html
If, by tabs you mean the buttons that pop up after clicking menu, you will have create your own options menu.
http://developer.android.com/guide/topics/ui/menus.html
EDIT: For B, check out the PreferenceScreen/PreferenceActivity, as mention in an answer to this post. Just updating here with link for convinience.
http://developer.android.com/reference/android/preference/PreferenceScreen.html
http://developer.android.com/reference/android/preference/PreferenceActivity.html

Categories

Resources