Skip to content

Commit

Permalink
fixing missing buttons declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanDesi committed Apr 30, 2015
1 parent ccd9c26 commit 8e0a813
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class WearActivity extends Activity {
private static final int VOICE_RECOGNITION_REQUEST_CODE = 1001;
private GoogleApiClient apiClient;
private String remoteNodeId;
private ImageButton mbtSpeak, mbtRight, mbtLeft, mbtWalk;
private ImageButton mbtSpeak, mbtRight, mbtLeft, mbtWalk, mbtRightSidewalk, mbtLeftSidewalk;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -64,6 +64,8 @@ protected void onCreate(Bundle savedInstanceState) {
mbtLeft = (ImageButton) findViewById(R.id.btLeftSpin);
mbtRight = (ImageButton) findViewById(R.id.btRightSpin);
mbtWalk = (ImageButton) findViewById(R.id.btWalk);
mbtRightSidewalk = (ImageButton) findViewById(R.id.btRightWalk);
mbtLeftSidewalk = (ImageButton) findViewById(R.id.btLeftWalk);

apiClient = apiClientFactory();
checkVoiceRecognition();
Expand Down
6 changes: 3 additions & 3 deletions wear/src/main/res/layout/main_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
android:layout_height="32dp"
android:src="@drawable/right_walk_selector"
android:background="@color/white"
android:id="@+id/imageButton"
android:id="@+id/btRightWalk"
android:onClick="rightWalkMove"
android:layout_gravity="right|center_vertical"
android:layout_alignTop="@+id/btSpeak"
Expand All @@ -90,13 +90,13 @@
android:layout_height="32dp"
android:src="@drawable/left_walk_selector"
android:background="@color/white"
android:id="@+id/imageButton2"
android:id="@+id/btLeftWalk"
android:onClick="leftWalkMove"
android:layout_gravity="right|center_vertical"
android:layout_alignTop="@+id/btSpeak"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/btSpeak"
android:layout_alignBottom="@+id/imageButton" />
android:layout_alignBottom="@+id/btRightWalk" />


</RelativeLayout>
Expand Down

0 comments on commit 8e0a813

Please sign in to comment.