Rotate animation applied to full window -- view crops width? How to fix?

by jean-guys » Tue, 22 Dec 2009 02:35:59 GMT


Sponsored Links
 Just to follow up, the desired effect is achieved by hard-coding the
dimensions of the ImageView to the dimensions of the actual image.




--



Other Threads

1. Receiving SMS Messages

Dear All ,

Can some one help me to  solve my prob
I have put this code for receiving Message but the receice Msg on top
of the screen but after some second it disappeared,I want to save the
receive Msg in "txtEncryptedMessage"box ,can any one help to solve
this prob

abbi...@hotmail.com

public class SMSReceiver extends BroadcastReceiver
{
TextView txtEncryptedMessage;
        public SMSReceiver(TextView passedView)
        {
                txtEncryptedMessage=passedView;

        }
    @Override
    public void onReceive(Context context, Intent intent)
    {
        //---get the SMS message passed in---
        Bundle bundle = intent.getExtras();
        SmsMessage[] msgs = null;
        String str = "";
        if (bundle != null)
        {
            //---retrieve the SMS message received---
            Object[] pdus = (Object[]) bundle.get("pdus");
            msgs = new SmsMessage[pdus.length];
            for (int i=0; i<msgs.length; i++){
                msgs[i] =
SmsMessage.createFromPdu((byte[])pdus[i]);
                str += "SMS from " +
msgs[i].getOriginatingAddress();
                str += " :";
                str += msgs[i].getMessageBody().toString();
                str += "\n";
            }
            //---display the new SMS message---
            Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
        }
    }
}



-- 

2. Multiple selection ListView question

I am trying to achieve what should be a very simple task.  Create a
ListView that allows multiple selection, set some initial values
selected, display the ListView and then retrieve the selected items
once the user has finished manipulating the list.

I have a custom dialog with a ListView and the following in the
constructor

        ListView theList = (ListView)
findViewById(R.id.excluded_apps_list);
        theList.setItemsCanFocus(false);
        theList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);

        ArrayAdapter<String> arrayAdapter = new
ArrayAdapter<String>(context, R.layout.appspicker_itemview, test);
        theList.setAdapter(arrayAdapter);

        for (String s : _itemNames) {
                arrayAdapter.add(s);
        }

        theList.setItemChecked(0, true);

The list displays fine and the first item is checked as expected.
Once the dialog closes I do the following to get the checked item
positions:

        ListView theList = (ListView)
findViewById(R.id.excluded_apps_list);
        SparseBooleanArray checked = theList.getCheckedItemPositions();

The problem is that even if I deselect the first item and then close
the dialog, getCheckedItemPositions() still indicates that the item is
checked.  If I remove the call to setItemChecked(), everything works
fine but I really need the ability to set the inital checked state of
the list items.

Any ideas what I'm doing wrong?

-- 

3. To display the soft keyboard during the launch itself

4. How could I avoid others to get my used pictures in my application?

5. A error has been shown when I run the example in the facebook SDK for android

6. SUPL INIT message handling

7. chat software