public
Created

I hate OCL.

  • Download Gist
TropiaryStart.java
Java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
package com.signedlongint.tropiary;
 
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
 
public class TropiaryStart extends Activity implements View.OnClickListener {
 
Button bSearch, bSaved, bRandom;
 
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initialize();
setContentView(R.layout.main);
}
 
private void initialize() {
bSearch = (Button) findViewById(R.id.bSearch);
bSaved = (Button) findViewById(R.id.bSaved);
bRandom = (Button) findViewById(R.id.bRandom);
bSearch.setOnClickListener(this);
bSaved.setOnClickListener(this);
bRandom.setOnClickListener(this);
}
 
public void onClick(View v) {
switch (v.getId()) {
case R.id.bSearch:
break;
case R.id.bSaved:
break;
case R.id.bRandom:
break;
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.