Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5 from michaelorbotix/master
Browse files Browse the repository at this point in the history
Updated UISample to use Calibration Button Widget
  • Loading branch information
michaelorbotix committed Oct 30, 2012
2 parents a3c29ba + 5ee129f commit c7bfbdd
Show file tree
Hide file tree
Showing 108 changed files with 112 additions and 2,745 deletions.
Binary file modified samples/AchievementSample/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/ButtonDrive/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/Collisions/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/HelloWorld/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/Locator/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/MacroLoader/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/MacroSample/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/MultiplayerLobby/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/OptionFlags/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/OrbBasicSample/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/SelfLevel/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/SphereMotionTeapot/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/StreamingExample/libs/RobotLibrary.jar
Binary file not shown.
Binary file modified samples/TwoPhonesOneBall/libs/RobotLibrary.jar
Binary file not shown.
Empty file modified samples/UISample/.classpath 100644 → 100755
Empty file.
Empty file modified samples/UISample/.project 100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions samples/UISample/AndroidManifest.xml 100644 → 100755
Expand Up @@ -4,6 +4,7 @@
android:versionCode="1"
android:versionName="1.0">

<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

Expand Down
Empty file modified samples/UISample/README.md 100644 → 100755
Empty file.
Empty file modified samples/UISample/ant.properties 100644 → 100755
Empty file.
Empty file modified samples/UISample/build.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/calibration_view.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/colorPicker.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/default.properties 100644 → 100755
Empty file.
Empty file modified samples/UISample/joystick.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified samples/UISample/libs/RobotLibrary.jar
Binary file not shown.
Empty file modified samples/UISample/project.properties 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/anim/appear.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/anim/dropdown_in.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/anim/dropdown_out.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/anim/flip_hide.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/anim/flip_show.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/drawable-hdpi/arrow_down.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/arrow_up.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/calibrate_dial.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/calibrate_header.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/calibrate_knob.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/calibrate_wheel.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/color_wheel.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/dialog_bg.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/dialog_button.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/dialog_button_big.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/popover.9.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/popover_background.9.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/progress_background.9.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/robot_row_background.9.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/roll_button.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/slidetosleep_arrow.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/slidetosleep_background.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/startup_retry.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified samples/UISample/res/drawable-hdpi/startup_retry_button.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/drawable-hdpi/startup_retry_pressed.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-hdpi/status_background.9.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-hdpi/toggle_button.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-hdpi/toggle_slider.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-mdpi/calibrate_bg.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-mdpi/calibrate_header.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-mdpi/calibrate_knob.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-mdpi/calibrate_wheel.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-mdpi/slidetosleep_arrow.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-mdpi/slidetosleep_background.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-port-hdpi/dialog_bg.png 100644 → 100755
Empty file modified samples/UISample/res/drawable-xhdpi/blue_button_background.png 100644 → 100755
Empty file modified samples/UISample/res/layout-land/hsb_color_picker.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/layout-port/hsb_color_picker.xml 100644 → 100755
Empty file.
27 changes: 0 additions & 27 deletions samples/UISample/res/layout/action_item.xml

This file was deleted.

22 changes: 0 additions & 22 deletions samples/UISample/res/layout/calibrate.xml

This file was deleted.

78 changes: 59 additions & 19 deletions samples/UISample/res/layout/main.xml 100644 → 100755
@@ -1,45 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
To use the JoystickView's extra attributes, be sure to include a namespace for your project. Note the:
xmlns:app="http://schemas.android.com/apk/res/orbotix.uisample"
This creates a new namespace, "app", which allows the use of the JoystickView's "puck_radius" attribute.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/orbotix.uisample"

android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ff888888"
>
android:background="#ff888888" >

<Button
android:id="@+id/color_button"
style="@style/ControlButton"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:text="Color"
android:layout_alignParentTop="true"
android:onClick="onColorClick"
/>
android:text="Color" />

<Button
android:id="@+id/calibration_button_above"
style="@style/ControlButton"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:text="O" />

<Button
android:id="@+id/calibration_button_right"
style="@style/ControlButton"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="O" />

<Button
android:id="@+id/calibration_button_left"
style="@style/ControlButton"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="O" />

<Button
android:id="@+id/calibration_button_below"
style="@style/ControlButton"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="O" />

<orbotix.robot.widgets.joystick.JoystickView
android:id="@+id/joystick"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
app:puck_radius="40dp"
android:layout_centerVertical="true"
app:edge_overlap="20dp"
/>
app:puck_radius="30dp" />

<orbotix.robot.widgets.calibration.CalibrationView
android:id="@+id/calibration"
<orbotix.view.calibration.CalibrationButtonView
android:id="@+id/calibration_above"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
android:layout_height="fill_parent" />

</RelativeLayout>
<orbotix.view.calibration.CalibrationButtonView
android:id="@+id/calibration_below"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

<orbotix.view.calibration.CalibrationButtonView
android:id="@+id/calibration_left"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

<orbotix.view.calibration.CalibrationButtonView
android:id="@+id/calibration_right"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

<orbotix.view.calibration.CalibrationView
android:id="@+id/calibration_two_finger"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

</RelativeLayout>
Empty file modified samples/UISample/res/layout/popover.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/layout/robot_picker_cell.xml 100644 → 100755
Empty file.
14 changes: 0 additions & 14 deletions samples/UISample/res/layout/sphero_world_web_view.xml

This file was deleted.

Empty file modified samples/UISample/res/layout/startup.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/layout/title_space.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/values/attrs.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/values/strings.xml 100644 → 100755
Empty file.
Empty file modified samples/UISample/res/values/styles.xml 100644 → 100755
Empty file.
70 changes: 0 additions & 70 deletions samples/UISample/src/orbotix/robot/animation/DrawnAnimation.java

This file was deleted.

0 comments on commit c7bfbdd

Please sign in to comment.