Android :: Understanding Custom Components And Multiple Resolutions

Dec 21, 2009

I had posted a similar thread a while back and received no feedback, so let me try to be more clear.I am able to use Androids components to build the most basic layouts, which include images, buttons, text areas, etc. These are like Android Lego! I can build the castle. BUT I want to design my own component, my own Lego, that draws on the screen and uses the available area that the Android components have not used. ie, I want to have a top layer of buttons, and the rest of the screen, whatever it is, I want to use to draw 2d graphics. So, I want to make my own Lego, and use it with the other Android Lego. However, I'm also trying to be a good developer and making this for whatever resolution is thrown my way. What is the best way to do this considering the deluge of different resolutions Android developers must cope with? Is there a way to do a table view and return the remaining screen size? Or, am I stuck making an entire new box of Lego here?

Android :: Understanding Custom Components and Multiple Resolutions


Android : What Steps Do I Need To Get Game Working On Multiple Resolutions?

May 5, 2010

I have a written a game that works fine on the 'normal' 320x480 screen of my G1.

I tried it on a friends Xperia x10 and it leaves a large blank section on the right hand side of the screen. How do I fix this? I've read that I need to include an extra directory in res/drawable for different densities. How do I do this?

View 1 Replies View Related

Multiple Screen Resolutions

Jun 22, 2010

i have completed my app for the 320x480 size and i don't give two cents about dpi or density, but i want this to work on the larger formats to and i have new artwork for those resolutions for my entire app. Is there an elegant way to set up my xml layouts and artwork around resolution only? In other words a "normal" screen size could be 320x480 or it could also be 400x800 or 400x856 depending on the dpi.

where it specifically applies to only small normal screens with medium density?

how to i account for the 800 vs 854 height difference when clearly xml identifiers won't tell these two apart? My app does not use a lot of relative layout components as it is very heavy on the sprites which obviously have fixed 2D dimensions

View 4 Replies View Related

Android :: Scaling ImageButtons For Multiple Resolutions In Layout XML File?

Oct 4, 2010

I have a button which I want to occupy 75% of the screen:

On a 480x800 resolution screen this would be 360 pixels wide.
On a 280x320 resolution screen this would be 210 pixels wide.

How do I go about specifying this in my layout XML file?

I understand there is a DIP unit of measurement, but does that also work to scale screen images for resolutions? What DIP measurement would I use for this, and do the images need to be saved at 160dpi.

View 2 Replies View Related

Android :: Widgets And Custom Components?

Sep 27, 2009

Are widgets currently not supporting any type of custom components? I've tried creating a very simple custom TextView component and it does not work when displaying the widget... Also, can we use the animation classes in widgets?

View 4 Replies View Related

Android :: Sharable Custom UI Components

Aug 11, 2010

I want to develop and distribute some custom UI components for android apps. This custom component can do some network communicatioon too with my server. So by this I want to hide the communication protocol from my component users, and will show the content as provided by my control eg sponsor ads. This concept is same as Apple's iAD. Issue: 1. I want to hide my custom component code from its users so that they just need to include it in their antivity rest its upto me. 2. I have not implemented but sure that a UI component can do network communication.

View 2 Replies View Related

Android :: Control Hierarchy In Custom Components

Oct 7, 2010

I'm reading the android docs on custom component development and i'm a little confused. If you're creating an activity, you can add add a hierarchy of views via setContent. however, if you're creating a custom component, you have to handle everything in the draw() overload.if i want to build a custom component that relies on a view hierarchy, is the model simply to create a hierarchy internally and then in draw call myViewHierarchy.Draw() or something?

View 1 Replies View Related

Android :: Sequence Of Method Calls While Creating Custom Components

Jul 26, 2010

I was wondering in what order the following methods - on Draw(), on Measure(), on Size Changed() - are called automatically when we create a custom component. Not sure if this question makes sense. I've just been kinda confused as to what the methods are supposed to do exactly.

View 1 Replies View Related

Android :: Multiple Custom Versions Of Same App

Aug 3, 2009

Whats the best way to deploy several customized versions of a Android application? Currently I have a script to exchange the resource folder for getting a customized version of my app. It works great, but all custom versions still have the same package name in the AndroidManifest.xml. Therefore it is not possible to install two customized versions of the app at the same time.

View 3 Replies View Related

Android :: Multiple Choice List With Custom View

Apr 16, 2010

I've seen example com.example.android.apis.view.List11 from ApiDemos. In that example, each row takes the view android.R.simple_list_item_multiple_choice. Each such view has a TextView and a CheckBox.

Now I want each view to have 2 TextView's and 1 CheckBox, somewhat similar to the List3 example. I tried creating a custom layout file row.xml like this:

CODE:...............

Then in Activity.onCreate(), I do like this:

CODE:..................

