In the onListItemClick event, how do I derive the text of the selected
item? Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to
Ok, I still don't know why it does that, but I've found a workaround.
Add the following attribute to the control that's doing the skipping.
android:nextFocusDown=@+id/txtYourControlHere
frizzo wrote:
I have a fairly standard layout (see code below), the synopsis is
this:
RelativeLayout
I have a fairly standard layout (see code below), the synopsis is
this:
RelativeLayout
TableLayout
TableRow
EditText id=txtEntry1
TableRow
EditText id=txtEntry2
EditText id=txtEntry3
End TableLayout
Button
, frizzo rg...@vbrad.com wrote:
I have a TableLayout with a couple of TableRows. Inside a table row,
i have an EditText widget followed by a TextView widget.
How can I make sure that each widget in the row takes equal width?
--~--~-~--~~~---~--~~
You received
I am trying to allow the user to enter a price (e.g. 3.99), so a
number with a max of 2 decimal places. I am not quite sure how to
pull this off.
I've setup a KeyListener, but the OnKey event that it kicks off allows
listeners to get a chance to respond before the target view. As a
result, I
I have a TableLayout with a couple of TableRows. Inside a table row,
i have an EditText widget followed by a TextView widget.
How can I make sure that each widget in the row takes equal width?
--~--~-~--~~~---~--~~
You received this message because you are
I can't seem to find a method that does that. Is there a way to do
it?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to
I am trying to set the focus to a EditText widget, but I don't see any
way to do it. What am I missing?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send
certain conditions are met.
Thanks.
On Mar 15, 11:14 pm, Romain Guy romain...@google.com wrote:
setEnabled(false). You may want a simple TextView inside too.
On Sun, Mar 15, 2009 at 11:13 PM, frizzo rg...@vbrad.com wrote:
I can't seem to find a method that does that. Is there a way to do
would really advise you
to use setEnabled(false) as it provides a visual clue to the user that
the control cannot be edited. The same visual cue is used by all
disabled widgets and consistency is good :)
On Sun, Mar 15, 2009 at 11:23 PM, frizzo rg...@vbrad.com wrote:
Thank you. However
I have a screen, where most of the information is layed out in a table
manner, thus I use a TableLayout. However, I want to have button,
that aligns to the bottom of the screen. I've tried using
android:layout_alignParentBottom=true, but that is ignored in
TableLayout.
What options do I have?
I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and
that's all, no negative numbers or any of that. Is there a feature
that allows me to do that? I can't seem to find support for masks.
--~--~-~--~~~---~--~~
You received this message because you
That sounds so VB2
On Mar 14, 5:46 am, Mark Murphy mmur...@commonsware.com wrote:
frizzo wrote:
I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and
that's all, no negative numbers or any of that. Is there a feature
that allows me to do that? I can't seem to find support
Serializable works.
On Mar 11, 11:44 pm, frizzo rg...@vbrad.com wrote:
Can you post an example by any chance?
On Mar 11, 10:25 pm, frizzo rg...@vbrad.com wrote:
I have no idea whether it's a better choice or not. I asked the
question here as to how to do it and was given Parcelable
is
completely wasted because the transducer in the G1 cannot reproduce
it.
On Mar 3, 9:29 pm, frizzo rg...@vbrad.com wrote:
I released a simple app that plays sounds and some users are
complaining that it's not loud enough. Beyond the user actually
cranking up the volume on the side of G1
Can you post an example by any chance?
On Mar 11, 10:25 pm, frizzo rg...@vbrad.com wrote:
I have no idea whether it's a better choice or not. I asked the
question here as to how to do it and was given Parcelable as the
answer. I'll give it a try withserializable.
On Mar 11, 6:36 am
the parameters that are passed to
startActivity might have to be marshalled across virtual machines,
across processes (and across UIDs).
JBQ
On Tue, Mar 10, 2009 at 10:52 PM, frizzo rg...@vbrad.com wrote:
The system in place to pass information between the screens... I am
confused why
? If implement this using Parcelable, it might be
expensive. What I want is just pass the object reference. But I don't
know how to do it.
Do you have any idea?
frizzo wrote:
I have a class object that I want to pass from one screen to another.
So I made it inherit from Parcelable and added
added with
Intent#putExtra(String, Serializable). Is there some reason why
Parcelable is a better choice in your case?
++Steve
On Mar 11, 1:45 am, frizzo rg...@vbrad.com wrote:
I have a class object that I want to pass from one screen to another.
So I made it inherit from Parcelable
The system in place to pass information between the screens... I am
confused why the team chose to reinvent the wheel via the putExtras
methods. Instead of making the transport objects inherit from
Parcelable and the like, why not just use Java's OO strength and set
objects to Activities
This is probably an eclipse question, but here it goes. I have a
bunch of folders in the project (raw, drawable, libs, etc...) that are
mirrors of the actual file system. Is there a way to right-click on a
folder and jump to its location in the file system? Maybe a plug in
or something.
I released a simple app that plays sounds and some users are
complaining that it's not loud enough. Beyond the user actually
cranking up the volume on the side of G1, is there anything that my
application can do to make things louder?
--~--~-~--~~~---~--~~
You
Hello, C# refugee here. This might be a completely simple question,
but... In .NET land there is a handy paradigm where you dump a bunch
of objects into a ArrayListT type of collection. Then you simply
assign the collection to the List box widget and it shows each
objects .ToString() as the
Is there an example somewhere of reordering a listview? I'd like the
user to be able to drag an item from, say, position 4 to position 1 of
the list. Is this possible?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
for a fraction of a second. We use this code
all the time all over the code and it would break a lot of things if
it did block until playback completes.
I'm pretty confident that you have a bug in your code somewhere.
On Feb 13, 1:16 pm, frizzo rg...@vbrad.com wrote:
I should clarify
If I am on a line with another person and I switch to another app and
play a sound using the code below:
MediaPlayer mMediaPlayer = MediaPlayer.create(this, R.raw.mysound);
mMediaPlayer.start();
is there a way to make the sound be heard by the other person on the
call?
Is there a separate API?
How can I control the height on an individual entry in a ListView
widget? Is there a property I can set? I can't seem to find it.
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To
I figured out how to play sounds.
MediaPlayer mMediaPlayer = MediaPlayer.create(this, R.raw.mysound);
mMediaPlayer.start();
However, the .start() call blocks the application until it is done
playing. Is there a way around this?
Thanks.
--~--~-~--~~~---~--~~
Can you give me an example?
On Feb 13, 1:07 pm, Mark Murphy mmur...@commonsware.com wrote:
frizzo wrote:
How can I control the height on an individual entry in a ListView
widget? Is there a property I can set? I can't seem to find it.
Generally, that is governed by the row View itself
I should clarify. In the emulator, it does not block, but in the
actual phone it seems to.
On Feb 13, 1:11 pm, frizzo rg...@vbrad.com wrote:
I figured out how to play sounds.
MediaPlayer mMediaPlayer = MediaPlayer.create(this, R.raw.mysound);
mMediaPlayer.start();
However, the .start
Hello, I have 5 buttons. I'd like to layout the 1st 4 buttons
starting at the top and going down.
I want the last button to be docked to the bottom of the screen.
How can I pull off something like that?
--~--~-~--~~~---~--~~
You received this message because you
Never mind, figured it out - RelativeLayout.
On Feb 10, 10:08 am, frizzo rg...@vbrad.com wrote:
Hello, I have 5 buttons. I'd like to layout the 1st 4 buttons
starting at the top and going down.
I want the last button to be docked to the bottom of the screen.
How can I pull off something
Figured it out. \n
Question of inconsistency though, why does it recognize HTML
constructs for pretty much everything else, but uses \n for carriage
returns?
On Feb 9, 12:45 am, frizzo rg...@vbrad.com wrote:
I want to show some text in the AlertDialog. This text comes from
strings.xml where
I'd like to have a form, which has a label on the top, followed by a
list that takes up most of the real estate, and a button on the very
bottom. Should I inherit from the ListActivity class and somehow
finagle the 2 non-list controls onto the form, or just extend the
Activity class and add all
I want to show some text in the AlertDialog. This text comes from
strings.xml where I've defined a string. However, I am having trouble
telling the AlertDialog to respect carriage returns, that I've encoded
into the XML string via br / statements?
For instance
string name=about_cricketsbThis
How can I simulate the user moving the cell phone from vertical to
horizontal? I didn't see any options in the emulator.
Regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to
I want to hide certain things on the screen when the device is in
horizontal position. How do I hook into that event and how do I find
out the position of the device.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
How to align a widget to the bottom of the screen in a FrameLayout?
And a follow-up question. Is there a tutorial (preferably a video
one) that explains things like Layouts, property values like
wrap_content, fill_parent, center_vertical, center_horizontal, etc...
I feel like these are keys to
a couple seconds and works just fine.
On Feb 2, 9:20 am, frizzo rg...@vbrad.com wrote:
I come from a background of developing desktop applications. The time
between pressing Run and testing your app is very insignificant.
With Android, I press Run, then it takes its sweet time to bring up
I come from a background of developing desktop applications. The time
between pressing Run and testing your app is very insignificant.
With Android, I press Run, then it takes its sweet time to bring up
the emulator, then I have to press the Menu button to unlock the phone
and then 5-10 seconds
Hello, trying to get into Android, but it all seems massively
overwhelming. I've done a little bit of Java, mostly for the
BlackBerry, however, Android API is totally different from that, so I
am lost. The rest of my experience is C#. Also, Eclipse is pretty
new to me as well.
For a first
41 matches
Mail list logo