Input method editor(IME) in fullscreen

by Dianne Hackborn » Mon, 29 Mar 2010 15:16:36 GMT


Sponsored Links
 Set the input type to password.  This has the normal text view show dots,
and the IME sees this and do so as well.




>



Input method editor(IME) in fullscreen

by Nithin » Mon, 29 Mar 2010 15:58:29 GMT


 Thanks Dianne,

Solved. just put setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);

So in landscape mode, soft keyboard is not showing full screen, the
the edittext is visible and showing dots.

Nithin




> >


Sponsored Links


Other Threads

1. ListView scrolls very very slow

Hi all,

I'm kind of to android development. I'm creating an app containing
several activities, and one of them is an ListActivity. Each row
contains a ImageView (thumbnail) and two TextViews.

When the ListActivity is loaded everything looks fine, but when I
start to scroll it scrolls very slow. I've read some posts and threads
about this, and from what I understand the problem could be that the
UI thread is getting locked up when the getView() method is called in
my adapter class (extends ArrayAdapter).

The getView() is doing some, in this case, heavy processes. It looks
like this

@Override
public View getView(int position, View convertView, ViewGroup parent)
{
        View v = convertView;
        if (v == null) {
        LayoutInflater vi =
(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                v = vi.inflate(R.layout.row_item, null);
        }
        Item i = items.get(position);
        if (i != null) {
                name = (TextView) v.findViewById(R.id.item_name);
                timeLeft = (TextView) v.findViewById(R.id.item_time_left);
                thumb = (ImageView) v.findViewById(R.id.item_thumb);

                name.setText(i.getShortDescription());
                timeLeft.setText(Utils.getTimeLeft(i.getEndDate()));
                try {
                        
thumb.setImageBitmap(Utils.getBitmap(i.getThumbNailLink()));
                } catch(Exception e){};
        }
        return v;
}

I've tried to speed up the getView() by using an DrawableManager class
that I found in this thread
http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview...
This gets the image (from url) in a seperate thread and handle some
simple cache for the images (HashMap). If I only add the image to the
row in the ListView it's pretty fast, especially due to the caching
done i DrawableManager. But when I fill the two TextViews with text it
still gets very slow. So that didn't help me out. (I also tried to
cache and handle the TextField values in the DrawableManager, but that
didn't help either.)

Do you guys have a good solution for me?

Thanks in advance

-- 

2. Obtaining the selected index of a spinner

I want to obtain the index of the selected item in a spinner.

I am aware of the method getSelectedItem() which returns the item
selected (which might be a String). But i want the index of the
selected item.

Something equivalent to the setSelection(index) to set the selected
item.

Of course I can get the selected item and compare it against the array
of items to obtain the index, but I hope there is a better way of
doing this.

Thnx.

-- 

3. In-App Purchasing and the Market Agreement

4. How to handle imaged background and buttons on different size/proportion displays

5. How to handle imaged background and buttons on different size/proportion displays

6. Modifying audio in real time

7. Passing Command line arguments