First Way:
<Button
android:id="@+id/btnLogin"
style="@style/btnStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnFacebook"
android:layout_alignRight="@+id/btnFacebook"
android:layout_below="@id/etPassword"
android:layout_centerInParent="true"
android:onClick="goHome"
android:text="Login"/>
<Button
android:id="@+id/btnFacebook"
style="@style/btnFacebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textOR"
android:layout_marginTop="10dp"
android:onClick="facebookSignUp"
android:text=" Signup with Facebook "/>
<Button
android:id="@+id/btnGooglePlus"
style="@style/btnGoogle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnFacebook"
android:layout_alignRight="@+id/btnFacebook"
android:layout_below="@id/btnFacebook"/>
Second Way:
<Button
android:id="@+id/btnLogin"
style="@style/btnStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/btnFacebook"
android:layout_alignRight="@id/btnFacebook"
android:layout_below="@id/etPassword"
android:layout_centerInParent="true"
android:onClick="goHome"
android:text="Login"/>
<Button
android:id="@id/btnFacebook"
style="@style/btnFacebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textOR"
android:layout_marginTop="10dp"
android:onClick="facebookSignUp"
android:text=" Signup with Facebook "/>
<Button
android:id="@+id/btnGooglePlus"
style="@style/btnGoogle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/btnFacebook"
android:layout_alignRight="@id/btnFacebook"
android:layout_below="@id/btnFacebook"/>
Third Way:
<Button
android:id="@+id/btnLogin"
style="@style/btnStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/btnFacebook"
android:layout_alignRight="@id/btnFacebook"
android:layout_below="@id/etPassword"
android:layout_centerInParent="true"
android:onClick="goHome"
android:text="Login"/>
<Button
android:id="@+id/btnFacebook"
style="@style/btnFacebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textOR"
android:layout_marginTop="10dp"
android:onClick="facebookSignUp"
android:text=" Signup with Facebook "/>
<Button
android:id="@+id/btnGooglePlus"
style="@style/btnGoogle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/btnFacebook"
android:layout_alignRight="@id/btnFacebook"
android:layout_below="@id/btnFacebook"/>
Two questions:
- Output of all three ways of initialising
btnFacebook
is same. How?
- Since output is same, means XML Parser compilation result is same. So how exactly does initialising of resources is done and how are they attached to ViewTree?
Any official documentation with explanation is appreciated. Thanks In Advance :)