Exemplo n.º 1
0
        //public override bool OnOptionsItemSelected(IMenuItem item)
        //{
        //    switch (item.ItemId)
        //    {
        //        case Android.Resource.Id.Home:
        //            Activity.SupportFragmentManager.BeginTransaction().Remove(this).Commit();
        //            return true;
        //        default:
        //            return base.OnOptionsItemSelected(item); ;
        //    }
        //}
        #endregion

        #region Methods
        private void GetElements(View view)
        {
            diagnosticsBtn    = view.FindViewById <Button>(Resource.Id.makeorder_diagnostics_btn);
            mechanicalBtn     = view.FindViewById <Button>(Resource.Id.makeorder_mechanical_btn);
            bodypaintBtn      = view.FindViewById <Button>(Resource.Id.makeorder_bodypaint_btn);
            extrasBtn         = view.FindViewById <Button>(Resource.Id.makeorder_extras_btn);
            wheelalignBtn     = view.FindViewById <Button>(Resource.Id.makeorder_wheelalign_btn);
            commentBtn        = view.FindViewById <Button>(Resource.Id.makeorder_comment_btn);
            completeBtn       = view.FindViewById <Button>(Resource.Id.makeorder_complete_btn);
            diagnosticsLayout = view.FindViewById <TextInputLayout>(Resource.Id.makeorder_input_layout_diagnostics);
            mechanicalLayout  = view.FindViewById <TextInputLayout>(Resource.Id.makeorder_input_layout_mechanical);
            bodypaintLayout   = view.FindViewById <TextInputLayout>(Resource.Id.makeorder_input_layout_bodypaint);
            extrasLayout      = view.FindViewById <TextInputLayout>(Resource.Id.makeorder_input_layout_extras);
            wheelalignLayout  = view.FindViewById <TextInputLayout>(Resource.Id.makeorder_input_layout_wheelalign);
            commentLayout     = view.FindViewById <TextInputLayout>(Resource.Id.makeorder_input_layout_comment);
            diagnosticsText   = view.FindViewById <EditTextClearBtn>(Resource.Id.makeorder_diagnostics_text);
            mechanicalText    = view.FindViewById <EditTextClearBtn>(Resource.Id.makeorder_mechanical_text);
            bodypaintText     = view.FindViewById <EditTextClearBtn>(Resource.Id.makeorder_bodypaint_text);
            extrasText        = view.FindViewById <EditTextClearBtn>(Resource.Id.makeorder_extras_text);
            wheelalignText    = view.FindViewById <EditTextClearBtn>(Resource.Id.makeorder_wheelalign_text);
            commentText       = view.FindViewById <EditTextClearBtn>(Resource.Id.makeorder_comment_text);
            carName           = view.FindViewById <TextView>(Resource.Id.makeorder_car_name);
            carLeftBtn        = view.FindViewById <ImageView>(Resource.Id.makeorder_car_left);
            carRightBtn       = view.FindViewById <ImageView>(Resource.Id.makeorder_car_right);
            carAva            = view.FindViewById <ImageView>(Resource.Id.makerorder_car_ava);
        }
Exemplo n.º 2
0
 private void GetElements(View view)
 {
     carAva      = view.FindViewById <ImageView>(Resource.Id.fillfuel_car_ava);
     carLeftBtn  = view.FindViewById <ImageView>(Resource.Id.fillfuel_car_left);
     carRightBtn = view.FindViewById <ImageView>(Resource.Id.fillfuel_car_right);
     carName     = view.FindViewById <TextView>(Resource.Id.fillfuel_car_name);
     millage     = view.FindViewById <EditTextClearBtn>(Resource.Id.fillfuel_millage);
     cost        = view.FindViewById <EditTextClearBtn>(Resource.Id.fillfuel_cost);
     amount      = view.FindViewById <EditTextClearBtn>(Resource.Id.fillfuel_amount);
     completeBtn = view.FindViewById <Button>(Resource.Id.fillfuel_complete_btn);
 }