testcamerav1
Version:
An example function camera gertec
52 lines (44 loc) • 1.8 kB
text/xml
<LinearLayout 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"
android:orientation="vertical"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="Ler código de barras"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textSize="36sp"
android:textStyle="bold" />
</LinearLayout>
<Button
android:id="@+id/btnLigarFlash"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Flash - Desligado"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"/>
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="300dp"
android:layout_marginTop="8dp" />
<EditText
android:id="@+id/textLeitura"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:editable="false"
android:ems="10"
android:enabled="false"
android:gravity="start|top"
android:inputType="textMultiLine" />
</LinearLayout>