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

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

    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] =
                str += "SMS from " +
                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

        ListView theList = (ListView)

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

        for (String s : _itemNames) {

        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

        ListView theList = (ListView)
        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