The result kind of looks like what I want, but it looks like the list doesn't know which item of it is selected. Also, I need to click exactly on the checkbox. In the List11 example, I only need to click on the item row.

So what do I need to do to make a multiple choice list with my custom view for each row?

View 2 Replies View Related

Android :: Google Navigation With Multiple Destinations / Custom Route

Aug 12, 2010

I was wondering how people navigate with multiple destinations. It seems that Google Navigation doesn't nativity support it. Ultimately, I want to take a route different than the default quickest route to avoid an intersection, and on other GPS's, I would add the detour as a way-point. If this feature isn't available, has anybody found a workaround?

View 7 Replies View Related

Android :: Multiple Custom View (Derived From Relative Layout) In One Line

Sep 15, 2010

I have created a custom view by extending Relative Layout and it looks like this: The layout for the view:

<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="wrap_content"
android:layout_height="wrap_content" android:gravity="center_horizontal">
<ImageView android:id="@+id/type_picture_preview"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/type_picture_noimage" android:layout_alignParentRight="true"
android:paddingTop="15dip" android:paddingRight="15dip" />
<ImageView android:id="@+id/type_picture_delete"
android:src="@drawable/type_picture_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true" />
</RelativeLayout>
</merge>

I am struggling to get two or more layouts on a single line.

View 2 Replies View Related

Android :: Applications And Screen Resolutions

Apr 4, 2010

Android allows for the UI of its OS to be optimized for various screen resolutions and aspect ratios. How about apps? Do they share a common link between the OS and themselves for this resolution optimization? I'm curious in terms of tablets. If you have a 800x480 screen in 16:9. The OS's UI looks great but what about those apps? Is it strictly on an app to app basis how they will be presented? Hope the question is clear.

View 4 Replies View Related

Android :: Which Phone App Resolutions To Support?

Mar 29, 2010

I see on the Android SDK pages, it mentions some screen resolutions to expect on Android platforms:

Small screen
QVGA (240x320), 2.6"-3.0" diagonal

Normal screen
WQVGA (240x400), 3.2"-3.5" diagonal
FWQVGA (240x432), 3.5"-3.8" diagonal
HVGA (320x480), 3.0"-3.5" diagonal
WVGA (480x800), 3.3"-4.0" diagonal
FWVGA (480x854), 3.5"-4.0" diagonal

Large screen
WVGA (480x800), 4.8"-5.5" diagonal
FWVGA (480x854), 5.0"-5.8" diagonal

Obviously, testing an app you want to sell on all these resolutions is going to be a pain. Is there any data on what percent of android phones being used use the above resolutions? My hope is that there's only really 3 or so popular resolutions...

View 2 Replies View Related

Android :: Scale For Different Screen Resolutions / Dimensions?

Aug 5, 2010

I have a class that extends LinearLayout and handles drawing to the screen. (it is in the early stages) How would I go about determining the dimensions of a screen and resizing the images, etc., that this class is drawing to the screen on the fly before actually drawing them to the screen?

What I'm trying to accomplish is support for devices that have varying screen dimensions and resolutions from the same code base, with each device being scaled properly.

View 7 Replies View Related

Android :: Display A Tiled Background For All Resolutions?

Sep 23, 2010

I have a texture.png which I would like to tile, to create a textured background for my window.

Will I run into any problems with different screen resolutions?

If so, what is the best way to support a textured background for multiple devices?

Should I have 1 image instead? How large should it be?

View 1 Replies View Related

HTC Incredible :: Multiple Custom Sound Notifications

May 26, 2010

So i saw you can enter root files so that you can pick wav files or mp3s as alerts. so i was curious is there a way to set different sounds for different alerts...like sms, email, facebook...etc...all having different sounds for notifications?

View 2 Replies View Related

Android :: Application For Different Versions And Resolutions / How To Create Emulator?

Oct 23, 2010

I am in middle of learning application development. I have created an application in 2.2 and tested that in my HTC Nexus One device. I looks like fine. My client testing same application setup in his device (Droid2). I don't have that device to test.

He said there are some font sizes are vary and button alignments are missing. When I testing in my device everything looks fine. So, I need to test my application in Simulator which resembles like Droid2 device. Can anyone tell me how to create emulator and setup like Droid2. And also, is there any need to adjust my code or anything in manifest file.

View 2 Replies View Related

Android :: Apps In Relation To Different Screen Sizes - Resolutions

Jun 1, 2010

I am a current iPhone 3gs user migrating over to Android this Friday and getting the Evo 4g. Now, all iPhone/iPod touch screen sizes are the same and all the hardware specs are the same for the most part, but with Android you all kinds of resolutions, screen sizes, processors, etc etc...

