Advertisement
Guest User

Untitled

a guest
Sep 20th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.23 KB | None | 0 0
  1. package tk.mikigal.hds;
  2.  
  3. import android.support.v7.app.AppCompatActivity;
  4. import android.os.Bundle;
  5. import android.view.Menu;
  6. import android.view.MenuItem;
  7. import android.view.View;
  8.  
  9. public class MeetActivity extends AppCompatActivity {
  10.  
  11.     @Override
  12.     protected void onCreate(Bundle savedInstanceState) {
  13.         super.onCreate(savedInstanceState);
  14.         setContentView(R.layout.activity_meet);
  15.     }
  16.  
  17.     @Override
  18.     public boolean onCreateOptionsMenu(Menu menu) {
  19.         // Inflate the menu; this adds items to the action bar if it is present.
  20.         getMenuInflater().inflate(R.menu.menu_meet, menu);
  21.         return true;
  22.     }
  23.  
  24.     @Override
  25.     public boolean onOptionsItemSelected(MenuItem item) {
  26.         // Handle action bar item clicks here. The action bar will
  27.         // automatically handle clicks on the Home/Up button, so long
  28.         // as you specify a parent activity in AndroidManifest.xml.
  29.         int id = item.getItemId();
  30.  
  31.         //noinspection SimplifiableIfStatement
  32.         if (id == R.id.action_settings) {
  33.             return true;
  34.         }
  35.  
  36.         return super.onOptionsItemSelected(item);
  37.     }
  38.  
  39.     public void testxd(View view){
  40.         System.out.println("test");
  41.     }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement