code-scanner icon indicating copy to clipboard operation
code-scanner copied to clipboard

How can we add text below frame ?

Open kartikterralogic opened this issue 2 years ago • 1 comments

There is no property to add text (up, down, right,left). Similar like whatsApp. Please help

kartikterralogic avatar Jun 29 '23 14:06 kartikterralogic

if you are using android studio you can use RelativeLayout.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

<com.budiyev.android.codescanner.CodeScannerView
    android:id="@+id/scanner_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="550dp"
    android:text="800362145621"
    android:textSize="24sp" />

</RelativeLayout>

ninjia0 avatar Jun 30 '23 08:06 ninjia0