[android-developers] Re: How to get coordinates of the button programmatically?

2012-02-29 Thread jamesc
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

[android-developers] Re: What is wrong with Android Adapters?

2012-02-14 Thread jamesc
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

[android-developers] Re: What is wrong with Android Adapters?

2012-02-14 Thread jamesc
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

[android-developers] Re: how to hide softtkeyboard pressedkey popup?

2012-02-07 Thread jamesc
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

[android-developers] Re: Forcing an item in a GridView to remain highlighted after clicking

2012-01-20 Thread jamesc
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

[android-developers] Re: Trouble programmatically setting default value of a Preference

2011-08-24 Thread jamesc
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

[android-developers] Re: using the uses-library to hide DLC

2011-08-18 Thread jamesc
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

[android-developers] Re: Soft Keyboard appears when entering on an Activity

2011-07-05 Thread jamesc
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-developers] Re: How to convert xml to svg in Android

2010-10-08 Thread jamesc
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

[android-developers] Re: Virtual keyboard Event

2010-09-28 Thread jamesc
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

[android-developers] Re: Getting the right highlighting behavior in a ListView

2010-09-21 Thread jamesc
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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-08 Thread jamesc
);                 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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-07 Thread jamesc
?) 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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-06 Thread jamesc
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

[android-developers] TabIndicator's tab_selected/tab_unselected drawables are white in v1.6 and grey in v2.x

2010-08-22 Thread jamesc
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.

[android-developers] Re: Speech Recogniser on SDK 2.2 gives Error Message

2010-07-30 Thread jamesc
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

[android-developers] Re: how to know whenactivity is displayed

2010-07-20 Thread jamesc
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

[android-developers] Re: soft keyboard selection from app?

2010-07-14 Thread jamesc
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

[android-developers] Re: soft keyboard selection from app?

2010-07-14 Thread jamesc
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

[android-developers] Re: soft keyboard selection from app?

2010-07-14 Thread jamesc
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

[android-developers] ListView containing multiple, clickable, Views (i.e. like GMail)

2010-07-10 Thread jamesc
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

[android-developers] Re: ListView containing multiple, clickable, Views (i.e. like GMail)

2010-07-10 Thread jamesc
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

[android-developers] How to replicate the Browser's (WebView?) anchor highlight poly-polygon?

2010-06-30 Thread jamesc
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

[android-developers] Re: How to dismiss the soft keyboard

2010-06-29 Thread jamesc
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

[android-developers] Re: Display customized Soft keyboard at run time

2010-06-29 Thread jamesc
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

[android-developers] Re: Loading random image when activity is brought up...Not working any ideas?

2010-06-21 Thread jamesc
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

[android-developers] Re: How to invalidate multiple parts of screen

2010-05-24 Thread jamesc
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

[android-developers] Suggestions for how to deal with IMEs ignoring flags?

2010-05-09 Thread jamesc
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

[android-developers] Re: Soft Keyboard Candidate View problem

2010-05-04 Thread jamesc
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

[android-developers] Re: How to close all activities in a app

2010-05-03 Thread jamesc
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

[android-developers] Re: How to close all activities in a app

2010-05-03 Thread jamesc
, 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

[android-developers] Re: Callback when SoftKeyboard goes away

2010-04-26 Thread jamesc
: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

[android-developers] Re: Callback when SoftKeyboard goes away

2010-04-24 Thread jamesc
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

[android-developers] Re: Callback when SoftKeyboard goes away

2010-04-23 Thread jamesc
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

[android-developers] Re: Callback when SoftKeyboard goes away

2010-04-22 Thread jamesc
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

[android-developers] Re: Allow only decimal numeric input and use phone soft keyboard?

2010-04-22 Thread jamesc
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

[android-developers] Re: HTC Desire keyboard problem

2010-04-20 Thread jamesc
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

[android-developers] Re: HTC Desire keyboard problem

2010-04-19 Thread jamesc
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

[android-developers] Re: HTC Desire keyboard problem

2010-04-18 Thread jamesc
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

[android-developers] Re: DDMS use - allocated memory not freed when BACK pressed?

2010-04-15 Thread jamesc
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

[android-developers] DDMS use - allocated memory not freed when BACK pressed?

2010-04-14 Thread 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

[android-developers] Re: To close the virtual keyboard

2010-04-09 Thread jamesc
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

[android-developers] Re: any lawyer types out there that can get this site down?

2010-04-08 Thread jamesc
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

[android-developers] Re: How to prevent virtual keyboard from moving and resizing views

2010-04-07 Thread jamesc
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

[android-developers] Lock an .apk to a given (and physical) device

2010-03-16 Thread jamesc
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

[android-developers] Re: Lock an .apk to a given (and physical) device

2010-03-16 Thread jamesc
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

[android-developers] Re: No View key event called back when BACK key is pressed while IME is shown?

2010-03-12 Thread jamesc
/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

[android-developers] Re: No View key event called back when BACK key is pressed while IME is shown?

2010-03-11 Thread jamesc
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

[android-developers] Re: No View key event called back when BACK key is pressed while IME is shown?

2010-03-11 Thread jamesc
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

[android-developers] Re: EditText uncontrollable/unpredicatable soft keyboards

2010-03-09 Thread jamesc
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

[android-developers] How do I get the ScrollView's mTop value (i.e. the height of the status bar)?

2010-03-08 Thread jamesc
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

[android-developers] Re: Using onRetainNonConfigurationInstance to keep Media player after orientation change

2010-03-08 Thread jamesc
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-developers] Re: Ensuring that the IME show/hide results in a call to View.onSizeChanged()?

2010-03-07 Thread jamesc
/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

[android-developers] Re: how to have my custom view class use a layout xml

2010-03-05 Thread jamesc
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

[android-developers] Re: EditText uncontrollable/unpredicatable soft keyboards

2010-03-04 Thread jamesc
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

[android-developers] Re: How to draw a particular part of a view

2010-03-04 Thread jamesc
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

[android-developers] Re: Ensuring that the IME show/hide results in a call to View.onSizeChanged()?

2010-03-03 Thread jamesc
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

[android-developers] Ensuring that the IME show/hide results in a call to View.onSizeChanged()?

2010-03-02 Thread jamesc
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

[android-developers] Re: Dev Phone 2, Droid or Nexus One?

2010-02-10 Thread jamesc
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

[android-developers] Re: Keyboard Character Replacement

2010-02-10 Thread jamesc
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'

[android-developers] Re: Dev Phone 2, Droid or Nexus One?

2010-02-09 Thread jamesc
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

[android-developers] Re: Dev Phone 2, Droid or Nexus One?

2010-02-09 Thread jamesc
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

[android-developers] No View key event called back when BACK key is pressed while IME is shown?

2010-02-08 Thread jamesc
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

[android-developers] Re: Canvas drawing

2010-02-03 Thread jamesc
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

[android-developers] Re: What keycode is the HTC Hero 'Hide Keyboard' button?

2010-01-27 Thread jamesc
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

[android-developers] What keycode is the HTC Hero 'Hide Keyboard' button?

2010-01-25 Thread jamesc
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

[android-developers] Implementing BaseInputConnection using SpannableStringBuilder

2010-01-17 Thread jamesc
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

[android-developers] Re: Remove window title after setting content

2010-01-13 Thread jamesc
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

[android-developers] Re: Drawing on the alpha channel

2010-01-12 Thread jamesc
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

[android-developers] Re: Unable to get redraw of View

2010-01-11 Thread jamesc
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

[android-developers] Unable to get redraw of View

2010-01-10 Thread jamesc
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

[android-developers] Re: How many Android Widget Classes are there?

2010-01-10 Thread jamesc
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

[android-developers] Re: How to add footer and Header to a list

2010-01-10 Thread jamesc
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