Overscroll Documentation?

by Daniel Lew » Tue, 07 Dec 2010 03:35:53 GMT


Sponsored Links
 In the release notes for 2.3, they say that there's a new feature,
overscroll:  http://developer.android.com/sdk/android-2.3.html 

However, I can find no references of it in the documentation;
autocomplete won't give me any hints about it in ADT; and the source
for 2.3 hasn't been pushed to git yet so I can't look for myself how
to use it.  Is there somewhere I can get valid values for how to use
overscroll?  (In particular, overScrollMode).

-Daniel

-- 



Other Threads

1. How to get sound notification?

In this code i don't get any sound for notification...Help me..
/***
        Copyright (c) 2008 CommonsWare, LLC

        Licensed under the Apache License, Version 2.0 (the "License"); you
may
        not use this file except in compliance with the License. You may
obtain
        a copy of the License at
                http://www.apache.org/licenses/LICENSE-2.0
        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
        See the License for the specific language governing permissions and
        limitations under the License.
*/

package com.commonsware.android.notify;

import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import java.util.Timer;
import java.util.TimerTask;

public class NotifyDemo extends Activity
{
        private static final int NOTIFY_ME_ID=1337;
        private Timer timer=new Timer();

        @Override
        public void onCreate(Bundle savedInstanceState)
        {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);

                Button btn=(Button)findViewById(R.id.notify);

                btn.setOnClickListener(new View.OnClickListener()
                {
                        public void onClick(View view)
                        {
                                setDefault(Notification.DEFAULT_SOUND);
                                TimerTask task=new TimerTask()
                                {
                                        public void run()
                                        {
                                                notifyMe();
                                        }
                                };
                                timer.schedule(task, 5000);
                        }
                });

                btn=(Button)findViewById(R.id.cancel);

                btn.setOnClickListener(new View.OnClickListener()
                {
                        public void onClick(View view)
                        {
                                NotificationManager
mgr=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);

                                mgr.cancel(NOTIFY_ME_ID);
                        }
                });
        }

        protected void setDefault(int defaultSound) {
                // TODO Auto-generated method stub

        }

        private void notifyMe()
        {
                final NotificationManager
mgr=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
                Notification note=new Notification(R.drawable.red_ball,"Status
message!",System.currentTimeMillis());
                PendingIntent i=PendingIntent.getActivity(this, 0,new 
Intent(this,
NotifyMessage.class),0);

                note.setLatestEventInfo(this, "Notification Title","This is the
notification message", i);


                mgr.notify(NOTIFY_ME_ID, note);
        }
}

--~--~---------~--~----~------------~-------~--~----~

2. Quartile scorings

Hi, guys
I did not realize until now that I can get a better reply than "you
lost" after submitting my application. Can anybody tell me how? coz
apparently I missed such a chance in May.
I know this group might not be the best place to ask this question.
But, I cannot find a better one.
Thanks
CJ
--~--~---------~--~----~------------~-------~--~----~

3. external jar

4. intercept incoming and outgoing calls and have customized screen

5. Is there any book on development with Android ?

6. Coding Style Standards for Android

7. Help Drawing Over Google Maps