This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="200dp" | |
android:layout_gravity="top" | |
tools:context=".MainActivity"> | |
<EditText | |
android:id="@+id/editText" | |
android:layout_width="wrap_content" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="30dp" | |
android:layout_gravity="center" | |
android:gravity="center" | |
android:text="Vodka Drinks" | |
android:textColor="@color/White" | |
android:textSize="20dp" | |
android:textStyle="bold" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/colorPrimaryDark" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
//-------------------------------- | |
// Serial Connection | |
//------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------- | |
//Serial Connection Functions | |
//---------------------- | |
usbManager = (UsbManager) getSystemService(this.USB_SERVICE); | |
startButton = (Button) findViewById(R.id.buttonStart); | |
sendButton = (Button) findViewById(R.id.buttonSend); | |
orderButton = (Button) findViewById(R.id.btnorder); | |
clearButton = (Button) findViewById(R.id.buttonClear); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dialog myDialog; | |
String DrinkName="A Drink"; //Note these strings should never appear | |
String DrinkType="A Drink Type"; //Note these strings should never appear | |
public int Vodka_Measure; | |
public int Rum_Measure; | |
public int Gin_Measure; | |
public int Whiskey_Measure; | |
public int TonicWater_Measure; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--------------------------------------------- | |
// DRINK ITEMS / IMAGES ON CAROUSEL! | |
//--------------------------------------------- | |
carouselPicker1 = findViewById(R.id.carouselPicker1); | |
carouselPicker2 = findViewById(R.id.carouselPicker2); | |
carouselPicker3 = findViewById(R.id.carouselPicker3); | |
//VODKA BASED DRINKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--------------------------------------------- | |
// DRINK ITEMS / IMAGES ON CAROUSEL! | |
//--------------------------------------------- | |
carouselPicker1 = findViewById(R.id.carouselPicker1); | |
carouselPicker2 = findViewById(R.id.carouselPicker2); | |
carouselPicker3 = findViewById(R.id.carouselPicker3); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gkyf |