Home | History | Annotate | Download | only in ui
      1 package com.android.mail.ui;
      2 
      3 import android.content.Context;
      4 import android.util.AttributeSet;
      5 import android.view.MotionEvent;
      6 import android.widget.TextView;
      7 
      8 public class EmptyConversationListView extends TextView {
      9 
     10     public EmptyConversationListView(Context context) {
     11         this(context, null);
     12     }
     13 
     14     public EmptyConversationListView(Context context, AttributeSet attrs) {
     15         super(context, attrs);
     16     }
     17 
     18     @Override
     19     public boolean onTouchEvent(MotionEvent e) {
     20         // In order for users to perform swipe down in this text view to trigger
     21         // refresh, we always return true here so that ACTION_MOVE and ACTION_UP
     22         // events would be passed to parent view ConversationListView, which is
     23         // where swipe to refresh detecting happens.
     24         return true;
     25     }
     26 }
     27