Techno Blender
Digitally Yours.

How to Build a QR Code Android App using Firebase?

0 30


<?xml version="1.0" encoding="utf-8"?>

<LinearLayout 

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:orientation="vertical"

    android:background="@drawable/back_qr"

    android:gravity="center_horizontal"

    tools:context=".MainActivity">

  

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="MY QR CODE"

        android:textSize="24sp"

        android:textStyle="bold"

        android:fontFamily="@font/bold"

        android:textColor="@color/white"

        android:layout_marginTop="50dp"/>

  

    <androidx.cardview.widget.CardView

        android:layout_marginTop="35dp"

        android:layout_width="290dp"

        android:layout_height="350dp"

        app:cardCornerRadius="25dp">

        

        <ImageView

            android:id="@+id/img_qr"

            android:layout_width="match_parent"

            android:layout_height="match_parent"

            android:scaleType="fitCenter">

        </ImageView>

        

    </androidx.cardview.widget.CardView>

  

    <androidx.cardview.widget.CardView

        android:layout_width="300dp"

        android:layout_height="80dp"

        android:layout_marginTop="20dp"

        app:cardCornerRadius="50dp"

        android:backgroundTint="#5754D3">

        <RelativeLayout

            android:layout_width="wrap_content"

            android:layout_height="wrap_content">

            

            <com.google.android.material.floatingactionbutton.FloatingActionButton

                android:layout_width="43dp"

                android:layout_height="43dp"

                android:id="@+id/btnQr"

                android:layout_marginLeft="17dp"

                android:layout_marginTop="20dp"

                style="@style/floating_yellow">

            </com.google.android.material.floatingactionbutton.FloatingActionButton>

              

          <TextView

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                android:layout_marginTop="15dp"

                android:text="Generate Your Qr Code"

                android:layout_marginLeft="80dp"

                android:textColor="@color/white"

                android:textStyle="bold"

                android:fontFamily="@font/bold"

                android:textSize="16sp">

            </TextView>

  

                <EditText

                    android:id="@+id/edtgen"

                    android:layout_width="wrap_content"

                    android:layout_height="wrap_content"

                    android:hint="Enter your Section Here"

                    android:background="@null"

                    android:layout_marginTop="45dp"

                    android:layout_marginLeft="80dp"

                    android:textColor="@color/white"

                    android:textColorHint="@color/white"

                    android:textSize="12sp" />

        </RelativeLayout>

  

    </androidx.cardview.widget.CardView>

  

    <com.google.android.material.floatingactionbutton.FloatingActionButton

        android:id="@+id/btnScan"

        android:layout_width="50dp"

        android:layout_height="50dp"

        style="@style/floating_green"

        android:layout_marginTop="60dp"

        android:outlineSpotShadowColor="@color/black"

        android:outlineAmbientShadowColor="@color/black"/>

  

</LinearLayout>


<?xml version="1.0" encoding="utf-8"?>

<LinearLayout 

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:orientation="vertical"

    android:background="@drawable/back_qr"

    android:gravity="center_horizontal"

    tools:context=".MainActivity">

  

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="MY QR CODE"

        android:textSize="24sp"

        android:textStyle="bold"

        android:fontFamily="@font/bold"

        android:textColor="@color/white"

        android:layout_marginTop="50dp"/>

  

    <androidx.cardview.widget.CardView

        android:layout_marginTop="35dp"

        android:layout_width="290dp"

        android:layout_height="350dp"

        app:cardCornerRadius="25dp">

        

        <ImageView

            android:id="@+id/img_qr"

            android:layout_width="match_parent"

            android:layout_height="match_parent"

            android:scaleType="fitCenter">

        </ImageView>

        

    </androidx.cardview.widget.CardView>

  

    <androidx.cardview.widget.CardView

        android:layout_width="300dp"

        android:layout_height="80dp"

        android:layout_marginTop="20dp"

        app:cardCornerRadius="50dp"

        android:backgroundTint="#5754D3">

        <RelativeLayout

            android:layout_width="wrap_content"

            android:layout_height="wrap_content">

            

            <com.google.android.material.floatingactionbutton.FloatingActionButton

                android:layout_width="43dp"

                android:layout_height="43dp"

                android:id="@+id/btnQr"

                android:layout_marginLeft="17dp"

                android:layout_marginTop="20dp"

                style="@style/floating_yellow">

            </com.google.android.material.floatingactionbutton.FloatingActionButton>

              

          <TextView

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                android:layout_marginTop="15dp"

                android:text="Generate Your Qr Code"

                android:layout_marginLeft="80dp"

                android:textColor="@color/white"

                android:textStyle="bold"

                android:fontFamily="@font/bold"

                android:textSize="16sp">

            </TextView>

  

                <EditText

                    android:id="@+id/edtgen"

                    android:layout_width="wrap_content"

                    android:layout_height="wrap_content"

                    android:hint="Enter your Section Here"

                    android:background="@null"

                    android:layout_marginTop="45dp"

                    android:layout_marginLeft="80dp"

                    android:textColor="@color/white"

                    android:textColorHint="@color/white"

                    android:textSize="12sp" />

        </RelativeLayout>

  

    </androidx.cardview.widget.CardView>

  

    <com.google.android.material.floatingactionbutton.FloatingActionButton

        android:id="@+id/btnScan"

        android:layout_width="50dp"

        android:layout_height="50dp"

        style="@style/floating_green"

        android:layout_marginTop="60dp"

        android:outlineSpotShadowColor="@color/black"

        android:outlineAmbientShadowColor="@color/black"/>

  

</LinearLayout>

FOLLOW US ON GOOGLE NEWS

Read original article here

Denial of responsibility! Techno Blender is an automatic aggregator of the all world’s media. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials, please contact us by email – [email protected]. The content will be deleted within 24 hours.

Leave a comment