how to slide down the action bar in android to display something like coversation -


i want display conversation between me , admin when dragged action bar. since new android programming dont know how slide action bar also. following code decoy(dummy) code, coz not letting me post question without sample code. please me drag or slide down action bar display conversation. thank you.

          import android.support.v7.app.actionbaractivity;           import android.os.bundle;           import android.view.menu;           import android.view.menuitem;           import android.widget.button;           import android.view.view;             public class mainactivity extends actionbaractivity {              @override            protected void oncreate(bundle savedinstancestate) {           super.oncreate(savedinstancestate);          setcontentview(r.layout.activity_main);         button bt=(button)findviewbyid(r.id.button);        bt.setonclicklistener(new view.onclicklistener() {          public void onclick(view v) {         }          {         }        }         @override       public boolean oncreateoptionsmenu(menu menu) {       // inflate menu; adds items action bar if               present.       getmenuinflater().inflate(r.menu.menu_main, menu);       return true;       }      @override      public boolean onoptionsitemselected(menuitem item) {     // handle action bar item clicks here. action bar     // automatically handle clicks on home/up button, long     // specify parent activity in androidmanifest.xml.     int id = item.getitemid();      //noinspection simplifiableifstatement     if (id == r.id.action_settings) {         return true;     }      return super.onoptionsitemselected(item);      }       }  


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -