Parcourir la source

Reformatted layouts

sirekanyan il y a 8 ans
Parent
commit
a1bed29d44

+ 7 - 8
app/src/main/res/layout/about.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
@@ -16,7 +15,7 @@
         android:layout_height="64dp"
         android:layout_gravity="center_horizontal"
         android:src="@mipmap/ic_launcher"
-        tools:ignore="ContentDescription"/>
+        tools:ignore="ContentDescription" />
 
     <TextView
         android:layout_width="wrap_content"
@@ -24,7 +23,7 @@
         android:layout_gravity="center_horizontal"
         android:layout_marginTop="4dp"
         android:text="@string/app_name"
-        android:textSize="16sp"/>
+        android:textSize="16sp" />
 
     <TextView
         android:id="@+id/aboutAppVersion"
@@ -32,7 +31,7 @@
         android:layout_height="wrap_content"
         android:layout_gravity="center_horizontal"
         android:textSize="12sp"
-        tools:text="1.0.0"/>
+        tools:text="1.0.0" />
 
     <LinearLayout
         android:layout_width="match_parent"
@@ -44,18 +43,18 @@
         <TextView
             style="@style/AboutItem"
             android:drawableStart="@drawable/ic_about_api"
-            android:text="@string/about_idea"/>
+            android:text="@string/about_idea" />
 
         <TextView
             style="@style/AboutItem"
             android:drawableStart="@drawable/ic_about_developer"
-            android:text="@string/about_developer"/>
+            android:text="@string/about_developer" />
 
         <TextView
             android:id="@+id/aboutDesignerText"
             style="@style/AboutItem"
             android:drawableStart="@drawable/ic_about_designer"
-            android:text="@string/about_designer"/>
+            android:text="@string/about_designer" />
 
     </LinearLayout>
 

+ 7 - 8
app/src/main/res/layout/activity_main.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<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:id="@+id/container"
@@ -19,7 +18,7 @@
             android:id="@+id/toolbar"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            app:title="@string/app_name"/>
+            app:title="@string/app_name" />
 
     </android.support.design.widget.AppBarLayout>
 
@@ -32,7 +31,7 @@
             android:id="@+id/booksRecyclerView"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
-            tools:listitem="@layout/book"/>
+            tools:listitem="@layout/book" />
 
         <ProgressBar
             android:id="@+id/booksProgressBar"
@@ -40,7 +39,7 @@
             android:layout_height="wrap_content"
             android:layout_gravity="center"
             android:alpha="0"
-            tools:alpha="1"/>
+            tools:alpha="1" />
 
         <TextView
             android:id="@+id/booksPlaceholder"
@@ -54,7 +53,7 @@
             android:visibility="gone"
             tools:alpha="1"
             tools:text="@string/error_loading_books"
-            tools:visibility="visible"/>
+            tools:visibility="visible" />
 
         <android.support.design.widget.FloatingActionButton
             android:id="@+id/addBookButton"
@@ -63,7 +62,7 @@
             android:layout_gravity="end|bottom"
             android:layout_margin="16dp"
             android:tint="@color/white"
-            app:srcCompat="@drawable/ic_add"/>
+            app:srcCompat="@drawable/ic_add" />
 
     </FrameLayout>
 
@@ -73,6 +72,6 @@
         android:layout_height="wrap_content"
         android:layout_gravity="bottom"
         android:background="@color/white"
-        app:menu="@menu/navigation"/>
+        app:menu="@menu/navigation" />
 
 </LinearLayout>

+ 10 - 11
app/src/main/res/layout/book_edit.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<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"
@@ -18,7 +17,7 @@
             android:id="@+id/toolbar"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            tools:title="@string/book_add_title"/>
+            tools:title="@string/book_add_title" />
 
     </android.support.design.widget.AppBarLayout>
 
@@ -47,7 +46,7 @@
                     android:layout_height="wrap_content"
                     android:hint="@string/book_hint_title"
                     android:inputType="textCapSentences"
-                    tools:text="Два капитана"/>
+                    tools:text="Два капитана" />
 
             </android.support.design.widget.TextInputLayout>
 
@@ -66,7 +65,7 @@
                     android:layout_height="wrap_content"
                     android:hint="@string/book_hint_author"
                     android:inputType="textCapWords"
-                    tools:text="Вениамин Каверин"/>
+                    tools:text="Вениамин Каверин" />
 
             </android.support.design.widget.TextInputLayout>
 
@@ -82,7 +81,7 @@
                 app:layout_constraintRight_toRightOf="parent"
                 app:layout_constraintTop_toTopOf="@id/book_title_input"
                 tools:background="@color/colorAccent"
-                tools:visibility="visible"/>
+                tools:visibility="visible" />
 
             <android.support.design.widget.TextInputLayout
                 android:id="@+id/bookYearInput"
@@ -102,7 +101,7 @@
                     android:layout_height="wrap_content"
                     android:hint="@string/book_hint_year"
                     android:inputType="number"
-                    tools:text="2012"/>
+                    tools:text="2012" />
 
             </android.support.design.widget.TextInputLayout>
 
@@ -122,7 +121,7 @@
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:hint="@string/book_hint_month"
-                    android:inputType="number"/>
+                    android:inputType="number" />
 
             </android.support.design.widget.TextInputLayout>
 
@@ -142,7 +141,7 @@
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:hint="@string/book_hint_day"
-                    android:inputType="number"/>
+                    android:inputType="number" />
 
             </android.support.design.widget.TextInputLayout>
 
@@ -156,7 +155,7 @@
                 android:text="@string/book_read_checkbox"
                 android:textSize="16sp"
                 app:layout_constraintTop_toBottomOf="@id/bookYearInput"
-                tools:checked="true"/>
+                tools:checked="true" />
 
             <android.support.v7.widget.AppCompatEditText
                 android:id="@+id/notesTextArea"
@@ -172,7 +171,7 @@
                 android:padding="16dp"
                 app:layout_constraintBottom_toBottomOf="parent"
                 app:layout_constraintTop_toBottomOf="@id/readCheckbox"
-                tools:text="Неистово плюсую"/>
+                tools:text="Неистово плюсую" />
 
         </android.support.constraint.ConstraintLayout>
 

+ 3 - 4
app/src/main/res/layout/header.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<FrameLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="48dp">
@@ -10,7 +9,7 @@
         android:layout_width="match_parent"
         android:layout_height="0.5dp"
         android:background="@color/white_12"
-        android:visibility="invisible"/>
+        android:visibility="invisible" />
 
     <TextView
         android:id="@+id/book_title"
@@ -22,6 +21,6 @@
         android:fontFamily="sans-serif-medium"
         android:textColor="@color/black_54"
         android:textSize="14sp"
-        tools:text="К прочтению"/>
+        tools:text="К прочтению" />
 
 </FrameLayout>

+ 3 - 4
app/src/main/res/layout/user.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
@@ -12,13 +11,13 @@
         android:layout_height="wrap_content"
         android:layout_weight="1"
         android:padding="16dp"
-        tools:text="Вася Пупкин"/>
+        tools:text="Вася Пупкин" />
 
     <TextView
         android:id="@+id/book_count"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:padding="16dp"
-        tools:text="100"/>
+        tools:text="100" />
 
 </LinearLayout>