Android : Layout Design - Formulated A Fairly Complex
Feb 9, 2010
I am working on a project for which I have formulated a fairly complex layout but I have no earthly idea how I could implement such a thing. Attached is an image of what I'd like it to look like, can anyone think of a way to generate such layout?
View 3 Replies
Feb 16, 2010
Im pulling a list of product objects from a database call and I want to build a ListView of the data in my activity with a non-scrolling header and footer. Each row will consist of a product thumbnail, some data and a button arranged horizontally. I understand that using the ListView I can inflate each row using a separate layout. Most of the examples Ive seen using ListView just show a simple array of strings that fill the whole view of the activity, but most real-world examples will be more complex and I can't find any good examples that explain how all these pieces fit together. Does anyone have any pointers to sample code with a good explanation ?
View 2 Replies
View Related
Jul 29, 2010
I've successfully created a countdown kitchen timer activity, however my goal is to have an activity that has 3 timers on it that all work independently. I created a separate layout just for the timer itself and moved the timer code into a class and I've used layoutinflater to create the views and then added them into the linear layout for the activity. I get the layouts fine, however there's no functionality. There doesn't seem to be anything that ties the class code to the activity. How should I approach this? Can anyone point me to some working example code?
View 2 Replies
View Related
Sep 18, 2010
I designed an app for htc desire.The background image used for the app looks good in ecipse layout, when installed in phone it is stretched.
View 2 Replies
View Related
Jan 14, 2010
I am trying to modify the design of Spinner widget. I can change the background, but I can't find a way to change the arrow icon on the right side. Is there a way to do it?
View 3 Replies
View Related
Aug 9, 2010
I understand how to create a custom Android control, and I believe I understand how to pull attributes for it from the Xml layout. I don't know, however, how to get any children elements from it. Here's a visual example of what I'm trying to accomplish: public class Menu extends LinearLayout. When my Menu is created, how do I get references to the two MenuItems. Code...
View 2 Replies
View Related
May 6, 2010
I have tried DroidDraw and the Eclipse layout editor and both seem very difficult to create anything other than very simple layouts. I find myself dropping back to the XML file to be able to manipulate it.
Has anyone found any good tools to design the actual screens? I am not looking for a mock-up tool... but an actual tool to create the XML layouts.
View 1 Replies
View Related
Aug 29, 2010
I am finding that my layouts tend to look great in one orientation but if I change the phone's orientation, things are a mess. For example on one screen I have 6 large buttons that look great in portrait orientation but if the user changes phone orientation, those buttons get cut off in portrait.
Do I need to code two layouts for every screen - one for portrait and one for landscape? That would be such a waste of time.
View 1 Replies
View Related
Oct 6, 2013
The new Samsung Tab 3 (and older Notes) do not include the bottom menu (the black bar at the bottom and instead have physical buttons for that. The Samsung Tab 2 7" has the same resolution as the Samsung Tab 3 7" but the latter has some extra pixels available since it doesn't have a menu bar at the bottom.
How should one design the layout for these tablets?
View 1 Replies
View Related
Mar 5, 2010
Anyone else noticing some strange behavior on the market lately? Most notably, I've been seeing fairly significant swings in the active install count (on the order of 3 points in a single day) which has been highly unusual for my app so far. Also downloads have been way down over the past few days. Is it possible that people don't love me as much as I think they do? Or is there another market bug similar to the one that cost me 8 percentage points in active installs last time that never got corrected?
View 3 Replies
View Related
Nov 13, 2009
I have notice that when using my droid that the top part, right above the battery gets fairly hot. Does these happen to other people or did I get a bad?
View 4 Replies
View Related
Nov 23, 2010
I am going to develop an Android Application but before developing it i needs to have MockUp for the Android Application,so is there any way to design MockUp/GUI Design tool for the Android Application?
I know about DroidDraw tool , but i think it is not the exact way to prepare Mockup for the android application.
I have already referred this SO Question , but overthere i just found all the tools for the I-Phone only. So please feel free to share with me if you have/found any !
View 3 Replies
View Related
Feb 18, 2010
Yesterday I rooted and installed the new Bugles Beast. While using the wifi tether app today, I noticed my processor getting fairly warm. Concerned, I downloaded TempMonitor. Without any overclocking at all, my processor was consistently running at around 44*C/111*F. The battery temperature hovers around 27-38*C.
Why does my phone run so hot? Should I be worried? Some people have said the processor in the droid can handle temps approaching 100*C (!!!), is this correct?
View 12 Replies
View Related
Nov 30, 2010
Lately it seems as though every time I tried to use the Market ,Slacker radio or Pandora radio I have problems staying connected to the network. Even with a fairly decent wifi signal I receive a network error message. My phone is completely stock other than Apps I have downloaded.
View 4 Replies
View Related
Mar 7, 2010
I have a TabHost that requires indicators more complex than a simple string label (the tab itself, not the contents of the tab). There is no graphics involved, just font size and layout of text. The documentation suggests I may call the setIndicator method with a View instead of a CharSequence, but do not provide any pattern to follow. This almost works -- the tabs function but are not colored properly. I can probably use OnTabChangeListener to set their background color to white or black, but clearly this is wrong also -- the orange color transitions, etc. are lost. I just want the existing label behavior on text that's laid out. What pattern should I be following here?
View 3 Replies
View Related
May 10, 2010
I made the connection between my service WCF and my app android. But i'm wondering if u have ideas about using complex types (classes created on the server side). should i implement the serialization process? or should i juts create the classes on my client side(android)
View 8 Replies
View Related
Nov 29, 2009
I need to call a web service using ksoap2, I have been doing this successfully up till the point where I need to pass a more complex type to the web service.Does anybody have an example of passing a complex type to a webservice, preferably, only using SoapObject (the object in question is only Strings and dateTimes.
View 5 Replies
View Related
Nov 6, 2010
I am working on some sort of record lookup for a database. My code allows to search for some kind of string within an index (of that database) and returns the database-position of the found thing . With this found position my program is then able to move to adjacent records from the database moving forward and backwards from the initial position in small steps. ListView seems to not work in this case, as ListView starts per default at ListAdapter position 0 and not at an arbitrary position in the (here virtual) list. The api-docs doesn't seem to specify some sort of "start somewhere else and follow during scrolling". At least I haven't found that. So what I thought of is to use a ScrollView. Unfortunately I don't have a real understanding of how that could be realized with a huge number of records (and not just a handfull like in the examples). So, my questions are: - Is it possible to start a ListView at some defined position (without reimplementing {Abs}ListView) - Or can someone provide an example on how to implement a more complex ScrollView.
View 10 Replies
View Related
May 18, 2009
I have ListActivity to show a custom list. The adapter for this list is a complex layout only known for each row at runtime depending on data gathered in a previous activity. The question I have is simple. I know it takes 4-6 seconds to prepare the adapter for the rows that will be visible (first 10), however I would like to let the user know by means of the empty list functionality or otherwise. At present the ListActivity is launched via a button on a previous activity and when that button is clicked the new activity will not be loaded until the adapter is completed, and the user is stuck with the previous activity until this happens. Code...
View 5 Replies
View Related
Aug 3, 2010
All the examples I have found assume that Spinner is given an array of String. I have a Spinner whose Adapter contains an Object more complex than a String. I want the capacity to display some parts of this object. a) during drop down b) when the item is selected. Nothing fancy, just some straight text, but I need ot whole object. If I override Adapter#getView, the View that super#getView returns is a TextView, so I could set that to be some relevant text value, but it feels kind of undocumented. I did try inflating a layout containing 2 TextViews and populating them, but UI became a bit screwed up. I'm not really sure what's ok to change here and what's not. Likewise, the above presumably applies to the drop down view, but I am also not sure how to render the selected item.
View 4 Replies
View Related
Oct 18, 2009
I am trying to pass a user defined object to another activity Bundle bundle = new Bundle(); bund.putSerializable("myData", myData); intent.putExtra("bundle", bundle); where myData class implements Serializable interface. I am getting following error: java.lang.RuntimeException: Parcelable encountered IOException writing serializable object how to pass complex objects between activities?
View 7 Replies
View Related
Oct 20, 2009
I'd like to map an Array of "complex" data to a ListView. In a very simplified form my data model would look like something like this:
Code...
View 2 Replies
View Related
Apr 28, 2010
I've made a complex layout that has the following structure:
CODE:........
Since Scrollview only supports one child, I've created a RelativeLayout to scroll several Views. Unfortunately, this doesn't work (no scrolling). Are there limitations to the kind of children used in Scrollview or am I doing anything wrong?
View 9 Replies
View Related
Jul 30, 2009
How to handle a complex type object from webservice. Presently I am able to handle simple String messages. But if I am extracting some array of objects or String, then how to handle this.
View 4 Replies
View Related
Feb 8, 2010
We want to add below update sql into our content provider:We found current update of content provider does not support it, which would not recognize the "column1" of "column1 + 1" as column name. So we have to add execSQL method into ContentProvider and I think it is dirt. So I wonder if anyone know how to do such thing with ContentProvider or any more elegant way to achieve it.
View 5 Replies
View Related
Nov 18, 2010
I am trying to extend the "android.content.Intent" class by adding a private attribute of a custom class. My goal is to send complex objects from the main Activity to a background Service.
The extension itself is not a problem, the class gets compiled without any errors and the project runs. The only problem is that the BroadcastReceiver does not receive the modified Intent and the "onReceive" method gets never called.
It there any way to pass complex objects with the help of Intents?
View 1 Replies
View Related
Nov 29, 2009
I am currently working on a collision detection routine for an Android based game which is capable of handling complex concave curves in 2D. I use complex in this post to describe any non-trivial, arbitrary shape (beyond circles, squares, etc). My problem is that all of the various methods I have come across are either too simplistic to be realistic or too complex for a cell phone. At the moment I am favoring a tile-based scheme but I am having problems figuring out how to do this with convex curves that span several tiles and may have several line segments per tile. I gave some thought to representing the curves mathematically, with each tile being an interval of the function, but there will likely be points where the curve doubles-back on itself (think the big loop at the top of a pinball table that brings the ball all the way around the table and back the direction it came). My questions boil down to:
1. Does anyone know of a way of hit testing a given simple shape (e.g. a circle) against a concave series of line segments (shapes beyond circles can be figured out from there) beyond just a Boolean result?
2. What is the best way to represent large, complex shapes programatically? I am currently favoring an XML file describing my levels and the objects in them with shape/position/physics/etc. data to be parsed in during load time.
3. Is there an altogether better way of doing this beyond line segments?
The one saving grace in this conundrum is that I know the vast majority of the objects are stationary with, at most, three or four (usually one) dynamic objects moving around.
View 3 Replies
View Related
Jun 10, 2010
I have a graphic in Adobe Illustrator (lets say a cat) that I want to use in an Android application. I would like to have the user be able to change the color of the fur using a color picker. What can I save the graphic as (SVG?) to allow me to programatically control the color from with the android app? Do I have to have a separate image for each color of the cat?
View 5 Replies
View Related
Jun 3, 2010
I'm new to opengl-es and I wonder how people are able to draw these much detailed OpenGL ES graphics, e.g. on Android OS. It's already hard to draw a single squre, because it's composed of triangles due to the reason that OpenGL ES obviously cannot draw anything else than triangles.
I thought about this approach:
Drawing and rendering an object in Blender.
Export it somehow as array of vertices and an array of colors
Copy this array of vertices into the Java code
Run the code
Or are there approaches to solve such problems in a better way? I do not think that people just "draw" their graphics as array of vertices in the code. I'm sure they draw them anywhere else and import it into the code.
If there is such a solution with Blender, I would be pleased to know how this is solved.
View 2 Replies
View Related
Apr 30, 2010
This is a bit complicated to explain (and my first post), so bear with me please: I am currently trying to figure out the best way of saving my application's state in a bundle on the onSaveInstanceState event (working on a game). My application's state is based on a "world" class which contains various objects. Among these objects there is a creature object which contains bitmaps (Bitmap object)(allowing me to draw the various sprites of the creature when it's walking with more flexibility and accessibility).
Bit of creature constructor Java:
CODE:.................
After looking around for a few hours I found that serializing the world object (and all its sub-objects) was an acceptable way of saving it in the bundle. Unfortunately it appears that we can't serialize bitmaps and considering they're a part of my "creature" I can't seem to see a workaround.
Here come my questions: 1- Am I doing something fundamentally wrong? (not supposed to save bitmaps in objects? supposed to handle bitmaps in a separate class which I don't pass on the bundle and reload my bitmaps when restoring the application? ...) 2- Is there another way of passing my "world" object into my bundle (would using Parcelable work?)
View 5 Replies
View Related