[android-developers] Button OnGestureListener

2009-05-19 Thread xspotlivin
Can a button implement an OnGestureListener? I have an application that has some scrolling, but some of the screens have buttons on them. When I click and drag on a button, it doesn't scroll. I want to make it so you can touch anywhere and scroll, but a button will only be clicked when you click

[android-developers] HTTP Post

2009-04-19 Thread xspotlivin
I'm trying to do an HTTP Post, but I'm having a lot of trouble. I have a server running on my computer. I know the URL needs to be my IP address and port number. How do you create a URL object out of an IP address and port number? I also have some headers and such that I need to put on the post

[android-developers] Check if a View contains another View

2009-04-18 Thread xspotlivin
Is there a way to check if a view contains another certain view? I have an AbsoluteLayout view that I add multiple views to (buttons). I have a certain button, let's call it reportButton, and I want to check to see if its already within my AbsoluteLayout view. Is there like an

[android-developers] Re: Button in Custom View

2009-04-07 Thread xspotlivin
via setContentView() as the root and the later uses this View as the root. In other words, in order for ... findViewById(R.id.checkbox); ... to return a non-null View the button must be a child of your view. On Apr 5, 4:24 pm, xspotlivin dmbrown2...@gmail.com wrote: I'm trying to create

[android-developers] javax.xml.transform

2009-04-05 Thread xspotlivin
I need to use the transform package (transformer, transformfactory, etc.) so that I can convert an xml node to a new document. However, when I try to import the package, it says that it cannot be resolved. Are you not allowed to use this package on Android? Below is the code subset of how I want

[android-developers] Re: javax.xml.transform

2009-04-05 Thread xspotlivin
Ok. Well do you have any ideas or advice on how I can solve this problem? On Apr 5, 5:27 pm, Romain Guy romain...@google.com wrote: Android does not provide the javax.xml.transform package. On Sun, Apr 5, 2009 at 2:23 PM, xspotlivin dmbrown2...@gmail.com wrote: I need to use

[android-developers] Button in Custom View

2009-04-05 Thread xspotlivin
I'm trying to create a button in a custom view that I've created. I'm looping through an XML document and drawing certain things. I want to be able to also create buttons to go in certain locations depending on the xml data. I'd like to do it in the view because I want to be able to call

[android-developers] Re: javax.xml.transform

2009-04-05 Thread xspotlivin
I'm using xml, and after creating a document out of it, I'd like to create a new document out of some particular node (with all its children). Below XML is the larger document, and I want to make a new document from the node intervals. This is how I did it with the transform package: Node

[android-developers] Re: javax.xml.transform

2009-04-05 Thread xspotlivin
I solved it. I was trying to do way to much work. Simple solution: Java: Node adherenceIntervals = reportXML.getFirstChild().getFirstChild(); Element adherenceIntervalsElement = (Element) adherenceIntervals; NodeList medicationNodes = adherenceIntervalsElement.getElementsByTagName(Medication);

[android-developers] Re: javax.xml.transform

2009-04-05 Thread xspotlivin
Actually, this does not work when I ran the code on the emulator. It worked in a separate testing program I have. Back to step 1. On Apr 5, 8:08 pm, xspotlivin dmbrown2...@gmail.com wrote: I solved it. I was trying to do way to much work. Simple solution: Java: Node adherenceIntervals

[android-developers] Re: Make a button from an image (PNG)

2009-03-10 Thread xspotlivin
Can you layer different views and/or layouts on top of each other? I thought maybe I could use a ViewGroup with an absolute layout for the buttons and my custom ClockView. Can you put the absolute layout with a transparent background on top of the ClockView? On Mar 9, 11:14 pm, xspotlivin

[android-developers] Re: Make a button from an image (PNG)

2009-03-09 Thread xspotlivin
     Button android:layout_width=wrap_content           android:layout_height=wrap_content android:text=Hello           android:background=@drawable/u_r_png /   /LinearLayout On Mon, Mar 9, 2009 at 9:33 AM, xspotlivin dmbrown2...@gmail.com wrote: I'd like to know how to make a button out

[android-developers] Make a button from an image (PNG)

2009-03-08 Thread xspotlivin
I'd like to know how to make a button out of a PNG and display it on my canvas (using drawBitmap?). When I click on this button, it will take me to a new activity. All this will be in the onClickListener. So, how do I take a PNG, make a button with it, and draw it on my canvas? I looked at

[android-developers] Rotate PNG (Bitmap) around a set pivot

2009-03-03 Thread xspotlivin
I'm creating an application that includes a clock. I will only have an hour hand, which will be a PNG file rotating around a pivot. I want to update its angle every 4 mins (1 degree on a 24-hour clock). Does anyone have an idea of how to rotate an image around a specific point? Thanks for your

[android-developers] Re: Problem with Canvas drawArc

2009-02-28 Thread xspotlivin
to the RectF constructor are supposed to be left, top, right, bottom, and you seem to be specifying left, top, width, height instead. On Thu, Feb 26, 2009 at 11:48 AM, xspotlivin dmbrown2...@gmail.com wrote: I'm trying to create a customized clock that will highlight certain intervals that I choose

[android-developers] Problem with Canvas drawArc

2009-02-26 Thread xspotlivin
I'm trying to create a customized clock that given certain input will highlight a certain section of the clock (e.g. draw pie shapes highlights on top of the clock). Here's my problem: I'm trying to use drawArc in the Canvas class. I am able to draw 360 degree arcs, but nothing shows up when I

[android-developers] Problem with Canvas drawArc

2009-02-26 Thread xspotlivin
I'm trying to create a customized clock that will highlight certain intervals that I choose (like a pie slice). I'm trying to use the drawArc command for the Canvas class. However, it will only draw arcs of 360 degrees or more (full circles). I'd like to draw arcs of about 15 to 20 degrees or so.