Bitmap formats

by Neil » Thu, 21 Jan 2010 23:33:32 GMT


Sponsored Links
 There are several bitmap formats:
ALPHA_8, ARGB_4444, ARGB_8888 and RGB_565
but where are they described?
How am I supposed to know which one to use?

Regards

Neil



Other Threads

1. Contact suggestions

If you're about to compose a sms at Android you will get suggestions
if you begin to type in a receiver for the sms. Can anyone of you tell
me how this works? I mean is there any way to have a look at the
source code of how the android developers did that?

I've been playing around with AutoCompleteTextViews and tried to do
something similar, but my own version doesn't work very well.

If you know where I can find the source code I'm looking for, you
would help me very much. Thank you.

-- 

2. EditText password attribute

Hello there,

i'm developing a password manager for android.
I have one Activity that displays the details of an entry.
by default all edittext elements of this view are disabled and the
edittext that shows the actual password of this entry has the
android:password="true" attribute assigned in the xml file of this
view.
Now i have a togglebutton at the bottom of the view which can dis/
enable all edittext elements to modify the entry.

My problem is:
i cannot find a way to change the password value of the password
field.
what i want is:
when the togglebutton isn't checked, the password field should show
only dots.
if the user pressed the button, this field should show the password in
cleartext.


the following doesn't work:

editBtn.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View v) {
                lockOrUnlockEntry(editBtn.isChecked());
                if (editBtn.isChecked()) {
                        passPass.setInputType(InputType.TYPE_CLASS_TEXT);
                } else {
                        passPass.setTransformationMethod(new
PasswordTransformationMethod());
                        
passPass.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
                }
        }
});

private void lockOrUnlockEntry(boolean b) {
        passTitle.setEnabled(b);
        passTitle.setFocusable(b);
        passURL.setEnabled(b);
        passURL.setFocusable(b);
        passUser.setEnabled(b);
        passUser.setFocusable(b);
        passCompany.setEnabled(b);
        passCompany.setFocusable(b);
        passPass.setEnabled(b);
        passPass.setFocusable(b);
        passNotes.setEnabled(b);
        passNotes.setFocusable(b);
}


any suggestions?

-- 

3. calling SOAP service in android

4. Hi has anyone met problem about usb driver of XPERIA X10 (mini)?

5. How to get the actual(measured) view size before doing layout?

6. Favor From a Developer With a Samsung Moment

7. Record a presentation of android application