Android :: Always Showing View Among Activities
May 21, 2009
Is there a way to have a view "always-showing" between activities? I say, I need a button to be always appearing on the bottom of the screen.
I could get it working with an ActivityGroup, but I got a problem. My application can work with more than one level of activities, or rather, Activity A can start acitivity B that can start Activity C, all them with the button showing in the bottom. When I press "Back", I need activity C to finish and the focus to go back to B, but as I'm using an ActivityGroup, it does not work.
View 6 Replies
Sep 30, 2010
I have an interesting problem and I was looking for a solution; Hoping that someone here can help me out.(I did read through related questions on this topic but they have solutions which are not relevant to my situation).I have two activities. One is a simple list view to list available audio tracks. Another is a complex audio toolbar with controls to play/pause, ffd, and reviewing the currently playing audio.The audio toolbar uses a wrapper class that wraps the Android MediaPlayer object and this wrapper class is a singleton object. Which means that I eventually wish to use the audio toolbar anywhere in my app and control the singleton instance of my MediaPlayer wrapper.For this reason, I cannot have the audio toolbar and the audio listview in the same activity since I want the toolbar to be a separate entity altogether that pops up whenever the user wants to control the music, without having to see the listview.Now, since the user would pop up the toolbar from anywhere in the app, I would love to know of a way to combine the current activity and the toolbar activity into one screen.I do know that one option available to me is dialogs. I was looking for a more elegant solution where I could have the audio toolbar pop up at the bottom of the screen the user is on, without exiting the activity he is currently doing.Anyone know of a way to do this? I didn't come across anything for this in the docs but if someone does know, even pointing me to the correct docs would be extremely useful.
View 2 Replies
View Related
Sep 1, 2012
My Background. Currently I am a .NET Developer working mainly with databases. Taking an interest in Android development by creating my first app. To understand it all, I am just trying to create a data collection application.
For example, collecting user information. My main activity will show a list of users and a button to add a new user. So, I created a new activity for the add a new user form.
I am using eclipse, with the normal AVD (ARM (armeabi-v7a)). I can successfully take the user to the add new form, no real issues with that. However, when I run the app in the AVD, I see my main activity (or the actual app) and the add new user activity as an app.
Is there some way to define the main activity for the app?
View 1 Replies
View Related
Jul 1, 2010
Is there any way to share the same object of the View across various activities? For example myApp has 4 activities, and every activity shows a Logo at the top of the screen. Now each activity will initiate 4 copies of the same Logo. So is there any way to get around this? And if 3 out of 4 share the same logo?
View 1 Replies
View Related
Nov 19, 2010
Were looking into Android for writing a tablet based system. Part of the design is for the system to be as modular as possible. One aspect of this is to display any "STATUS" activities in a side view on the screen. It looks like I can use PackageManager queryIntentActivities() to find the activities that show status information. But, can I display these in a single view all at the same time (via a linear layout)? The activities would be installed in separate apk's (features). Can this be accomplished using ActivityGroup? Is this even allowed in Android? Everything I've read implies that Activities take the whole screen or float on top. This implies only one activity can be active at a time where as the design I'm thinking of uses the activities more like widgets.
View 1 Replies
View Related
Sep 15, 2010
I want to share streams of a socket connection between the activities of a tab view. In particular the tab activity creates the socket and gets the i/o streams,so i want that tabbed activities use these streams to retrieve informations without reconnect to the server each time i switch from a tab to another. I know i can use the application class to have a global state, but i don't know how.
View 4 Replies
View Related
Feb 17, 2012
So I have my main activity. It starts out adding a custom SurfaceView called DrawView as the content view with
DrawView drawview = new DrawView(parameters);
this.setContentView(drawview);
now my layout.main.xml is a layout with a video view which I am using to play my cutscenes. I am able to switch to this view by calling a method I made which switches the content view by
this.setContentView(R.layout.main);
which works fine when I am calling this method within the Activity. Only problem is I need to call this method from within DrawView! The method I made to switch to my cutscene is public and I do pass the Activity (named Draw) as a parameter of DrawView.
So when I do call this method from within DrawView my game freezes and will subsequently crash! however it works when method is called locally?
View 3 Replies
View Related
Mar 30, 2010
My app shows a list of items, where each line is an item title with its image asides, the line reserves 70% of space for text and 30% for image. Imagine what iphone app store looks like. Which view/layout combo is recommended for this purpose? I googled and find this article
View 2 Replies
View Related
May 22, 2009
I want to show a view on calling a Service API. Currently the only way looks like using the Toast class.
I tried the following after getting the WindowManager service, but it crashes at addView. I looked into the Toast class and found that it uses WindowManagerImpl which is not accessible publicly - is there any way to access the WindowManagerImpl functionality?
CODE:.................
View 4 Replies
View Related
Aug 26, 2009
I have an application where i have a TabHost with 3 tabs.I have a ScrollView in tab2 and also another ScrollView in tab1. The problem is my ScrollView in tab2 shows up in tab1 too (the scroll bar is showing up).
My main.xml is given below. Name of tab1 scrollview : @+id/ScrollViewOuputText Name of tab2 scrollview :
CODE:................
View 2 Replies
View Related
Dec 2, 2009
I have a custom view. I am scrolling the view vertically using scrollTo (int, int). But the scrollbar is not showing when scrolling. I tried awakenScrollBars(). But its not drawing the scrollbar. I also put setVerticalScrollBarEnabled(true). Whether I am missing something here ?
View 3 Replies
View Related
Apr 27, 2009
I wonder it is possible to know whether SIP is showing to user or not. A user application(Activity) can show or hide the Soft Input through the Input Method Manager. There is some APIs to handle the SIP. But I can't find API to know status of SIP(it is on showing or hiding).
When SIP is showing to user. It disturbs the UI of the Activity. So Activity should know about the information related with upper case. How can I know that?
View 3 Replies
View Related
Jun 30, 2010
how to call BarCodeScanner, and return the value to a field.so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, obviously) but when i run my project as is, it FC's no errors reported by eclipse in code or xml. any insights?
View 2 Replies
View Related
Aug 19, 2010
Cant view peoples walls just blank white with nothing showing up.
View 6 Replies
View Related
Jun 21, 2010
I just bought a Hero yesterday and had the Sprint store transfer my contacts from my AT&T sim card. Everything seemed to work fine except when he looked in the "people" icon, nothing was there. So after a few more tries I left. When I got home, I noticed that all my sim card contacts, including my Facebook contacts, were visible when I hit the "phone" icon. My question is, how do I get my contacts in the "people" icon? I want them on the first tab "all". I was able to get one of my contacts in the "favorites" tab but it takes too long to get there. I want to hit "people" and see all my contacts right away.
View 3 Replies
View Related
Jun 7, 2010
IS anyone else having issues with Handcent? It is not showing the unread message count on the home screen (and yes the option is checked in settings)
View 13 Replies
View Related
Sep 9, 2009
I have a ListView that I'm populating from a custom ListAdapter. Inside the Adapter (in the getView(int, View, ViewGroup) method) I'm setting the background color of the View using setBackgroundColor(int). The problem is that no matter what color I set the background to it always comes out a dark grey. It might also be worth noting that I'm using the Light theme.
View 5 Replies
View Related
May 1, 2010
I'm having an issue with the album art showing up on my droid incredible half the songs show the art half of them don't. I had this memory card previously in my Droid eris and did not have this issue. Ive tried formating the sd card twice and resyncing the songs twice using 2 different programs double twist and media monkey still the same outcome. The songs are in itunes format.
View 32 Replies
View Related
Feb 15, 2010
I have a gallery widget and in that i had a view with linear layout which has a edit text inside. When it launches on device the edittext box shows but has no text visible.
However when i scroll to next view in gallery it shows text and when it comes to focus and centered the text disappears.
If i replace gallery with grid or a horizontal view I can see the text on edit text.
Can you please advise what I might be doing wrong here. Why the text disappears.
View 2 Replies
View Related
Aug 2, 2010
I am trying to set up a ViewFlipper that changes a SlidingDrawers content each time a button is pressed. So far every view I set up worked fine, but now I am trying to create a ListView (including single_choice_mode) within a child view of the ViewFlipper, but my attempt only let to a NullPointerException. As I only discovered ViewFlipper today, I am not yet familiar with it and may not have understood it completely. if someone could give me a hand and help me find out what I have done wrong, that would be great. Here is what I have done:
The code for the onClick event of the ImageButtons:
public void onClick(View v){
if (v == btnExposure){
mFlipper.setDisplayedChild(0); }
else if (v == btnProperties){
mFlipper.setDisplayedChild(1);}
else if (v == btnSpecialEffects){
mFlipper.setDisplayedChild(2);.............
View 1 Replies
View Related
Aug 17, 2010
I want to build my own custom view which should look like the Crysis-GUI.At first I designed a XML-based Layout and made it visible via the setContentView(int resid)-Method. Worked pretty well.But now I wan't to go a step further and draw in my Layout. So I created a new Class, let it extend View and overrode the onDraw()-Method. So far so good.But how can I still use my XML-Layout? I can't do setContentView anymore, so how could the same effect be achieved?
View 1 Replies
View Related
Sep 30, 2009
I have a problem with my DDMS in eclipse. In the logcat view appears only this failure: Logcat View fails with "Could not create the view: For input string: "our" "
I uninstalled and reinstalled the adt and ddms already without any change. I can use the logcat in the command line (tools- adt logcat) but this is not as comfortable as using the logcat in eclipse.
More details of this failure message are:
CODE:...............
View 2 Replies
View Related
Mar 10, 2010
So my layout looks basically like this:
<ScrollView>
<RelativeLayout>
<BunchOfViews/>
<ImageView android:layout_alignParentBottom="true"/>
</RelativeLayout>
</ScrollView>
I have the ScrollView so all of the layout always is visible no matter the height of the screen. The problem is that on a very high screen, I still want my imageview to be at the bottom. However, a child of a ScrollView dont seem to have a defined bottom. The View is placed at the top of the layout. How can I solve this problem in a neat way?
View 4 Replies
View Related
Feb 28, 2010
I like to know how can i clone a view object which is already there in the view hierarchy, so that it can be added to the same view hierarchy again.
View 1 Replies
View Related
Oct 8, 2010
I have an XML layout with some custom tabs, a heading, and a ProgressBar(main.xml). I wish to add another XML layout(home.xml) to the main.xml layout, as i wish to keep main.xml re-usable for other activity's layouts and simply add things to it as necessary.The problem: after inflating R.layout.home into rootLayout, it seems as though the ProgressBar contained in rootLayout is hidden underneath the content of home.xml.Is there a way to tell certain views(via XML) to float above other views when the layout is constructed in this way?if not, am i forced to use methods such as progressBar.bringToFront() to raise targeted views to the top?what alternatives do i have in z-ordering views when some layouts are constructed using inflation?
View 2 Replies
View Related
Aug 18, 2010
I have a WebView inside the ScrollView. The content of WebView dyanamically changes when it displays different html page. I have the following issue: For example I have A.html, and B.html. The content of B.html is larger than A.html, so the page is longer. When WebView load B.html, the ScrollView stretches its size to enable itself scroll for B.html, then if I go back to A.html, ScrollView doesn't resize itself. (The scroll area is exceed the content of A.html) What I want to have, is dynamic change the scroll area of scroll view to fit the webview's content.
View 3 Replies
View Related
Mar 16, 2010
I have a selection for some items using a spinner widget. At the moment the spinner will load a simple Textview and show the name of the item.It is possible to define an own view to show inside the spinner row? I would suspect it being similar to a custom List row.I simply want to show an individual icon left from the spinner text for each item in the list.
View 1 Replies
View Related
Feb 13, 2010
I want to have a View pop in at the bottom of the page exactly like the software keyboard view does in the compose section of the Mms app.It slides in from the bottom, as if it's being added to a vertically oriented LinearLayout, only making the ListView smaller.It becomes a part of the current layout instead of popping up over the top of it.I'd like to to this exact thing with my own custom View.
View 1 Replies
View Related
Sep 17, 2009
I have a problem statement, and here it is: My requirement is: There are a number of images shown on the screen. I want to allow the user to drag and drop any of the images to anyother image. Based on which image is dragged and on which is it dropped, I need to do something specific. So, I need to find a way so that I can get my source view and my target view.To understand this in a better way, consider a practical scenario. In the File Explorer of Windows, we can drag and drop items from the left pane showing the directory tree to any of the folders shown in the right pane.If anyone of you ever faced a similar scenario, please let me know because I could not find a direct support to such a thing (Drag and Drop) in the platform, so may be I need to find an innovative solution to it.
View 4 Replies
View Related
Sep 30, 2009
something weird is happening when i inflate a particular view and i wonder whether i'm running into some kind of namespace collision inside the resource/class space.i have a few custom views in my app and generally i park them in discrete XML files. the views are declared.
View 3 Replies
View Related