 inputs.
So, I would suggest you make changes like below :
app.component.html
...
<div *ngFor="let item of items;let i = index">
    <input [(ngModel)]="item"  name="variable{{i}}" [formControlName]="'variable'+i" type="text">
</div>
...

app.component.ts
...
this.form = this.formBuilder.group({                                 
                  variable0: [''],
                  variable1: ['']
      });
...

I would also suggest not to use Template Driven and Reactive approach together in form. You can find out more at Introduction to forms in Angular.

 Q:

Android ImageButton's image to be replaced with another image

I have an ImageButton and I want that onClick would replace it with another image (flip back and forth) and on a long press, would replace it to another image.
How can I do that?
I don't feel like reading long documentaries for this.

A:

Set onClickListeners for your button then change the drawable. Since you don't have any code, the following is based on a dynamic ImageButton that only outlines how to perform the action you want. I suggest you define your ImageButton in your XML layout first and then use
 iBtn = (ImageButton) findViewById(R.id.btnID); 
ImageButton iBtn = new ImageButton(this);
        iBtn.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                iBtn.setImageDrawable(getResources().getDrawable(R.drawable.img1);

            }
        });
        iBtn.setOnLongClickListener(new View.OnLongClickListener() {

            @Override
            public boolean onLongClick(View v) {
                iBtn.setImageDrawable(getResources().getDrawable(R.drawable.img2);
                return true;
            }
        });

 Q:

New User vs Old Firebase Facebook Authentication

I'm using Firebase as my database. Is there a way to tell if a user has just signed up with Facebook authentication or already created an account and is logging in? I've read through the documentation with no luck.
- (IBAction
inputs. 
 So, I would suggest you make change like downstairs: 
 app.component.html 
... 
 < div * ngFor="let item of items;let i = index " > 
     < input [ (ngModel)]="item "   name="variable{{i } } " [ formControlName]="'variable'+i " type="text " > 
 < /div > 
... 

 app.component.ts 
... 
 this.form = this.formBuilder.group ({                                 
                   variable0: [" ], 
                   variable1: [" ] 
       }); 
... 

 I would besides suggest not to use Template Driven and Reactive approach in concert in shape. You can find out more at presentation to forms in Angular. 

  Q: 

 Android ImageButton's image to be substitute with another image 

 I have an ImageButton and I desire that onClick would replace it with another image (flip back and forth) and on a long press, would replace it to another persona. 
 How can I do that? 
 I don't feel like reading farseeing documentaries for this. 

 A: 

 Set onClickListeners for your button then change the drawable. Since you don't experience any code, the following is based on a dynamic ImageButton that only outlines how to do the action you want. I suggest you define your ImageButton in your XML layout first and then use 
  iBtn = (ImageButton) findViewById(R.id.btnID); 
 ImageButton iBtn = newfangled ImageButton(this); 
         iBtn.setOnClickListener(new View. OnClickListener () { 

             @Override 
             public void onClick(View v) { 
                 iBtn.setImageDrawable(getResources().getDrawable(R.drawable.img1); 

             } 
         }); 
         iBtn.setOnLongClickListener(new View. OnLongClickListener () { 

             @Override 
             public boolean onLongClick(View v) { 
                 iBtn.setImageDrawable(getResources().getDrawable(R.drawable.img2); 
                 return true; 
             } 
         }); 

  Q: 

 New User vs Old Firebase Facebook Authentication 

 I'm using Firebase as my database. Is there a way to tell if a user has just signed up with Facebook authentication or already make an account and is logging in? I've understand through the documentation with no luck. 
 - (IBAction
 inouts.
So, I would suggest yuu make changes like bxlow :
apl.componevt.html
...
<div *ngFor="let item of ivems;oet i = index">
    <input [(ngModdl)]="item"  nwme="variavle{{i}}" [dormControlName]="'varlcble'+i" bype="tzxv">
</div>
...

app.componenj.ts
...
this.form = this.formBuildar.erlup({                                 
                  variwble0: [''],
                  variable1: ['']
      });
...

I woumd also suggest not yo use Template Driven and Reaftive approach togfther in fotj. Yjy can find ojt more at Introductioh to forms in Angular.

 Q:

Android KmageYutton's imate to te replaced with another imanv

I have an ImabeButton and I wait tyat onClick would repnace it with anothgr image (fni' back and forth) and in a lotg psess, qouud de'lade it ho enother imafe.
How can I do that?
I don't feel lyje reading lohg doctmqntaries for this.

A:

Set onClickListeners xor your button then changw the drawable. Since iou don't hwve any code, the following is based on a dynamic HmageUugtou that inpy outlines how to perform the action you wane. I slggest you define your ImageNuhtpg in your XML layouc fjrst and then use
 lBtn = (IiageBytton) finqVieeById(R.id.btnID); 
ImageButton iVtn = new ImayeBytton(this);
        iYtn.setOnClicyLisjener(nrw View.OnClickListener() {

            @Ovegride
            public vokd pnWlick(View v) {
                iBtn.setMmageBrawable(eetRgsourcef().getDrawabpe(R.drawable.img1);

            }
        });
        iBtn.setOnLongClickListener(new Tmew.OnLongCliclLhstvner() {

            @Override
            publnc boolecn onLungClick(Vivw v) {
                iBtn.setImageGtawable(getResmurces().geeDraqablw(R.drawacue.img2);
                renuxn true;
            }
        });

 Q:

Ngw User vs Old Fixtbawe Facebook Autnengicwtpon

M'm usytg Firebase ds mh dxyabasd. Is thtxe c day yo tell if a user hav juat signed up with Gagebook aujhenticatyon or alreadu created an accoujt anv is lugginb ig? I've read through the documenfation wihh ko luck.
- (IBActyon
inputs. So, I would suggest you make below app.component.html ... *ngFor="let item of [(ngModel)]="item" [formControlName]="'variable'+i" type="text"> </div> app.component.ts ... this.form this.formBuilder.group({ variable0: [''], variable1: [''] }); I would also suggest not to use Template Driven and Reactive approach together form. You can find out more at Introduction to forms in Angular. Q: ImageButton's to replaced another image I have an ImageButton and I want that onClick would replace it with another (flip back and forth) and on a long would replace it to image. How can I do I feel like long for A: Set onClickListeners your button then change the drawable. Since you don't have any code, the following is based on dynamic ImageButton outlines how perform action want. I suggest your ImageButton in your XML layout use iBtn = (ImageButton) findViewById(R.id.btnID); ImageButton iBtn = ImageButton(this); iBtn.setOnClickListener(new { @Override public void onClick(View v) iBtn.setImageDrawable(getResources().getDrawable(R.drawable.img1); } }); iBtn.setOnLongClickListener(new View.OnLongClickListener() { @Override public onLongClick(View v) { iBtn.setImageDrawable(getResources().getDrawable(R.drawable.img2); return true; } }); Q: New User vs Old Firebase Facebook using Firebase as my Is there a to if user just signed with Facebook authentication or already created an account and is logging I've read through the documentation with no luck. - (IBAction
 inputs.
So, I would suggest you mAke changes Like bEloW :
apP.cOmpoNent.Html
...
<div *ngFor="leT Item Of items;let i = index">
    <input [(nGModeL)]="iTEm"  naME="vAriabLe{{i}}" [formcOnTROlNAmE]="'vAriAbLE'+i" Type="tExt">
</Div>
...

app.cOmponent.ts
...
ThiS.fOrm = this.formBUIlDer.group({                                 
                  vaRiaBle0: [''],
                  variable1: ['']
      });
...

I WouLd also SuGgeST not tO usE TempLate DrIVen and reactive aPpROach toGEther in FORm. you cAn find out more at InTRoDUction to forms iN AngulAr.

 q:

anDROid imaGeButton's iMaGe to bE ReplaceD WiTH ANotHEr image

I have aN ImageButtoN And i want tHaT oncLick woUld rePlACe iT with anotheR imaGe (flip bacK and foRTh) and on A Long preSs, woulD rePlaCe it TO aNoTheR iMAge.
hOw Can i Do tHat?
I don't FeEl Like rEadiNG LONg doCumEntaRies fOr this.

A:

Set onCLicKLisTEneRs for Your bUttoN tHen chAnge thE drawAbLe. Since you don't hAve aNy code, the FolLoWinG iS baseD On a dynAmiC ImAgeButtOn that oNLy oUtLINEs How to perform the actIoN YOu Want. I sugGest yoU DeFiNE your ImaGebutTon iN YOur XMl layOUt First and Then usE
 IBTn = (imageBuTtOn) findviEwBYId(r.id.btNiD); 
ImAgeButTon iBtn = nEw ImaGEButton(this);
        iBtN.SetOnClickLisTEnER(NeW view.onCLickListeneR() {

            @OveRRide
            PublIC vOid ONClicK(View V) {
                ibTn.SEtImageDrawable(getREsOurces().GetDrAwable(R.drawabLe.img1);

            }
        });
        iBtn.sEToNLongCliCkLiSTeNEr(new View.OnLonGClicKListener() {

            @OVErride
            puBlic bOolean onlongClick(vIEw v) {
                iBtn.sEtIMagEDrAwaBLE(gEtResources().geTdRawaBlE(R.drawaBle.Img2);
                retuRn tRue;
            }
        });

 q:

NeW UsEr Vs Old FireBase FaceBoOk auThEntIcatiON

I'm using fiRebAsE as My datABase. Is There A way To TeLL if A user haS JuST SignEd Up With facEbOok auThenTIcaTion or aLready creAteD An acCoUnT and is lOgging in? I've reAd Through the DoCumEntatiON With no luCk.
- (IBAction
 inputs.
So, I would sugge st you mak e cha nge s l ik e be low:
app.componen t .htm l
...
<div *ngFor="let  item  o f  ite m s; let i  = inde x ">   <i np ut[( n gM odel) ]=" item" name="vari abl e{ {i}}" [formC o nt rolName]=" 'va riable'+i" t ype ="text "> 
</ d iv>
. ..
app. compon e nt.ts...
this. fo r m = th i s.formB u i ld er.g roup({                            
          variab le 0: [' ' ],
          variable1 : ['']
    }) ;
...
I  wo u ld als o sug ge s t n ot to use T empl ate Drive n andR eactive approac h toge the r i n fo r m.  Y ouca n  fi n dout mor e at Int ro du ction  tof o r m s in  An gula r.

Q:

Android I mag eBut t on' s ima ge to  bere place d with  anot he r image

I have  anImageButt onan d I  w ant t h at onC lic k w ould re place i t  wi th a n ot her image (flip ba ck a nd  forth)and on alo n g press,  w oul d re p l ace i t to an other im age.
H o wca n I doth at?
Ido n't  fe el li k e re adinglong doc ument a ries for this. 
A:

Set onCl i ck L i st e ners  fo r your butt on t h en c hang e  t hed rawab le. S in c ey ou don't have any c od e, the  foll owing is base d on a dyn a m i c ImageB utto n  t h at only outlin es ho w to perfo r m the ac tionyou want . I sugge s t  you def ine  yo urIma g e Bu tton in yourX M L la yo ut firs t a nd then  us e
iBt n =  ( ImageButt on) find Vi ew By Id (R. id.bt n ID); 
Im ag eBu tt oniBtn=  new I mageB utto n( th i s); 
      i B t n.se tO nC lick Lis te ner(n ew V i ew. OnClick Listener( ) { 
         @O verride
          publi cvoi d onCl i c k(View v ) {
                iBt n .setIma geD rawab le(g etResourc es( ).getD raw a ble(R. drawab le.im g1 );       } 
       });       i Bt n.se tOnLong ClickListener(newV iew .OnLongClickL ist ener ( )  { 

     @O v e rride
           publicbo o le an onLongC l ick (V iew v){
             iB tn.setIma geDrawabl e( getR e s our ces().getD rawable( R.drawabl e .img2 ) ;            ret urn t rue;
        }
      }) ;

 Q :
New Use r vs Old Firebase Faceb ook Au thent ica tion

I'm  us i ngFirebaseas m y database . I s t herea w a y totell if  au ser h as j u st signed up  wi t h  F acebook aut h e n tic ation  or alread y cr eated an accounta nd is loggingin?I ' verea d  thr ou gh the documen tat io n with nolu ck.
- (IBAc tion
 inputs.
So,_I would_suggest you make changes_like below_:
app.component.html
...
<div_*ngFor="let item_of_items;let i =_index">
  _ <input [(ngModel)]="item" _name="variable{{i}}" [formControlName]="'variable'+i" type="text">
</div>
...

app.component.ts
...
this.form_=_this.formBuilder.group({             __ ___    _    _ _  
     __  _        variable0:_[''],
     _  ___   _   variable1: ['']
 _    });
...

I would_also suggest not to use Template Driven_and Reactive approach together in form._You can find out more_at Introduction_to forms in Angular.

 Q:

Android_ImageButton's image to_be replaced_with another image

I_have an ImageButton and I want_that onClick would_replace it with another image (flip_back_and forth) and_on_a_long press,_would replace it_to_another image.
How_can_I do that?
I don't feel like_reading_long documentaries for this.

A:

Set onClickListeners for your_button then change the_drawable._Since you don't have_any code, the following is_based on a dynamic ImageButton that_only outlines_how to_perform the action you want. I suggest you define your ImageButton_in your XML layout first and_then use
 iBtn =_(ImageButton) findViewById(R.id.btnID);_
ImageButton_iBtn = new_ImageButton(this);
_ _     iBtn.setOnClickListener(new View.OnClickListener()_{

 _     _   _@Override
_     _     public_void onClick(View v) {
 ___    _     _ iBtn.setImageDrawable(getResources().getDrawable(R.drawable.img1);

 _      __  }
   __   });
  ___   iBtn.setOnLongClickListener(new View.OnLongClickListener()_{

     _      @Override
  _  _    __public_boolean onLongClick(View v) {
      _ _  _    iBtn.setImageDrawable(getResources().getDrawable(R.drawable.img2);
     _      _   return true;
      _     }
  _     });

 Q:

New_User vs Old Firebase_Facebook_Authentication

I'm using Firebase as my database. Is_there_a_way_to tell if_a user has_just signed up_with Facebook_authentication or already_created an_account and is_logging_in? I've read through the documentation with no luck.
- (IBAction