content: package com.balysv.materialripple.demo;
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.v7.app.ActionBarActivity;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.ArrayAdapter;
  import android.widget.ListView;
  import android.widget.Toast;
  
  import java.util.UUID;
  
  public class DemoListActivity extends ActionBarActivity implements AdapterView.OnItemClickListener {
  
      private final static String[] data;
  
      static {
          data = new String[50];
          for (int i = 0; i < data.length; i++) {
              data[i] = UUID.randomUUID().toString();
          }
      }
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.demo_list);
          ListView listView = (ListView) findViewById(R.id.list);
          listView.setAdapter(new ArrayAdapter<>(this, R.layout.demo_list_item, android.R.id.text1, data));
          listView.setOnItemClickListener(this);
          listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
              @Override public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
                  if(position%2==0){
                      Toast.makeText(DemoListActivity.this, "long item: " + position +" and not consumed", Toast.LENGTH_SHORT).show();
                      return false;
                  }
                  Toast.makeText(DemoListActivity.this, "long item: " + position +" and consumed", Toast.LENGTH_SHORT).show();
                  return true;
              }
          });
      }
  
      @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
          Toast.makeText(this, "Rippled item: " + position, Toast.LENGTH_SHORT).show();
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.menu_button, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          int id = item.getItemId();
          if (id == R.id.switch_button) {
              startActivity(new Intent(this, DemoActivity.class));
              finish();
              return true;
          }
          return super.onOptionsItemSelected(item);
      }
  }
  