Android :: Custom Map Markers And Custom Backgrounds

Mar 1, 2010

I am trying to get the images to have transparent backgrounds so the map is not blocked by a square marker with an image in it. What image editor and what settings should I use to get this to work?

I am trying to do some custom backgrounds for buttons and the same problem comes up: I get square corners and a background that does not scale with the buttons.

I think this all part of the same problem: I am not using the right tool with the right settings to create the images. I must be misinterpreting the documentation and examples that talk about a white border around the image and a black line along the top and left side for the expandable button background.

Here's a quick way to reproduce the problem:

Follow the directions to create the MapView program as described on:
http://developer.android.com/resources/tutorials/views/hello-mapview.html

For the icon I first used the image copied from the page:

Next I edited the picture in Microsoft Paint, and cut off the little guy's antennae. I'm not cruel and no real androids were harmed in that experiment. I surrounded the new picture with a pixel thick border of white, copied from the border that was around the rest of the image, and then copied the black that was there as well in the void areas of the image, outside the border.

I saved the image as myandroid.png and copied the file to the layout folder. Pointed the activity to the new pic and ran the program.

The image was displayed with a full square background and shadow, not the android shaped image and shadow that was there when the original image was used.

Custom Button background:
Follow the directions for the Relative Layout example at:
[url]

Next, I created an image to expand as a background for the button called backbutton.png. It too is surrounded by a white border and black filled on the corners, the top and one side per documentation I found in "Android Programming Tutorials" on page 298.

The background does not expand, nor do the corners round.

I wish I could show you screenies of what I have.

How do you create the images for the custom backgrounds and the images for the custom map markers and buttons? I need to know what image editor to use and the file attributes to set, so the images expand and display with the proper void spaces in them.

Android :: Custom Map markers and custom backgrounds


HTC Incredible :: Not Able To Get Custom Backgrounds Working In Handcent With Froyo / Fix It?

Jul 30, 2010

I cannot get custom backgrounds working in Handcent with Froyo. Worked perfectly before with 2.1. Anyone else seeing this and/or have a handy fix?

View 8 Replies View Related

Android :: ListView Using Custom ArrayList Adapter - Implementing Custom Filter

Jun 18, 2010

I have seen examples implementing a custom Filter. The Android developer docs talk about implementing a Filterable interface. Does anyone have any advice and/or sample code on the best way to implement filtering in a ListView ?

View 2 Replies View Related

Android :: Pass Custom Attributes To A Custom DialogPreference

May 3, 2009

I am writing a custom preference dialog derived from DialogPreference and I want to pass some custom attributes to the dialog through the preference's XML definition. Here's my preference.xml file:

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

View 2 Replies View Related

General :: Compile Custom Kernel With Custom ROM?

Feb 21, 2014

I just went through the process of compiling a custom ROM and they used a stock kernel. I would like to incorporate a different kernel when I compile and instead of the stock. I know I could compile them separately and have them flash together but I want one zip to flash. Just would like to go through the process to learn.

what I have to do when compiling?'

View 9 Replies View Related

Android :: Get Custom Parameter From Custom Ui Tag

Sep 18, 2009

I try to implement a custom button(OnPressButton), and the code is in below. In LogCat, I can see the two parameters (btn_up/btn_down) value are below:

btn_up=@drawable/btn_up btn_down=@drawable/btn_up

But how can I convert this to point to R.drowable.btn_up and R.drowable.btn_down ?

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

View 2 Replies View Related

Android :: Style Own Styleable With A Style - Custom View Class With Custom Attribute

Jul 8, 2009

I'm creating my own View class, and defining custom xml attributes with a attrs.xml. As long as I provide each attribute manually, there is no problem, but

code:...................

The android:text is properly set in my instance, but the borderDrawable is not. I guess this has something to do with namespaces, because inside the styles.xml, the name="mypack:borderDrawable" is not handled by the XML parser's namespace facility, because its inside an attribute value. So "mypack" is in no way connected to "http://some.weird.url.com/seems/not/to/ matter" and adding it via xmlns:mypack... to the stylefile would not help, I guess. In the same file, "android:text" is somehow recognized, even though "android" is AFAIK only a ns-defintion for [url], which is also not declared in that file.

So what is the proper way to set a custom attribute in a style?

View 3 Replies View Related

Media :: Making Backgrounds Go Into Default Backgrounds Location

Jun 6, 2010

I have two questions about wallpapers on my nexus one. First off, is there anyway to take a custom image that I have and I am using and put it into the list of "default" backgrounds so that when I change it I don't have to go through that resize hassle and everything and I can have it in a more organized location. Also are there any applications or tools out there to get great looking wallpapers for the nexus one. Sometimes when using an image it doesn't look that good and the selection thing when doing it from the gallery is annoying because of the selection has to be a square yet my screen is 800x480.

