Public Member Functions | Protected Member Functions | Package Attributes
com.riverlab.robotmanager.messages.MessageListActivity Class Reference
Inheritance diagram for com.riverlab.robotmanager.messages.MessageListActivity:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void onItemClick (AdapterView<?> parent, View view, int position, long id)
void onMessageAddition ()

Protected Member Functions

void onCreate (Bundle savedInstanceState)
void onPause ()
void onResume ()

Package Attributes

MessageCardScrollAdapter adapter
Runnable close
RobotManagerApplication mApplication
CardScrollView mCardScrollView
List< RobotMessagemMessages
RobotMessage mSelectedMessage
Runnable next
Runnable previous
Runnable viewImage
Runnable viewText

Detailed Description

Definition at line 27 of file MessageListActivity.java.


Member Function Documentation

void com.riverlab.robotmanager.messages.MessageListActivity.onCreate ( Bundle  savedInstanceState) [inline, protected]

Definition at line 120 of file MessageListActivity.java.

void com.riverlab.robotmanager.messages.MessageListActivity.onItemClick ( AdapterView<?>  parent,
View  view,
int  position,
long  id 
) [inline]

Definition at line 174 of file MessageListActivity.java.

Definition at line 181 of file MessageListActivity.java.

Definition at line 166 of file MessageListActivity.java.

Definition at line 131 of file MessageListActivity.java.


Member Data Documentation

Definition at line 33 of file MessageListActivity.java.

Initial value:
 new Runnable() {
                @Override
                public void run() 
                {
                        finish();
                }
        }

Definition at line 36 of file MessageListActivity.java.

Definition at line 34 of file MessageListActivity.java.

Definition at line 31 of file MessageListActivity.java.

Definition at line 30 of file MessageListActivity.java.

Definition at line 32 of file MessageListActivity.java.

Initial value:
 new Runnable() {
                @Override
                public void run() 
                {
                        int last = mCardScrollView.getChildCount();
                        int current = mCardScrollView.getSelectedItemPosition();
                        int next = current + 1;

                        if(next < last)
                        {
                                mCardScrollView.setSelection(next);
                        }
                }
        }

Definition at line 58 of file MessageListActivity.java.

Initial value:
 new Runnable() {
                @Override
                public void run() 
                {
                        int current = mCardScrollView.getSelectedItemPosition();
                        int next = current - 1;

                        if(next >= 0)
                        {
                                mCardScrollView.setSelection(next);
                        }
                }
        }

Definition at line 44 of file MessageListActivity.java.

Initial value:
 new Runnable() {
                @Override
                public void run() 
                {
                        Runnable guiUpdate = new Runnable() {
                                @Override
                                public void run() {
                                        int index = mCardScrollView.getSelectedItemPosition();
                                        if (mMessages.get(index).getType() == "Text")
                                                return;
                                        
                                        View curView = mCardScrollView.getChildAt(mCardScrollView.getSelectedItemPosition());
                                        ImageView imgView = (ImageView)curView.findViewById(R.id.imageView);
                                        TextView msgView = (TextView)curView.findViewById(R.id.messageText);
                                        
                                        imgView.setVisibility(View.VISIBLE);
                                        msgView.setVisibility(View.INVISIBLE);
                                }
                        };
                        
                        Handler handler = new Handler(Looper.getMainLooper());
                        handler.post(guiUpdate);
                }
        }

Definition at line 73 of file MessageListActivity.java.

Initial value:
 new Runnable() {
                @Override
                public void run() 
                {
                        Runnable guiUpdate = new Runnable() {
                                @Override
                                public void run() {
                                        View curView = mCardScrollView.getChildAt(mCardScrollView.getSelectedItemPosition());
                                        ImageView imgView = (ImageView)curView.findViewById(R.id.imageView);
                                        TextView msgView = (TextView)curView.findViewById(R.id.messageText);
                                        
                                        imgView.setVisibility(View.INVISIBLE);
                                        msgView.setVisibility(View.VISIBLE);
                                }
                        };
                        
                        Handler handler = new Handler(Looper.getMainLooper());
                        handler.post(guiUpdate);
                }
        }

Definition at line 98 of file MessageListActivity.java.


The documentation for this class was generated from the following file:


google_glass_driver
Author(s): Nicholas Otero
autogenerated on Fri Aug 28 2015 10:51:45