source: other-projects/tipple-android/tipple-ar/tipple-standalone-hpg/src/org/greenstone/android/tipple/base/ARLauncherView.java@ 26528

Last change on this file since 26528 was 26528, checked in by davidb, 11 years ago

Code developed by the Tipple-AR Smoke and Mirrors team, based on the main tipple trunk

File size: 1.0 KB
Line 
1package org.greenstone.android.tipple.base;
2
3import android.content.Context;
4import android.content.Intent;
5import android.view.Display;
6import android.view.View;
7import android.view.ViewGroup;
8import android.widget.Button;
9import android.widget.LinearLayout;
10
11public class ARLauncherView extends LinearLayout {
12 protected Button ar_mode_button_;
13 //private ArDirection direction;***
14
15 public ARLauncherView(final Context context) {
16 super(context);
17
18 LayoutParams layout_params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT, 1);
19 //direction = new ArDirection(context, layout_params);**********>
20
21 ar_mode_button_ = new Button(context);
22 ar_mode_button_.setLayoutParams(layout_params);
23 ar_mode_button_.setText("AR Mode");
24 ar_mode_button_.setEnabled(true);
25
26 ar_mode_button_.setOnClickListener(new View.OnClickListener() {
27 public void onClick(View v) {
28 context.startActivity(new Intent(context, ARActivity.class));
29 }
30 });
31
32 addView(ar_mode_button_);
33 }
34}
Note: See TracBrowser for help on using the repository browser.