Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hide connect button after press

  • Loading branch information...
commit 101c8e1bdf5453291bdd49f3c9309006e19a3ef8 1 parent f5b8a34
@jonasb jonasb authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/se/forskningsavd/MainActivity.java
View
3  src/se/forskningsavd/MainActivity.java
@@ -30,11 +30,12 @@ public void onTargetImageChanged(Bitmap bitmap) {
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
- Button button = new Button(this);
+ final Button button = new Button(this);
button.setText("Connect");
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
mCommunicator.connect();
+ button.setVisibility(View.GONE);
}
});
layout.addView(button);
Please sign in to comment.
Something went wrong with that request. Please try again.