I have to add a "info" button in my appliation of image retouching, so typically it's just a "i" logo in the menu bar, and when you click on it a list of severals values is showed on the entire screen with a back button at top-left.
I just want to know what is the best practice to do this. For me because it's a new screen I must use a new Activity. And not a Fragment because I want to have the same behavior on tablet. However may be it's better to do a fragment if in the futur I want to develop the informations on the half of the screen for tablets. But may be it's better to just switch content of the layout or setVisible() a part of it ?
Thanks in advance
Related
I do not find on Internet, what is the name of this button ?
And I want to know what is the exact action when an application is deleted like this :
With this action, the application is not really stopped
The Third Image means Square is called Overview button(Recent Button). When Click on That Button the list of application is display which you are work on it. and you can simply remove app from the list by slide app Right to Left.
For more detail visit this : https://android.stackexchange.com/questions/32697/what-is-the-offical-name-of-the-third-on-screen-button
I need help finding an approach to build a certain kind of menu for an app.
Let's say I have a menu activity and 2 other activities. My menu activity consists of 2 options.
I want to drag the "buttons" (not sure if button is the correct name in this case) sideways and while dragging, the other activity's screen starts appearing from the side.
The thing is, depending on which button I'm dragging, different screens should appear, and I couldn't find anything similar to read about.
Does anybody recommend some topic to read that could help?
How can I manage the activities in this case?
I am working on a simple application that is supposed to work on 800x480 tablet. Currently:
[][][][]
[][][][]
OOO
These are all buttons and they are working as expected. I, however, need to add menu items to the bottom-buttons. When clicked, menu items should pop up.
-Can I create a menu and place it at the bottom of the screen to replace those buttons? If so, could you show an example, cause I couldn't find any.
-Or, can I add menu items to these buttons?
What You want is an OptionsMenu, if I understand You the right way. I could give You an example later, I am not at home. But for now, look at this example. If You follow this, You donĀ“t need those buttons at the bottom.
http://www.edumobile.org/android/android-beginner-tutorials/options-menu/
if it is not clear, just let me know and I try to give You an example at the evening...
EDIT
for custom menu, You could use PopUpMenu. I had not tried this for now, but I think it is a good solution
http://android-er.blogspot.de/2012/03/example-of-using-popupmenu.html
I would like to create a screen similar to the settings screen on the android tablet. The screen is split in two with a list on the right. When a item is selected on the right the details are shown on the left. I also want to have similar graphics in terms of the littel arrow that shows which item has been selected. Can anyone point me in the right direction?
It is call Fragment Activity you can use this for same as settings layout in tablet.
For more information plz do search about Fragment Activity
Here is Best Link
Is it possible to make WebView (or any view that can parse / display html) a "floating" window on top of the main layout?
Basically I have a list of links displayed in a listView. When the user select one of the link, i'd like to load and display the results in a floating panel (sorta like a context menu, but takes almost the entire screen and scrollable) with, say a close button on the top right corner. So when the user is done viewing the content, he/she can simply click the close button to return to the previous list page.
Is this possible? or I should start a new activity that loads a separate layout for the content, with some tracking mechanism to go back the list page.
Thanks much.
What I did for the help section of my application was to create a new Activity which just contains a WebView with the Theme.Dialog set in the AndroidManifest.xml:
<activity android:name=".HelpActivity" android:theme="#android:style/Theme.Dialog"/>
This way the WebView is launched as a 'floating dialog' on top of the current screen.
Not sure if this is exactly what you want, but it's a very simple and efficient way to accomplish what I needed to do.