/
fragment_find_product.xml
44 lines (40 loc) 路 1.67 KB
/
fragment_find_product.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:id="@+id/imageSearch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/spacing_normal"
android:layout_marginStart="@dimen/spacing_normal"
app:srcCompat="@drawable/img_scan" />
<openfoodfacts.github.scrachx.openfood.utils.CustomEditTextView
android:id="@+id/editTextBarcode"
android:layout_width="match_parent"
android:layout_height="70dp"
android:layout_marginLeft="@dimen/spacing_normal"
android:layout_marginRight="@dimen/spacing_normal"
android:layout_marginTop="@dimen/spacing_normal"
android:background="@drawable/edittext_full"
app:drawableLeftCompat="@drawable/ic_search_black"
android:drawablePadding="10dip"
android:ems="10"
android:hint="@string/hintBarcode"
android:inputType="number"
android:maxLines="1"
android:paddingLeft="10dip" />
<Button
android:id="@+id/buttonBarcode"
style="@style/DefaultButtonText"
android:layout_width="match_parent"
android:layout_height="70dp"
android:layout_gravity="center"
android:layout_margin="@dimen/spacing_normal"
android:background="@color/blue"
android:gravity="center"
android:text="@string/action_find" />
</LinearLayout>