Advertisement
egslava

AndroidHealth2

Oct 22nd, 2015
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.48 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Пример вёрстки формы регистрации. Тут учитываются маленькие/большие экраны. На больших экранах вёрстка немного "растянется" - кнопка "Заказать" уедет вниз, на маленьких экранах будет скролл. Ситуация довольно костыльная, но тут решение вынесено более-менее "красиво".
  4. -->
  5. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  6.    style="@style/Fit.Viewport" >
  7.     <LinearLayout style="@style/Fit.LRPadStd.Ver" >
  8.  
  9.         <TextView  android:text="Подтвердите ваши данные" style="@style/Wrap.Std.BlueLabel" />
  10.  
  11.         <TextView  android:text="ФИО" style="@style/Wrap.StdLR.FormLabel" />
  12.         <EditText  android:id="@+id/name"   android:text="Васильева Екатерина Викторовна" style="@style/FitWrap.StdLR.FormEdit"/>
  13.  
  14.         <TextView  android:text="Номер телефона" style="@style/Wrap.StdLR.FormLabel" />
  15.         <EditText  android:id="@+id/phone"  android:text="+7(919)290 55 63" style="@style/FitWrap.StdLR.FormEdit"/>
  16.  
  17.         <TextView  android:text="Ваш E-mail" style="@style/Wrap.StdLR.FormLabel" />
  18.         <EditText  android:id="@+id/email"  android:text="evasilieva@gmail.com" style="@style/FitWrap.StdLR.FormEdit" />
  19.  
  20.         <TextView  android:text="Ваш Адрес" style="@style/Wrap.StdLR.FormLabel" />
  21.         <EditText  android:id="@+id/address" android:text="м Пушкинская, ул. Грибоедова 17" style="@style/FitWrap.StdLR.FormEdit"/>
  22.  
  23.         <LinearLayout style="@style/Fit.Ver">
  24.             <LinearLayout style="@style/FitWrap.Std.Hor">
  25.                 <CheckBox android:id="@+id/self" android:text="Самовывоз" style="@style/Wrap"
  26.                    android:layout_width="0dp" android:layout_weight="1"/>
  27.  
  28.                 <Button android:id="@+id/reset" android:text="Сбросить все поля" style="@style/Blue"
  29.                    android:layout_width="0dp" android:layout_weight="1"/>
  30.             </LinearLayout>
  31.  
  32.             <View android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" />
  33.  
  34.             <Button android:text="Заказать" style="@style/Green.Order" android:id="@+id/order"/>
  35.         </LinearLayout>
  36.     </LinearLayout>
  37. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement