Android Open Source - Jumper Example Activity






From Project

Back to project page Jumper.

License

The source code is released under:

Copyright (c) 2011 Happytap Doug Tangren & Ryan Gravener Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwar...

If you think the Android project Jumper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.happytap;
/* w  w w.  j a va2s .c om*/
import java.util.Arrays;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.happytap.JumpDialog.OnJumpListener;

public class ExampleActivity extends Activity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    Toast.makeText(ExampleActivity.this, "hi", Toast.LENGTH_LONG);
    final Button btn = (Button) findViewById(R.id.push);
    btn.setOnClickListener(new View.OnClickListener() {
      public void onClick(View v) {
        new JumpDialog(ExampleActivity.this, new OnJumpListener() {
          public void onJump(CharSequence c) {
            btn.setText("selected " + c);
              Toast.makeText(ExampleActivity.this, "selected " + c, Toast.LENGTH_LONG);
            }
        }).only(
            Arrays.asList("J", "U", "M", "P")).inRowsOf(6).show();
      }
    });
  }

  
}




Java Source Code List

com.happytap.ExampleActivity.java
com.happytap.JumpDialog.java