AbsoluteLayout is deprecated. If you're using this ViewGroup, then
you're probably 'doing it wrong'. Android UI programming avoids
absolute placement values for components because there are so may
different screen types (resolutions, densities etc).
On Feb 29, 5:27 am, android developer
Hello
Are you using the ViewHolder pattern to recycle Views?
On Feb 13, 9:48 am, Olof Hedman o...@illusionlabs.se wrote:
I have implemented a couple of different adapters in my application.
No matter which base class I use, I get very weird behavior in how the
list calls it to create and
Also, are you calling notifyDatasetChanged() frequently?
On Feb 14, 9:10 am, jamesc jame...@gmail.com wrote:
Hello
Are you using the ViewHolder pattern to recycle Views?
On Feb 13, 9:48 am, Olof Hedman o...@illusionlabs.se wrote:
I have implemented a couple of different adapters
No. This is a feature of the input method.
See:
http://developer.android.com/reference/android/inputmethodservice/KeyboardView.html#attr_android:keyPreviewLayout
Why should you change how a user has configured their IME?
Just because it's a secure text box, doesn't mean that a user
shouldn't
Create a new selector (see
http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)
for the item, and then configuring the colour/background values
depending on state. By state, I mean, your item could be
'Checkable' (i.e. only a single item in the whole GridView can
You should do something like:
public void onCreate() {
addPreferencesFromResource(R.xml.prefs);
CheckBoxPreference pref = (CheckBoxPreference)
findPreference(blargh);
if(pref != null) {
pref.setChecked(true);
}
}
On Aug 23, 11:24 pm, b0b pujos.mich...@gmail.com wrote:
I have a
On Aug 18, 8:23 am, Jeremy Lakeman jer...@servalproject.org wrote:
I'm thinking of doing something similar, where the main application can
download and install additional apk's directly from our web site. But I
haven't got around to experimenting with it yet.
Won't the user device need to have
Add stateHidden to the activity's manifest entry under
windowSoftInputMode.
On Jul 4, 9:35 pm, fr4gus fggar...@gmail.com wrote:
I'm able to replicate a unusual issue with EditText. But it doesn't
happen on all devices.
Let's say you have the following layout:
?xml version=1.0
Android doesn't currently have SVG support:
http://developer.android.com/guide/appendix/media-formats.html
On Oct 8, 1:03 pm, 大风 jindafeng2...@gmail.com wrote:
Well,Now I want to parse the svg file in Android.What do I need to do?
On Oct 8, 7:06 pm, DanH danhi...@ieee.org wrote:
Rename it
Hello
Take a look at this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/9d1681a01f05e782
As Dianne says, the only way is to implement onSizeChanged() for your
View.
On Sep 27, 5:58 am, Shoyeb Irfan shoyeb210...@gmail.com wrote:
How can I get an event when the
Are you asking the same question that I posed (there's an answer from
Mark) here?:
http://stackoverflow.com/questions/3599234/recommendations-for-a-permanent-selector-in-listview
On Sep 20, 7:44 pm, Bret Foreman bret.fore...@gmail.com wrote:
This could just as well be a big list of radio
);
viewHolder.myView.setText(objects[position]);
convertView.setTag(viewHolder);
} else {
viewHolder = (ViewHolder) convertView.getTag();
}
return convertView;
}
On Sep 7, 2:03 pm, jamesc jame...@gmail.com wrote:
Hi
1) I'm still not sure why
?)
On Sep 6, 2:17 pm, jamesc jame...@gmail.com wrote:
OK. I've had a quick look.
1) I take it that yourView(MyView) is theitemin theListView?
2) Why are you doing the measuring (and implementing onDraw())? I
would have thought that you should be using a layout to declare
OK. I've had a quick look.
1) I take it that your View (MyView) is the item in the ListView?
2) Why are you doing the measuring (and implementing onDraw())? I
would have thought that you should be using a layout to declare the
ListView item and then backing that with a BaseAdapter
Hi
From the TabWidget example in the docs, this is what the tabs look
like in v1.5/1.6:
http://developer.android.com/resources/tutorials/views/images/hello-tabwidget.png
As you can see, the TabIndicator is white, with the icon in grey.
In v2.x the TabIndicator is no longer white, but grey.
You should try running the app on a phone that supports speech to
text.
On Jul 30, 4:37 am, krish gvk.va...@gmail.com wrote:
Hi,
I am new to Android. I am using the SDK 2.2 and when i execute the
speech demo app, i get the following error message Recogniser not
found.
I have read the
In addition to Al's suggestions, you might also want to look at
Activity.onWindowFocusChanged.
On Jul 19, 7:43 pm, Al alcapw...@googlemail.com wrote:
You can use the onStart/Resume/Pause/Stop to know when your app is
visible or in the background.
hen wrote:
Hi all,
Could I get
Hi
I had issues with the X10s IME in that it ignored particular IME flags
(http://developer.sonyericsson.com/wportal/devworld/forum?
cc=gblc=en). You might be suffering from a similar issue. I suggest
that you post to the SE forum and ask them directly (they confirmed my
findings).
Off the top
the IME a system wide
setting, but I'm surprised there's no permission that I can declare for my
app to set the default IME to the default android one. Does this not
exist?
On Wed, Jul 14, 2010 at 3:50 AM, jamesc jame...@gmail.com wrote:
Hi
I had issues with the X10s IME
are having.
On Wed, Jul 14, 2010 at 3:38 PM, jamesc jame...@gmail.com wrote:
As per:
http://developer.android.com/reference/android/view/inputmethod/Input...
:
A client application can ask that the system let the user pick a new
IME, but can not programmatically switch to one itself.
My
Hi
I've been wrestling with trying to achieve something similar to the
GMail app's ListView entries (i.e. clicking/tapping on the whole entry
will start a new Activity (in GMail's case the email proper), and
there's a Button (of sorts) on the right side of the entry that should
call back to the
Replying to my own question.
It appears that I screwed-up when registering the Button's listener,
which presumably resulted in the unresponsive state observed.
On Jul 10, 3:30 pm, jamesc jame...@gmail.com wrote:
Hi
I've been wrestling with trying to achieve something similar to the
GMail
Hi
As per the title really; when the user taps a link, it gets
highlighted by a multi-coloured surround. What I'm interested in is
how the multi-coloured effect is achieved (i.e. on the Nexus One, it
has a an orange line sandwiched between red lines). I'm assuming
(perhaps incorrectly, of
Have a look at View.onKeyUp() or View.onKeyDown() to handle to
keypresses.
As for the IME, take a look at this recent post:
http://groups.google.com/group/android-developers/browse_thread/thread/22674208e500cdf0
On Jun 28, 8:23 am, skooter500 skooter...@gmail.com wrote:
Hi
I have a TextView
I'm pretty sure that you can't impose an IME change on a user. As far
as I understand, it's a security issue (if you force someone to use a
given IME, then you can potentially capture keypresses and all the
issues related to that).
You'd have to 'fix' the keyboard to that particular app, which
I've only scanned your code and note that you're using an Intent on
the same class to essentially get the 'redraw/reload of a random
image' to occur. I'm not sure that this would be the best way of
going about what you want to achieve. (As an aside try using logcat
to see what's happening; is
I don't think you can.
Devil's advocate: What makes you think that invalidating 20 rects
individually is more performant than the union?
On May 20, 8:31 am, a450 workp...@gmail.com wrote:
I need to be able to selectively invalidate multiple (about 20)
rectangles on the screen for performance
Hi
I've recently got my hands on an X10, and have found that the Sony
Ericsson IME handles the EditorInfo.inputType flags differently to the
default Android IME and the HTC IME (i.e. anything 0x0 results in
the IME displaying word suggestions, which I don't want).
Given that the behaviour
Take a look at adjustResize and adjustPan:
http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft
On May 2, 8:07 am, ced cedric...@gmail.com wrote:
Hi,
I am playing with the Demo SoftKeyboard the comes with the Android
SDK.
In portrait mode when its candidate view
Use Activity.setResult() with your own defined result value, then call
Activity.finish().
So, B will call setResult() then finish(). A will now be at the top
of the task, and the finish() called by B will result in a call to A's
onActivityResult() (that is providing that B was started with
, it becomes black in color:(
On May 3, 3:48 pm, jamesc jame...@gmail.com wrote:
Use Activity.setResult() with your own defined result value, then call
Activity.finish().
So, B will call setResult() then finish(). A will now be at the top
of the task, and the finish() called by B
:42 am, jamesc jame...@gmail.com wrote:
Ah! Yes. It does matter that your using fullscreen (again, another
issues I had; I ended up not going fullscreen):
http://code.google.com/p/android/issues/detail?id=5497
On Apr 24, 9:37 am, mkellner m.kin...@gmail.com wrote:
The layout
going fullscreen?
style name=Theme.NoBackground parent=@android:style/
Theme.NoTitleBar.Fullscreen
item name=android:windowBackground@null/item
/style
-mk
On Apr 23, 12:03 am, jamesc jame...@gmail.com wrote:
The layout that your views are in should get
have an EditText view.
When I need to open the keyboard, I make the EditText visible and
toggleSoftInput.
The keyboard appears, but no onSizeChanged() is called for either the
EditText view or the SurfaceView.
Any suggestions?
-mk
On Apr 22, 10:26 pm, jamesc jame...@gmail.com wrote
onSizeChanged() - the system resizes the window when the IME is shown/
hidden. Take a look here:
http://groups.google.com/group/android-developers/browse_thread/thread/9d1681a01f05e782
On Apr 22, 3:40 am, mkellner m.kin...@gmail.com wrote:
Hello,
I am trying to find a way to get a
From reading this:
http://developer.android.com/resources/articles/creating-input-method.html
it looks like you need TYPE_CLASS_NUMBER.
On Apr 21, 10:25 pm, Watter matthewcwe...@gmail.com wrote:
I am trying to do something that I thought would be simple, yet I
still haven't found the right
The solution is that you shouldn't use onKey() but implement an
InputConnection to handle key presses:
http://groups.google.com/group/android-developers/browse_thread/thread/c800a10de864780d
On Apr 19, 9:52 pm, jamesc jame...@gmail.com wrote:
Perhaps your 'digit2' View doesn't have focus
Perhaps your 'digit2' View doesn't have focus at the point where input
is being requested?
On Apr 19, 9:15 am, Michael Rueger mike.rue...@gmail.com wrote:
On 4/18/2010 3:43 PM, jamesc wrote:
Hi Michael
It'll be the Sense UI's IME which has different behaviour to the stock
Android IME
Hi Michael
It'll be the Sense UI's IME which has different behaviour to the stock
Android IME. Sadly, I'd suggest that you get your hands on a Sense UI-
equipped device (even a Hero, which whilst it has 1.5 on it, may help
you track that issues).
When you say that ACTION_UP doesn't work, is this
to restart instantly if you launch it again.
However if the system needs more memory (to run new app) it can get
killed automatically.
You should read the lifecycle documentation
athttp://developer.android.com/guide/topics/fundamentals.html#lcycles
Xav
On Wed, Apr 14, 2010 at 2:04 PM, jamesc
Hi
I've just started looking at DDMS with my app, and have been using the
Heap tool.
Whilst I observe memory allocations occur and the occasional freeing
up of memory upon GC, there is a general trend upwards. I also
noticed this on the APIDemos example code. Furthermore, when I press
BACK to
Read the Android blog posts on IMEs:
http://android-developers.blogspot.com/search/label/Input%20methods
On Apr 9, 9:51 am, rajesh chandrasekaran crajeshdanger...@gmail.com
wrote:
Hi all,
I am new in android, i need to close the virtual keyboard
when user enter the Enter button in
If you visit the Market via your phone, you'll more than likely
stumble across one of these spam comments (I just had a quick look on
various paid apps' review, but can't seem to see any; perhaps they've
been removed?).
AFAIK, the 'playground' site charges a fixed fee and allows unlimited
Have a read of this:
http://developer.android.com/resources/articles/on-screen-inputs.html
Specifically, mentions of adjustResize and adjustPan.
On Apr 7, 11:15 pm, Hayden hayden.stew...@gmail.com wrote:
After playing around off and on with this issue for a few months, I
finally found the
Hi
I'm looking for guidance on locking an .apk to a specific device (that
I have physical access to in order to install the .apk). Gotchas
(i.e. avoiding hardcoding IMEIs/ANDROID_ID etc.?) and the like?
Cheers
James
--
You received this message because you are subscribed to the Google
Groups
Sorry, I wasn't clear. I'm asking whether that's the recommended
option.
On Mar 16, 10:52 am, Ne0 liamjamesalf...@googlemail.com wrote:
Why dont you want to hardcode the IMEI?
On 16 Mar, 10:44, jamesc jame...@gmail.com wrote:
Hi
I'm looking for guidance on locking an .apk to a specific
/Input...
but it doesn't work, I only get notification that Keyboard was shown.
Did you try this?
On Mar 11, 6:27 pm, jamesc jame...@gmail.com wrote:
I only discovered that thread this morning. I tried many different
ways of 'catching' the IME show/hide, and that is, as Dianne says. the
only
all play nice with your custom integration...
On Thu, Mar 11, 2010 at 11:01 AM, mariush mariusz...@gmail.com wrote:
Did you solve this?
Anyone knows solution to this problem?
On 8 Lut, 19:35, jamesc jame...@gmail.com wrote:
If theBACKbutton is pressed when the soft keyboard is being
keyboard' IME key.
So, I've just implemented the suggested method (onSizeChanged()) and
it, unsurprisingly, works a treat!
On Mar 11, 4:27 pm, Sean Hodges seanhodge...@googlemail.com wrote:
And is that the approach you are planning to go for?
On Thu, Mar 11, 2010 at 3:38 PM, jamesc jame
Hi.
You're not using a Hero by any chance, are you?
Why actually, yes I am. Is there an issue you are aware of with the
Hero?
Not issues, as such, but just 'differences' shall we say. Another
'difference' is the fact that it has a 'close keyboard' button on the
IME that doesn't generate a
I've implemented a square View whose container is a ScrollView (so as
to allow my View to scroll when the IME is shown/hidden). Because
it's placed in a ScrollView, when my View's onMeasure() is called the
heightMeasureSpec value is 0 (i.e. View.MeasureSpec.UNSPECIFIED + 0).
In portrait, I can
Have you read this?:
http://developer.android.com/intl/de/resources/articles/faster-screen-orientation-change.html
On Mar 8, 11:19 am, Chronos g358279012044...@gmail.com wrote:
Hi Martin,
I am not sure if this is the problem, but you should not keep
instances to the old activity during
/android/issues/detail?id=5497
On Mar 3, 11:25 am, jamesc jame...@gmail.com wrote:
OK, so by experimenting with a test application containing:
- A Button to toggle the IME (show/hide).
- A ScrollView containing TextViews.
I can get the behviour I require. However, this is obviously just a
test
This refers to R.layout.custom_display_view
View.inflate(context, R.layout.custom_display_view, null);
Whereas your layout file declares the View as:
custom_display_view1
I presume that this is a typo from trimming down the problem?
Besides that, it should be R.id. not R.layout., so you
Hi
You're not using a Hero by any chance, are you?
Try putting this into your Manifest for that activity:
android:windowSoftInputMode=stateHidden
That may, or may not be what you're after, but look at the
documentation for that attribute for further information on
controlling the IME's
Looking at your code, you're drawing the bitmap at the top-left of the
canvas (i.e. canvas.drawBitmap(bitmap, 0, 0 ...). Presumably, you're
precalculating where the bitmap needs to be drawn (it's top-left
coordinate) and using those values in the drawBitmap() call?
The onDraw method will only
is missing in my non-functioning
application; there is no call to the ScrollView's onSizeChanged() or
to my implemented View's onSizeChanged().
I'd really appreciate some help on this one, as it's pretty much the
last thing I've got to get done for my app.
Cheers
James
On Mar 2, 6:13 pm, jamesc jame
How do I ensure that I get the 'resize' behaviour when the IME is
shown/hidden?
I've included the following in my manifest:
android:windowSoftInputMode=adjustResize
What else am I supposed to add? I've read that the container that the
View is placed in should 'support resize' but what layouts
it while driving, correct?
Your help is much appreciated.
On Feb 9, 3:00 pm, jamesc jame...@gmail.com wrote:
Sorry, I didn't complete my answer. You can use the phone without a
SIM and via WiFi only, yes. Not sure whether that's a good idea in
some cases as latencies on mobile networks
Take a look at this document:
http://developer.android.com/resources/articles/on-screen-inputs.html
On Feb 10, 4:47 am, Sasikumar.S sasikumar.it1...@gmail.com wrote:
Hi,
How to replace a keyboard character?..
Ex:- 'Enter' Button should be changed to 'Search' or 'Done'
You can buy a Nexus One direct from Google without a contract (i.e SIM
free).
On Feb 8, 10:54 pm, cmarin christopher.ma...@gmail.com wrote:
I built an iPhone app for my company using Appcelerator Titanium,
which I would now like to make available for Android devices.
Unfortunately, I can only
Sorry, I didn't complete my answer. You can use the phone without a
SIM and via WiFi only, yes. Not sure whether that's a good idea in
some cases as latencies on mobile networks differ.
On Feb 8, 10:54 pm, cmarin christopher.ma...@gmail.com wrote:
I built an iPhone app for my company using
If the BACK button is pressed when the soft keyboard is being
displayed, no BACK keycode event is generated (when it's not shown,
and BACK is pressed, then my View's onKeyDown()/onKeyUp() methods get
called back).
Is this expected behaviour? I'm trying to catch when the IME is
hidden upon BACK
Perhaps you're indirectly calling invalidate() in the onDraw(),
resulting in a redraw loop?
On Feb 3, 10:00 pm, Neilz neilhorn...@googlemail.com wrote:
What else can cause onDraw() to be called, if I'm not triggering it
with invalidate()?
--
You received this message because you are
Sorry, yes, Mark is quite right; it's the soft key on the IME.
Thanks.
On Jan 27, 1:55 am, Dianne Hackborn hack...@android.com wrote:
On Mon, Jan 25, 2010 at 10:15 AM, Mark Murphy mmur...@commonsware.comwrote:
The HTC Hero does not have a Hide Keyboard hardware button. I am
assuming the OP
As per the subject. It doesn't seem to generate any callbacks to
onKeyUp()/onKeyDown().
Cheers
James
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe
I'm attempting to work out how BaseInputConnection works using the
SpannableStringBuilder as the Editable and have this code:
public class MyInputConnection extends BaseInputConnection {
private static final String DEBUG_TEST = new String(ABCDEF);
private SpannableStringBuilder
There's a demo in ApiDemos called CustomTitle that allows the dynamic
changing of the title. Perhaps the code in there will help?
On Jan 13, 1:16 pm, Marek Urbaniak marek.urban...@gmail.com wrote:
Is it possible to remove a title bar in a window after content has
been set? Calling the method
Hi
Looking at the Bitmap class, I presume (I've not tried) that when you
call Bitmap.createBitmap() with a buffer of pixel data, it's these
pixels that contain the alpha data (look at the Color class for the
layout of the 32 bit integer value of a pixel), and the Bitmap.Config
that you use to
instance.
On Jan 8, 7:16 pm, jamesc jame...@gmail.com wrote:
Hi
I've a problem with getting a redraw of a View in my application.
My app's main.xml looks like this:
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
Hi
I've a problem with getting a redraw of a View in my application.
My app's main.xml looks like this:
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
http://developer.android.com/reference/android/widget/package-summary.html
On Jan 9, 8:03 am, Sasikumar.S sasikumar.it1...@gmail.com wrote:
Hi,
Any one know about
In Android Widget Package how many Classes are there?
--
Thanks Regards
Sasikumar.S
--
You received this message because you
Take a look at ListView's addHeaderView(View) and addFooterView(View).
On Jan 8, 12:17 pm, RamaMohan rama.mohan...@gmail.com wrote:
Hi all,
I have a list view and i need to add a header and footer .In the
footer i need to have a button like Next to go to next page.I need
it urgently.
If
73 matches
Mail list logo