View 2 Replies View Related

Android :: Run Custom App On Boot-up

Aug 31, 2010

I have written an application(.apk) which i would wish to be run on boot-up . how to implement this?

View 2 Replies View Related

Android :: Custom Tabs

Oct 11, 2010

I'm having a really hard time understanding how to use custom tabs in android. I don't want to just be able to set the text and stuff. How can I change the size, and the image, and all that.

View 1 Replies View Related

Android :: Using Custom Views In XML

Aug 16, 2010

im having a problem getting a custom view that i created on the xml layout file. i have a class named DrawingLayout which extends FrameLayout. it is found in the package Drawing

as stated on this page http://developer.android.com/guide/topics/ui/custom-components.html i used the following decleration in xml

<Drawing.DrawingLayout ... />

but whenever i run the program with that decleration i get a runtime exception error on SetContentView( ... )

is there something im not doing well? If you need any more details please tell me because i cant seem to figure this one out.

View 3 Replies View Related

Android :: Custom OS Build

Sep 15, 2010

I was wondering what the feasibility would be for creating a custom Android build and deploying it on a currently available device on the market. Are there any documents or guidelines that describe the process?

View 3 Replies View Related

Android :: Custom Spinner

Mar 9, 2010

The default drop down view of the spinner occupies the entire width of the screen. I tried to create a custom spinner which occupies only some portion of the width of the screen, but I'm unable to do. I want to see the objects behind the drop down. Here is what i tried, I changed the drop down view as,

adapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item); instead of

adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_it­em);

In the layout.simple_spinner_dropdown_item.xml file I specified the width, but it still occupies the entire width. Can any one help. Is there any other view which is similar to spinner but I should be able to see the background objects like a alert dialog. Is it really possible?

View 9 Replies View Related

Android :: Custom Xml Widget

Apr 14, 2010

I have an XML file in my layout folder that has how i want my custom widget/view (not sure what correct terminology is here).but how do i make it so that i can programatically, add one or more to an activity

View 2 Replies View Related

Android :: Using Custom Font?

Sep 6, 2010

I applied custom font to an TextView, but it doesn't seems to change the typeface.

Here is my code:-

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

View 2 Replies View Related

Android :: Trying To Use Custom Font

Sep 9, 2010

I am trying to use custom font in android. I have written java code as given below.

CODE:.........

Where I have stored the custom font in "./assets/fonts/" folder.

But, I am getting nullpointerexception on the 3rd line.

View 1 Replies View Related

Android :: Custom Scroll Bar?

Oct 7, 2010

Is there any chance of making Scroll bar like this by using existing android's Scroll view s .

View 2 Replies View Related

Android :: How To Get Custom Xml Values

Nov 17, 2010

I want to get the number of launcher:cellWidth in xml:

CODE:.........

I know that I can get it in a Custom view by:

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

But how Can I get it in a Activity? not a Custom view.

View 1 Replies View Related

Android :: Using Custom Jar Files In App?

Mar 6, 2009

I have a third-party jar file which I would like to use in my Android application. Is it possible? Or are we restricted to using only those jar files which are provided with the SDK?

View 10 Replies View Related

Android : Need Custom ANR Messages App

Oct 12, 2009

I'd like to no if there's any possibility for an application to provide a custom ANR message to be displayed to the user? This will make sure that the customer is not confused when an ANR pops up.

View 5 Replies View Related

Android : Custom Xml File In Res / Xml?

Sep 2, 2010

