Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <!--
- Пример вёрстки формы регистрации. Тут учитываются маленькие/большие экраны. На больших экранах вёрстка немного "растянется" - кнопка "Заказать" уедет вниз, на маленьких экранах будет скролл. Ситуация довольно костыльная, но тут решение вынесено более-менее "красиво".
- -->
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- style="@style/Fit.Viewport" >
- <LinearLayout style="@style/Fit.LRPadStd.Ver" >
- <TextView android:text="Подтвердите ваши данные" style="@style/Wrap.Std.BlueLabel" />
- <TextView android:text="ФИО" style="@style/Wrap.StdLR.FormLabel" />
- <EditText android:id="@+id/name" android:text="Васильева Екатерина Викторовна" style="@style/FitWrap.StdLR.FormEdit"/>
- <TextView android:text="Номер телефона" style="@style/Wrap.StdLR.FormLabel" />
- <EditText android:id="@+id/phone" android:text="+7(919)290 55 63" style="@style/FitWrap.StdLR.FormEdit"/>
- <TextView android:text="Ваш E-mail" style="@style/Wrap.StdLR.FormLabel" />
- <EditText android:id="@+id/email" android:text="evasilieva@gmail.com" style="@style/FitWrap.StdLR.FormEdit" />
- <TextView android:text="Ваш Адрес" style="@style/Wrap.StdLR.FormLabel" />
- <EditText android:id="@+id/address" android:text="м Пушкинская, ул. Грибоедова 17" style="@style/FitWrap.StdLR.FormEdit"/>
- <LinearLayout style="@style/Fit.Ver">
- <LinearLayout style="@style/FitWrap.Std.Hor">
- <CheckBox android:id="@+id/self" android:text="Самовывоз" style="@style/Wrap"
- android:layout_width="0dp" android:layout_weight="1"/>
- <Button android:id="@+id/reset" android:text="Сбросить все поля" style="@style/Blue"
- android:layout_width="0dp" android:layout_weight="1"/>
- </LinearLayout>
- <View android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" />
- <Button android:text="Заказать" style="@style/Green.Order" android:id="@+id/order"/>
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement