package com.example.android.boardingpass; /* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import android.os.Bundle; import android.support.v7.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { //TODO (3) Create a data binding instance called mBinding of type ActivityMainBinding @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // TODO (4) Set the Content View using DataBindingUtil to the activity_main layout // TODO (5) Load a BoardingPassInfo object with fake data using FakeDataUtils // TODO (9) Call displayBoardingPassInfo and pass the fake BoardingInfo instance } private void displayBoardingPassInfo(BoardingPassInfo info) { // TODO (6) Use mBinding to set the Text in all the textViews using the data in info // TODO (7) Use a SimpleDateFormat formatter to set the formatted value in time text views // TODO (8) Use TimeUnit methods to format the total minutes until boarding } }