Skip to content

@sli /TropiaryStart.java
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
I hate OCL.
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;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.