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
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
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
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
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
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
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
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
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);
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
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
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
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
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
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
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
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.
17 matches
Mail list logo