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
wrote:
>
Also, are you calling notifyDatasetChanged() frequently?
On Feb 14, 9:10 am, jamesc wrote:
> Hello
>
> Are you using the ViewHolder pattern to recycle Views?
>
> On Feb 13, 9:48 am, Olof Hedman wrote:
>
>
>
>
>
>
>
> > I have implemented a coup
Hello
Are you using the ViewHolder pattern to recycle Views?
On Feb 13, 9:48 am, Olof Hedman 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 bind its views.
>
>
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 be
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 b
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 wrote:
> I have a simple CheckBoxPreferenc
On Aug 18, 8:23 am, Jeremy Lakeman 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 'Install from unknown
Add stateHidden to the activity's manifest entry under
windowSoftInputMode.
On Jul 4, 9:35 pm, fr4gus 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:
>
>
> http://schemas.android.com/apk/res/
> and
Android doesn't currently have SVG support:
http://developer.android.com/guide/appendix/media-formats.html
On Oct 8, 1:03 pm, 大风 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 wrote:
>
>
>
> > Rename it from .xml to .svg? (Of course, th
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 wrote:
> How can I get an event when the user opens or closes th
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 wrote:
> This could just as well be a big list of radio buttons, but there's a
> lot
ll);
> viewHolder = new ViewHolder();
> viewHolder.myView = (MyView)
> convertView.findViewById(R.id.myview);
> viewHolder.myView.setText(objects[position]);
> convertView.setTag(viewHolder);
> } else {
> vie
w3"
>
> view4 = bitmap1 = "hai i am bitmap1 in view1"
> bitmap2 = "hai i am bitmap2 in view4"
>
> view5 = bitmap1 = "hai i am bitmap1 in view3"
> bitmap2 = "hai i am bitmap2 in view5"
>
> moreover, theorderrand
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 implementation
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. Th
You should try running the app on a phone that supports speech to
text.
On Jul 30, 4:37 am, krish 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 previous posts o
In addition to Al's suggestions, you might also want to look at
Activity.onWindowFocusChanged.
On Jul 19, 7:43 pm, Al 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 information from Activ
It's a known bug: http://code.google.com/p/android/issues/detail?id=8492
On Jul 15, 7:09 am, Chister Nordvik wrote:
> Same 401 error here also (Nexus One). I thought I was the only one :-)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
T
users are having.
>
>
>
> On Wed, Jul 14, 2010 at 3:38 PM, jamesc 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
> >
I can understand why Android would want to make 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,
Hi
I had issues with the X10s IME in that it ignored particular IME flags
(http://developer.sonyericsson.com/wportal/devworld/forum?
cc=gb&lc=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
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 wrote:
> Hi
>
> I've been wrestling with trying to achieve something similar to the
>
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 re
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 course
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 ma
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 wrote:
> Hi
>
> I have a TextView and a search butto
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 all
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 wrote:
> I need to be able to selectively invalidate multiple (about 20)
> rectangles on the screen for performance reasons, so tried
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 varie
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 wrote:
> Hi,
>
> I am playing with the Demo SoftKeyboard the comes with the Android
> SDK.
>
> In portrait mode when its candidate view is shown, it do
t;translucent" effect cannot be
> used, it becomes black in color:(
>
> On May 3, 3:48 pm, jamesc wrote:
>
>
>
> > Use Activity.setResult() with your own defined result value, then call
> > Activity.finish().
>
> > So, B will call setResult() then fini
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
startA
k-key?
>
> -mk
>
> On Apr 24, 1:42 am, jamesc 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
called either.
>
> Does it matter that I'm going fullscreen?
>
>
> <item name="android:windowBackground">@null</item>
>
>
> -mk
>
> On Apr 23, 12:03 am, jamesc wrote:
>
>
>
> > The layout that
ndow is a SurfaceView.
> I also 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.
>
>
>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 wrote:
> I am trying to do something that I thought would be simple, yet I
> still haven't found the right approach.
>
> I have a
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 wrote:
> Hello,
>
> I am trying to find a way to get a notification that the soft
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 wrote:
> Perhaps your 'digit2' View doesn't have f
Perhaps your 'digit2' View doesn't have focus at the point where input
is being requested?
On Apr 19, 9:15 am, Michael Rueger wrote:
> On 4/18/2010 3:43 PM, jamesc wrote:
>
> > Hi Michael
>
> > It'll be the Sense UI's IME which has different beha
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
cycles
>
> Xav
>
>
>
> On Wed, Apr 14, 2010 at 2:04 PM, jamesc wrote:
> > 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
> &
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 r
Read the Android blog posts on IMEs:
http://android-developers.blogspot.com/search/label/Input%20methods
On Apr 9, 9:51 am, rajesh chandrasekaran
wrote:
> Hi all,
>
> I am new in android, i need to close the virtual keyboard
> when user enter the "Enter" button in virtual keyboard.
>
>
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
download
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 wrote:
> After playing around off and on with this issue for a few months, I
> finally found the answer if anyone else has
Sorry, I wasn't clear. I'm asking whether that's the recommended
option.
On Mar 16, 10:52 am, Ne0 wrote:
> Why dont you want to hardcode the IMEI?
>
> On 16 Mar, 10:44, jamesc wrote:
>
> > Hi
>
> > I'm looking for guidance on locking an .apk
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
eveloper.android.com/reference/android/view/inputmethod/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 wrote:
>
> > I only discovered that thread this morning. I tried many different
> &
7;s additional 'hide 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 wrote:
> And is that the approach you are planning to go for?
>
> On Thu, Mar 11, 2010 at
re and there
> is a chance they won't all play nice with your custom integration...
>
> On Thu, Mar 11, 2010 at 11:01 AM, mariush wrote:
> > Did you solve this?
> > Anyone knows solution to this problem?
>
> > On 8 Lut, 19:35, jamesc wrote:
> >> If
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 generat
Have you read this?:
http://developer.android.com/intl/de/resources/articles/faster-screen-orientation-change.html
On Mar 8, 11:19 am, Chronos wrote:
> Hi Martin,
>
> I am not sure if this is the problem, but you should not keep
> instances to the old activity during configuration change at all
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 se
/android/issues/detail?id=5497
On Mar 3, 11:25 am, jamesc 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
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 co
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 dra
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 behavi
is behaviour 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.
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
Take a look at this document:
http://developer.android.com/resources/articles/on-screen-inputs.html
On Feb 10, 4:47 am, "Sasikumar.S" wrote:
> Hi,
>
> How to replace a keyboard character?..
>
> Ex:- 'Enter' Button should be changed to 'Search' or 'Done'
>
> http://betterandroid.files.wordpress.
; work if I use it while driving, correct?
>
> Your help is much appreciated.
>
> On Feb 9, 3:00 pm, jamesc 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
> &g
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 wrote:
> I built an iPhone app for my company using Appcelerator Titanium,
> which I
You can buy a Nexus One direct from Google without a contract (i.e SIM
free).
On Feb 8, 10:54 pm, cmarin 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 get permission to buy an
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 be
Perhaps you're indirectly calling invalidate() in the onDraw(),
resulting in a redraw loop?
On Feb 3, 10:00 pm, Neilz wrote:
> What else can cause onDraw() to be called, if I'm not triggering it
> with invalidate()?
--
You received this message because you are subscribed to the Google
Groups "A
Sorry, yes, Mark is quite right; it's the soft key on the IME.
Thanks.
On Jan 27, 1:55 am, Dianne Hackborn wrote:
> On Mon, Jan 25, 2010 at 10:15 AM, Mark Murphy wrote:
>
> > The HTC Hero does not have a "Hide Keyboard" hardware button. I am
> > assuming the OP is referring to the button in the l
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 wrote:
> Is it possible to remove a title bar in a window after content has
> been set? Calling the method Activity.requestWindowFe
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 ensu
th the
top instance.
On Jan 8, 7:16 pm, jamesc wrote:
> Hi
>
> I've a problem with getting a redraw of a View in my application.
>
> My app's main.xml looks like this:
>
>
> http://schemas.android.com/apk/res/
> android"
> android:orienta
Take a look at ListView's addHeaderView(View) and addFooterView(View).
On Jan 8, 12:17 pm, RamaMohan 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 anyone knows the answ
http://developer.android.com/reference/android/widget/package-summary.html
On Jan 9, 8:03 am, "Sasikumar.S" 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 are subscribed
Hi
I've a problem with getting a redraw of a View in my application.
My app's main.xml looks like this:
http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
Both views act
74 matches
Mail list logo