I've got a custom xml file in my res/xml folder, and it's not an android xml file (in that it doesn't describe a button or set of views or anything, just data for my app) and now I want to read it with an XML Pull Parser, but I don't know where to find it on the android file system. I've googled a little bit and I cannot come up with a document that shows what the android file system even is. (I'm sure it's out there). Can anyone tell me how to find the xml file? or point me to a doc that tells me how to do the same?

View 3 Replies View Related

Android :: Add Markers On Map?

Jan 18, 2010

I wanted to know how to add marker on a map? right now, i am trying to build an application that shows the persons current location, and i can follow it. but the problem is i don't have a pointer, so the changing is vague. what i want is to show the persons location with a marker(e.g some kind of bubble) and follow it.=

View 2 Replies View Related

Android :: ArrayList In Custom View?

Oct 9, 2010

I'm writing my own custom view, a keyboard, which I think the ArrayList in the keyboard view is causing the application to quit in the emulator.
public static ArrayList<HexButton> hexButtons = new ArrayList<HexButton>();

The application ran fine when I did
setContentView(myKeyboardView);

But I want to nest my keyboard with a TextView so I'd like to be able to do
setContentView(R.layout.main);

View 2 Replies View Related

Android :: Custom ArrayList Serialization

May 30, 2010

I was trying to serialize an ArrayList which contains custom objects. I'm serializing it in a Servlet (server side), and deserialize at the client side. (using ObjectOutputStream and ObjectInputStream)

It worked fine, when I work with ArrayList<String>.
But when I tried it with ArrayList<MyObject> I couldn't get any results in the client side, this is the exception:
java.lang.ClassNotFoundException: web.MyObject

Of course I have done this:
public class MyObject implements Serializable { ... }
MyObject contains only String fields.

View 1 Replies View Related

Android :: Develop A Custom Fullscreen IME

Aug 25, 2010

I try to find resources on how to develop a fullscreen IME (one that covers the whole screen size) for Android. Someone asked the same question here: http://stackoverflow.com/questions/2749964 but no response so far.

View 2 Replies View Related

Android :: Getting URL From Default To Custom Browser

Nov 2, 2010

I am developing an app in which I am making a browser type app. Now as user try to open an URL in default browser, an intent resolver is come and ask user complete action using default browser or custom browser. This part of my app is completed. Now I want to ask if I choose to open the link in my custom browser how could I access that URL link. Means as I choose my browser I got blank web view, I am unable to get that URL Link, which I have to open in my web view.

View 2 Replies View Related

Android :: How To Dismiss Custom Dialog?

May 13, 2010

I'm trying to make a custom dialog to show a view in this dialog. This is the Builder code:

//Getting the layout LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.custom_dialog_simple,(ViewGroup) findViewById(R.id.rlDialogSimple));
//Change Text and on click
TextView tvDialogSimple = (TextView) layout.findViewById(R.id.tvDialogSimple);
tvDialogSimple.setText(R.string.avisoComprobar);
Button btDialogSimple = (Button) layout.findViewById(R.id.btDialogSimple);
btDialogSimple.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
//Do some stuff
//Here I want to close the dialog
} } );

AlertDialog.Builder builder = new AlertDialog.Builder(AcPanelEditor.this);
builder.setView(layout);
AlertDialog alert = builder.create();
alert.show();

So, I want to dismiss the dialog in the onClick of btDialogSimple. How I can do it? I don't know how to call the dismiss method from inside a onclicklistener. My buttons have a custom layout, so I don't want to make a builder.setPositiveButton.

View 1 Replies View Related

Android :: Set Spinner Within Custom Dialog

Sep 9, 2010

I'm getting a NullPointerException while attempting to create a Spinner within a dialog and can't seem to debug it because the code looks solid. Wonder if anyone else has any idea. Any help is greatly appreciated.

protected Dialog onCreateDialog(int id) { Dialog dialog;
switch(id) { case DIALOG_SEND_PM: Spinner spinner = (Spinner)findViewById(R.id.pm_server);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.server_array, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
spinner.setOnItemSelectedListener(new MyOnItemSelectedListener());
dialog = new Dialog(PM.this);
dialog.setContentView(R.layout.send_pm_dialog);
dialog.setTitle(R.string.send_pm);
pmMessage = (EditText) dialog.findViewById(R.id.send_pm_box);
Button sendPm = (Button) dialog.findViewById(R.id.send_pm_button);
sendPm.setOnClickListener(PM.this);
break;
default: dialog = null;
}
I get the exception at adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
I changed the context to MyClass.this and the exception moved down to the next line, which confuses me. I'm wondering if it is the adapter having a null value but I call everything the same way I have before while not in a dialog.

Relevant XML data:
<LinearLayout> <TextView/> <LinearLayout> <TextView/>
<EditText/> <TextView/> <Spinner
android:id="@+id/pm_server"
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:background="@drawable/yblueborder"
android:textColor="#ABABAB"/>
</LinearLayout> <Button/> </LinearLayout>

View 1 Replies View Related

Android :: Setting A Custom App For Car Dock?

Nov 2, 2010

This seems like an obvious thing, but I can't find any way to do it.When I put my phone in the car dock, instead of auto-launching the official "car dock" application, I want to launch an app of my own choosing. (in this case vlingo)I can find various apps that specifically replace the car dock app, but that's not what I want, I want to use vlingo (which doesn't seem to have that option by default)Just to be clear, I don't want an app that gives me an icon I can click to launch vlingo, that would defeat the purpose as I can already click the icon on my home screen to launch it if I want.So how can I set what program launches when I drop it in the car dock?

View 5 Replies View Related

Android :: Custom Ringtones For Each Contact

Jun 13, 2010

I'd like to have a custom ringtone for some of my contacts, such as wife, office, friend, and then the default contact for the rest. I need to know how to load new ringtones and assign them to certain contacts. Do I need an app or can I do this already? I have android 2.1 on an HTC Hero.

View 3 Replies View Related







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