Are all apps made for Android stretched to accomodate bigger screen sizes? For instance, I have played with my friend's Droid on Verizon and the screen is 3.7" at a resolution of 854x480 and he has showed me games on it like Gameloft's NOVA which is a full 3D first person shooter. So his phone essentially has a bigger resolution slightly than the HTC EVO 4G but smaller screen size (3.7" vs. 4.3"). So would the same game be stretched to fit my phone?

I'm wondering with different apps, are there any conflicts in relation to different spec phones?

View 3 Replies View Related

Android : How To Display Different Images For Resolutions In HTML Resources In Droid?

Nov 15, 2010

How do you display different images for different screen resolutions (hdpi, ldpi, mdpi) in an embedded HTML resource of an Android app?

View 1 Replies View Related

HTC Desire HD :: Video Formats And Resolutions?

Nov 2, 2010

What video formats and resolutions can the desire HD use? I've put a few videos on but they don't seem to work.

View 7 Replies View Related

Android :: Sense UI - Understanding

Mar 26, 2010

I'm not fully understanding Sense UI. What makes Sense UI so relevant, or not relevant? What exactly is it?

View 2 Replies View Related

Android :: Understanding Permission Group Tag

May 14, 2009

I need some help to understand the use of permission-group tag in AndroidManifest files. Is there any need of using permission-group and what benefit offers this grouping? Is there a plus security using it? Does anyone know an example when to use it?

View 2 Replies View Related

Android :: Understanding How Activities Work

Jul 22, 2010

I'm trying to wrap my head around activities and how they begin and end in Android. I've read what the Developer Guide has to say regarding activities and I'm still a little fuzzy on how I should appropriately handle their navigation in my application. As an example, say I have a main activity that starts a secondary activity. Once the secondary activity has completed it's purpose, I want to close it and return to the main activity. I recall having read that the activity stack was just that, a stack of activities that are pushed and popped. So I assumed that calling finish on the secondary activity would return me to my existing main activity. Calling finish on the secondary activity didn't actually do anything, visibly at least. Is there further reading that anyone can recommend to me? Chris Stewart cstewart@gmail.com http://www.androidsdkforum.com

View 10 Replies View Related

Android :: Understanding Parameters Of Images?

Feb 17, 2009

I am trying the FaceDetector class using the code as shown in the following link: http://www.anddev.org/quick_and_easy_facedetector_demo-t3856.html Everything works fine as far as the activity drawing the bitmaps is concerned but I haven't had any success in getting Android to recognize a face. Has anyone tried this feature? Could anyone please help in understanding the parameters of the images to use or please post a link to some image that has worked for them?

View 2 Replies View Related

Android :: Not Understanding Activity Stack?

Dec 3, 2009

I'm having trouble with my activities when they go in the background. I have two activities, A and B. Only A can launch B (manifest copied below).This is very confusing. It's like Android knows my app is running, and puts a new instance of A on top of the old B instance running. I'd just expect that the application gets paused in-place, and whenever the user hits the app icon again, it just picks up where it left off (in this case, just show B again!) Below is the manifest, and the activity classes for this test are completely empty (except A which has a button to launch B).

View 4 Replies View Related

Android :: Understanding Content Providers ?

Mar 1, 2010

I am having trouble understanding content providers in Android. Do you use intents to call content providers as well as managed queries?

Also, an activity has an intent filter. The intent filter has a element which has a mimeType attribute. How does Android know which content provider this mimetype is referring to?
The tag in the manifest just lists an authority but not the full content_uri. Further, the content_uri is typically defined in an encapsulated class that seems to only consist of constants but no methods, so I don't see how that links over to the content provider class.

View 1 Replies View Related

General :: Creating Live Wallpaper For Latest Resolutions?

Dec 13, 2012

For a while I'm wanting to create live wallpapers, after weeks of searching and weeks of trying out various things (The LWP creator found on XDA etc) I've figured out all of them are not really working with the latest phone's, and lastest screen resolutions.

How to create live wallpapers, for the latest screen resolutions, or just compatible with all.

What I want is to create a "Gif-like" android LWP.

View 1 Replies View Related

Android :: Using Customized UI Components In XML

Oct 9, 2009

When I use customized components in XML, could I use a short name of component instead of a fully qualified class name? I wonder if some configuration file exists to do that work.

For example, my customized components is ex.object.RoundRect,

I should use it in xml file like this: <ex.object.RoundRect android:id="@+id/mainRoundRect01" ... />

But

I want to use it like this: <RoundRect android:id="@+id/mainRoundRect01" ... />

Is it possible? Is there a configuration file that can map the fully qualified class name to a short name?

View 2 Replies View Related

Android :: Rich UI Components

Apr 11, 2010

I am a newbie to android development and looking for developing rich UI based applications. But the tools like Droid Draw only support primitive UI elements. How do I bring in a better UI? Any sample or references or books would help.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved