Android :: How Is This Floating Menu Implemented
Nov 11, 2010What is this widget called (the one with the three buttons).
View 4 RepliesWhat is this widget called (the one with the three buttons).
View 4 RepliesI want to show a menu similar in look and feel to the sub-menus. I want the menu to come up when we tap on the screen. Is it possible to have sub-menus displayed without creating the main options menu? I do not want to use context menus for this.
View 3 Replies View RelatedI have heavily edited the original text and instead of the how question I am posting the code that produces the effect I wanted, namely a floating menu on top that stays fixed as I scroll whatever is in the middle with a lower menu at the bottom of the screen. Ain't life sweet - Might even work on the iPhone as well.
Why I posted was like I said in the original question. I'm fiddling with creating the initial lay out for a "mobile" application for the disabled, have tonnes of data, dictionary files, icons for the purpose etc. I want to have the app running as HTML to make it as portable as possible, i.e. make it runnable on Android, Iphone, Maemo... whatever.
I got some hints by looking at the example at http://www.quackit.com/css/codes/css_floating_menu.cfm as well as a lot of trial and error and finally minor edits by a paid freelancer.
Below you can find some crude (to put it mildly) HTML/CSS (cut the CSS part and load a style instead in the HTML's you create for cleaner code) but for now, let's look at the prototype concept.
CODE:...........
You can see the working example on your Android device or in your Android emulator http://globability.org/webapp/aaa.html
Need to get the sound working though - but nearly there :)Links to the different web based version and thoughts behind application can be found on:
The project this application springs from can be found on [url] - Look under prototypes (it is the top one under the heading protypes).
create to get ads on my free application, ok first off I have been following this book
Beginning Android games 2011
Beginning Android Games
Now this book implements a very nice and simple game framework which I use (a simpler version can be found here.The Android Game Framework: Part I - Kilobolt
Now this framework doesn't use any type of XML file what so ever, it uses a framebuffer to draw things onto the screen. now when the application is first started, this is the first method called which is in the AndroidGame.java
[HIGH]
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
[code]...
I've been looking around in the framework source and I can get my head around some things. For instance, in the ScrollView, the animated scrolling is done by using computeScroll(). To make the screen redraw (and thus call computeScroll() again), postInvalidate() is used. Why is that one used, instead of a regular invalidate-call?
Secondly, I wonder some things about the Animation framework. I know how a ViewGroup is responsible for animating the children (modifying the Canvas and so on), but what drives the animation, i.e. what makes the screen redraw over and over again? In the case of the ScrollView, it's the call to postInvalidate() made from computeScroll(), but what is it in the case of an Animation?
I notice in the source code they are not used in critical loops, e.g. in View.java :
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
I can see this kind of code which would be much easier implemented as an ArrayList :
1867 private void addInArray(View child, int index) { 1868 View[] children = mChildren;
1869 final int count = mChildrenCount;
1870 final int size = children.length;
1871 if (index == count) { 1872 if (size == count) { 1873 mChildren = new View[size + ARRAY_CAPACITY_INCREMENT];
1874 System.arraycopy(children, 0, mChildren, 0, size);
1875 children = mChildren;
1876 } 1877 children[mChildrenCount++] = child;
1878 } else if (index < count) { 1879 if (size == count) { 1880 mChildren = new View[size + ARRAY_CAPACITY_INCREMENT];
1881 System.arraycopy(children, 0, mChildren, 0, index);
1882 System.arraycopy(children, index, mChildren, index + 1, count - index);
1883 children = mChildren; 1884 } else { 1885 System.arraycopy(children, index, children, index + 1, count - index);
1886 } 1887 children[index] = child;
1888 mChildrenCount++;
1889 } else { 1890 throw new IndexOutOfBoundsException("index=" + index + " count=" + count);
1891 } 1892 };
I mean in runtime. Sometimes I get "called unimplemented OpenGL ES API" error but it can not be catched. Is there a way to figure out what function is implemented or not, in runtime?
View 2 Replies View RelatedCan somebody point me to the right direction how the navigation overlays for My Tracks are implemented? I'm talking about the "buttons" for navigating appearing on the left and right side if you tap on the screen. Any pointers?
View 3 Replies View RelatedHow to include .jar files in android for a particular application in which KSOAP is implemented?
View 2 Replies View RelatedIs it possible to build a spreadsheet-like grid? I would like to select single cells, or one row at a time,like a database viewer.
Or would it need to be implemented at the framework level?
I'm thinking of a UI equivalent of something like this AJAX control, which may be opened in the WebView: http://www.hisdigital.com/misc/flexigrid/.
I have seen several 2DIN car headunits that has Android 2.3 supports FM Radio and Handsfree and can be controlled through the UI itself. how is it implemented?
eg: In eBay, search for item No : 130862564199
I want to add one more endpoint audio device in android and am trying to modify the setRouting() functions to support the selection of the new added audio device. As far I traced, the doRouting() in class AudioHardwareOss should perform the audio endpoint device selection. However, donRouting() just returns NO_ERROR without any other functionalities. So, my question is where and how endpoint audio device selection is achieved.
View 2 Replies View RelatedI have an application that has a tabActivity and 3 tabs. all off the tabs use a location listener and work with locations. i implement onPause and onResume for every tab to remove and start listening for location accordingly. is this the right way to go? i had another idea to work with and that was implementing a location listener to the tabActivity and doing broadcasts to the child tabs with the location, but it seemed more complicated.
The problem with my current solution is that whenever i switch tab i lose the location i got in the previous and i cant use getlastknown location because i dont want the last location on start of the application.(does this make sense?) what can i do to solve this problem. a thing that will work better will be to have one variable that will hold the last location from the onLocationChanged and i can observe its changes and call methods onChange.
Are we allowed to return 30 days from the day we ordered the phone, or 30 days from when we received the phone? (april 19th and april 28th for me). If the droid 2 is coming out with similar specs and a keyboard i think i want that.
View 10 Replies View RelatedWhen the AVD screen is in an Eclipse frame there is a button on the frame to rotate orientation. How do I cause the same action when the AVD screen is floating outside Eclipse?
View 4 Replies View RelatedHow to add a floating bar that will stay at the top of a layout page, even when a user is scrolling through the contents of that layout?
View 1 Replies View RelatedI wonder how to make floating buttons, like the zoom button in the build-in web browsee?
Actually there are 2 things i'd like to know:
1. How to make a view(button) floating above other views? 2. How to make the fade in/fade out effect regarding to touch screen?
I am a developer and recently completed the implementation of my keyboard MessagEase. It's available on the Market (with its very- different features, making it quite unlike QWERTY).
This keyboard works fine as a replacement of the standard keyboard on an Android Phone. But for a An Android Tablet, it would work best if it's implemented as a floating, movable keyboard.
(the footprint of this keyboard is mostly dependable on the size of a human's finger; it remains the same even if the tablet's display is much larger than a phone's. Therefore it'll take a relatively smaller area on a tablet.)
If I use the current SDK hooks, it will have to take a significant portion of the screen, defeating the purpose.
I've begun playing with the android NDK. One of the things I've just learnt is about creating an application.mk file to specify the armv7 abi. I'm building the san-Angeles example with the following parameters. Code...
View 1 Replies View RelatedIt's kind of hard to explain, but an example of what I'm wanting to accomplish is like this: thought about generating the layout in html and using a web view, but I need to be able to perform an action when the user clicks on the image. Does anyone have any ideas?
View 1 Replies View RelatedI want to create layout like this on facebook app. Тo appear with effect from bottom to top.I don't know where to find example (xml and code) for this.
View 2 Replies View RelatedHow can reduce the power usage in my application.
View 1 Replies View RelatedI am implementing one application gust i am adding validations in login page implemented then two fields required username and password button login i am applying validations then focus are not getting then set focus in unfilled edittext
CODE:.............
Not filling username then filling password then username entered some toast displayed fine focus are entered in username edittext this is the problem how can implemented focus in unfilled username.
i'm a bit stuck with remote services in android. thing is i implemented a remote service in package "a.b.c" and i want other applications to be able to access this service. i got rid of the whole crappy aidl-stuff and designed the "interface" of the service to work via broadcasted intents. works fine so far...
problem is: how do i get a different application (different package, different project, maybe even a different developer, ...) to start/stop the service?
CODE:..........
This will crash my app immediately on startup. what did i do wrong? how will i get this to work?
once it's running, commands and data will be passed via broadcasts. so that should be no real problem...
Has anyone implemented an Android Shake Detector that works well on most phones?I thought it would be fairly simple to implement but I keep getting false results. Basically, what I'm doing is setting up a sensor Listener, checking to make sure it is a SensorManager.SENSOR_ACCELEROMETER event, then only checking the event if the last event I received was more than 50 milliseconds ago (to try to reduce the amount of checking I do).Then I look for 3 "Shakes" within 4 seconds.A "Shake" to me being a speed reading of over 1000 followed by a speed reading of less than 400 within 1 second. If I don't get three "Shakes" within 4 seconds then the counter is reset to zero.At times it seems to work well but I continue to have instances where I just pick up the phone, and it triggers all three shakes, which makes very little sense to me because at other times, I can physically shake the phone quite hard, and not trigger all three shakes.As I said.. it works about 90% of the time correctly, but a 10% error rate is making the feature I want to implement useless.
View 5 Replies View RelatedI love Android, coming over from the Iphone i have Tmobile Pulse!
I love how Android had "Floating Apps" Apps which run on there own in the background, like facebook?
Is there anymore apps like this, which can do the same, a Gmail one would be awesome or news feed (RSS)
Also on my Android i have a big cluttered messy list off apps on one page, looks like this, comes with some games i don't want. How can i get rid of them ?
I've started developing an OpenGL ES app and I would like to get the best possible performace (as everybody, I guess).
As far as I know, HTC Magic (myTouch, G2) doesn't have floating point unit, so I think every calculation is done internally with fixed point math. That beign the case, altough I fed OpenGL with floating point vertex positions and normals, there would not be any permormace penalty since it would be using integer math instead of floating point emulation.
I have been searching about the floating point support on G1 phone (aka the HTC Dream phone) for a few hours.
So far, my conclusion is that the ARM-based Qualcomm MSM7201 CPU does not have VFP (floating point coprocessor) and therefore floating point calculations have to be done via software-float.
This is quite disappointing as I am interested in developing applications with heavy math.
However, I also notice that the Qualcomm CPU has QDSP4000â„¢ and QDSP5000â„¢ high-performance digital signal processors (DSP), according to http://www.qctconnect.com/products/msm_7201.html
Therefore, here is my question: would it be possible to leverage the DSP modules in the MSM7201 CPU to do the floating point math?
Also, I would like to develop the heavy-math modules in C/C++ and call it via JNI, and so I just want to double-check whether this is a feasible approach.
I'm currently developing a application on a HTC Dream aka T-mobile G1. afaik the processor has a FPU coprocessor, called VFP (Vector Floating Point) in ARM terms. So far I couldn't find any information about if the FPU is used for floating point calculations or if those are emulated in software. does anyone have any information about that? the opengl implementation supports both fixed point and floating point. will my applications be slower when I'm using floating point, because they get transformed into fixed point internally? or is floating point implemented in hardware?
View 5 Replies View RelatedOpenGL ES allows values to be specified in either fixed point or floating point format, but I haven't been able to find any information about how this is actually implemented on Android devices. Are there actually two different pipelines, one for fixed point and one for floating point? If so, what happens if you mix and match them, such as specifying your matrix in floating point but your vertices in fixed point? Alternatively, does it implement everything with just one format internally, and convert the other format to it as necessary? If so, then you presumably get the best performance if you always specify values in the internal format so as to avoid conversions. How then can I determine which format is used internally?
View 9 Replies View Related