Selaa lähdekoodia

Removed unnecessary attr type for attribute references

Vadik Sirekanyan 5 vuotta sitten
vanhempi
commit
663c6da165

+ 1 - 1
app/src/main/res/drawable/recycler_view_divider.xml

@@ -2,7 +2,7 @@
 <inset xmlns:android="http://schemas.android.com/apk/res/android"
     android:insetLeft="72dp">
     <shape>
-        <solid android:color="?attr/recycler_divider_color" />
+        <solid android:color="?recycler_divider_color" />
         <size android:height="0.5dp" />
     </shape>
 </inset>

+ 1 - 1
app/src/main/res/drawable/subscribe_button_background.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android" android:color="#000000">
     <item android:color="@color/colorSuccessAccent" android:state_selected="true" />
-    <item android:color="?attr/colorAccent" />
+    <item android:color="?colorAccent" />
 </selector>

+ 2 - 2
app/src/main/res/drawable/text_area_background.xml

@@ -5,7 +5,7 @@
             <corners android:radius="4dp"/>
             <stroke
                 android:width="2dp"
-                android:color="?attr/colorControlActivated"/>
+                android:color="?colorControlActivated"/>
         </shape>
     </item>
     <item>
@@ -13,7 +13,7 @@
             <corners android:radius="4dp"/>
             <stroke
                 android:width="1dp"
-                android:color="?attr/colorControlNormal"/>
+                android:color="?colorControlNormal"/>
         </shape>
     </item>
 </selector>

+ 3 - 3
app/src/main/res/layout/about.xml

@@ -7,7 +7,7 @@
     android:layout_gravity="center"
     android:clickable="true"
     android:focusable="true"
-    android:foreground="?android:attr/selectableItemBackground"
+    android:foreground="?android:selectableItemBackground"
     android:orientation="vertical"
     android:padding="16dp"
     tools:ignore="UnusedAttribute">
@@ -25,7 +25,7 @@
         android:layout_gravity="center_horizontal"
         android:layout_marginTop="4dp"
         android:text="@string/common.title.app"
-        android:textColor="?android:attr/textColorPrimary"
+        android:textColor="?android:textColorPrimary"
         android:textSize="16sp" />
 
     <TextView
@@ -33,7 +33,7 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_gravity="center_horizontal"
-        android:textColor="?android:attr/textColorSecondary"
+        android:textColor="?android:textColorSecondary"
         android:textSize="12sp"
         tools:text="1.0.0" />
 

+ 1 - 1
app/src/main/res/layout/activity_main.xml

@@ -50,7 +50,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_gravity="bottom"
-        android:background="?attr/bottom_navigation_color"
+        android:background="?bottom_navigation_color"
         android:visibility="gone"
         app:menu="@menu/navigation" />
 

+ 4 - 4
app/src/main/res/layout/book.xml

@@ -4,7 +4,7 @@
     android:id="@+id/book_item_container"
     android:layout_width="match_parent"
     android:layout_height="72dp"
-    android:foreground="?android:attr/selectableItemBackground">
+    android:foreground="?android:selectableItemBackground">
 
     <ProgressBar
         android:id="@+id/bookProgress"
@@ -14,7 +14,7 @@
         android:layout_marginLeft="16dp"
         android:layout_marginTop="64dp"
         android:layout_marginRight="16dp"
-        android:progressDrawable="?attr/book_progress_drawable"
+        android:progressDrawable="?book_progress_drawable"
         tools:progress="80" />
 
     <ImageView
@@ -40,7 +40,7 @@
             android:layout_height="wrap_content"
             android:ellipsize="end"
             android:maxLines="1"
-            android:textColor="?android:attr/textColorPrimary"
+            android:textColor="?android:textColorPrimary"
             android:textSize="16sp"
             tools:text="Мастер и Маргарита" />
 
@@ -50,7 +50,7 @@
             android:layout_height="wrap_content"
             android:ellipsize="end"
             android:maxLines="1"
-            android:textColor="?android:attr/textColorSecondary"
+            android:textColor="?android:textColorSecondary"
             android:textSize="14sp"
             tools:text="Михаил Булгаков" />
 

+ 2 - 2
app/src/main/res/layout/bottom_sheet_dialog_item.xml

@@ -3,7 +3,7 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="48dp"
-    android:background="?android:attr/selectableItemBackground"
+    android:background="?android:selectableItemBackground"
     android:paddingLeft="16dp"
     android:paddingRight="16dp"
     tools:background="@color/white">
@@ -23,7 +23,7 @@
         android:layout_height="wrap_content"
         android:layout_gravity="center_vertical"
         android:layout_marginStart="56dp"
-        android:textColor="?android:attr/textColorPrimary"
+        android:textColor="?android:textColorPrimary"
         android:textSize="16sp"
         tools:text="@string/books.button.edit" />
 

+ 1 - 1
app/src/main/res/layout/bottom_sheet_dialog_view.xml

@@ -17,7 +17,7 @@
         android:maxLines="1"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:textColor="?android:attr/textColorSecondary"
+        android:textColor="?android:textColorSecondary"
         android:textSize="16sp"
         tools:text="Мастер и Маргарита — Михаил Булгаков" />
 

+ 1 - 1
app/src/main/res/layout/default_app_bar.xml

@@ -10,7 +10,7 @@
         android:id="@+id/toolbar"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        app:popupTheme="?attr/toolbar_popup_theme"
+        app:popupTheme="?toolbar_popup_theme"
         app:title="@string/common.title.app" />
 
 </com.google.android.material.appbar.AppBarLayout>

+ 5 - 5
app/src/main/res/layout/header.xml

@@ -3,14 +3,14 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="48dp"
-    android:background="?android:attr/windowBackground"
+    android:background="?android:windowBackground"
     tools:ignore="Overdraw">
 
     <View
         android:id="@+id/headerDivider"
         android:layout_width="match_parent"
         android:layout_height="0.5dp"
-        android:background="?attr/recycler_divider_color"
+        android:background="?recycler_divider_color"
         android:visibility="invisible" />
 
     <TextView
@@ -21,7 +21,7 @@
         android:layout_marginLeft="16dp"
         android:layout_marginRight="16dp"
         android:fontFamily="sans-serif-medium"
-        android:textColor="?android:attr/textColorSecondary"
+        android:textColor="?android:textColorSecondary"
         android:textSize="14sp"
         tools:text="К прочтению" />
 
@@ -33,7 +33,7 @@
         android:layout_marginLeft="16dp"
         android:layout_marginRight="16dp"
         android:fontFamily="sans-serif"
-        android:textColor="?android:attr/textColorTertiary"
+        android:textColor="?android:textColorTertiary"
         android:textSize="14sp"
         tools:text="12 книг" />
 
@@ -42,7 +42,7 @@
         android:layout_width="match_parent"
         android:layout_height="0.5dp"
         android:layout_gravity="bottom"
-        android:background="?attr/recycler_divider_color"
+        android:background="?recycler_divider_color"
         android:visibility="invisible" />
 
 </FrameLayout>

+ 8 - 8
app/src/main/res/layout/note.xml

@@ -3,7 +3,7 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:foreground="?android:attr/selectableItemBackground"
+    android:foreground="?android:selectableItemBackground"
     android:paddingTop="16dp">
 
     <ImageView
@@ -26,7 +26,7 @@
             android:id="@+id/bookTitle"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:textColor="?android:attr/textColorPrimary"
+            android:textColor="?android:textColorPrimary"
             android:textSize="16sp"
             tools:text="Мастер и Маргарита Мастер и Маргарита Мастер и Маргарита Мастер и Маргарита" />
 
@@ -34,7 +34,7 @@
             android:id="@+id/bookAuthor"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:textColor="?android:attr/textColorPrimary"
+            android:textColor="?android:textColorPrimary"
             android:textSize="14sp"
             tools:text="Михаил Булгаков Михаил Булгаков Михаил Булгаков Михаил Булгаков" />
 
@@ -43,7 +43,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginTop="4dp"
-            android:textColor="?android:attr/textColorSecondary"
+            android:textColor="?android:textColorSecondary"
             tools:text="Заявленный жанр - ужасы. Отзыв на книге самого Стивена Кинга(а я фанатею от Кинга) обещает нам трястись от страха. Реальность: довольно тошнотворная история о геноциде и рассизме. Было интересно читать о жизни различных национальных меньшинств в Америке. О том, как сложно жилось (и, возможно, живется) коренным жителям континента. Это действительно то, от чего Америке никогда не отмыться. Сюжетная линия завязана на 4х основных и множества второстепенных героев. ... Но как книга, увы, художественной ценности произведение не несет. И тем более ни чем не пугает. Для разнообразия почитать можно. Оценка: 4 из 10" />
 
         <LinearLayout
@@ -56,7 +56,7 @@
                 android:id="@+id/userDate"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:textColor="?android:attr/textColorTertiary"
+                android:textColor="?android:textColorTertiary"
                 android:textSize="14sp"
                 tools:text="5 минут назад" />
 
@@ -66,14 +66,14 @@
                 android:layout_marginLeft="8dp"
                 android:layout_marginRight="8dp"
                 android:text="@string/note_date_delimiter"
-                android:textColor="?android:attr/textColorTertiary"
+                android:textColor="?android:textColorTertiary"
                 android:textSize="14sp" />
 
             <TextView
                 android:id="@+id/userNickname"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:textColor="?android:attr/textColorTertiary"
+                android:textColor="?android:textColorTertiary"
                 android:textSize="14sp"
                 tools:text="Павел Дуров" />
 
@@ -93,7 +93,7 @@
         android:layout_width="match_parent"
         android:layout_height="0.5dp"
         android:layout_gravity="bottom"
-        android:src="?attr/recycler_divider_color"
+        android:src="?recycler_divider_color"
         tools:ignore="ContentDescription" />
 
 </FrameLayout>

+ 4 - 4
app/src/main/res/layout/profile_activity.xml

@@ -43,7 +43,7 @@
             android:ellipsize="end"
             android:gravity="center"
             android:maxLines="1"
-            android:textColor="?android:attr/textColorPrimary"
+            android:textColor="?android:textColorPrimary"
             android:textSize="28sp"
             tools:text="Павел Дуров" />
 
@@ -68,7 +68,7 @@
     <View
         android:layout_width="match_parent"
         android:layout_height="0.5dp"
-        android:background="?android:attr/textColorTertiary" />
+        android:background="?android:textColorTertiary" />
 
     <LinearLayout
         android:layout_width="match_parent"
@@ -91,7 +91,7 @@
     <View
         android:layout_width="match_parent"
         android:layout_height="0.5dp"
-        android:background="?android:attr/textColorTertiary" />
+        android:background="?android:textColorTertiary" />
 
     <TextView
         android:id="@+id/randomProfileBook"
@@ -99,7 +99,7 @@
         android:layout_height="56dp"
         android:gravity="center"
         android:padding="8dp"
-        android:textColor="?android:attr/textColorSecondary"
+        android:textColor="?android:textColorSecondary"
         android:textSize="12sp"
         tools:text="Мастер и маргарита — 90%" />
 

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

@@ -3,7 +3,7 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="56dp"
-    android:background="?android:attr/selectableItemBackground"
+    android:background="?android:selectableItemBackground"
     android:paddingLeft="16dp"
     android:paddingRight="16dp"
     tools:ignore="Overdraw">
@@ -25,7 +25,7 @@
         android:ellipsize="end"
         android:gravity="center_vertical"
         android:maxLines="1"
-        android:textColor="?android:attr/textColorPrimary"
+        android:textColor="?android:textColorPrimary"
         android:textSize="16sp"
         tools:text="Павел Дуров Павел Дуров Павел Дуров Павел Дуров" />
 
@@ -35,7 +35,7 @@
         android:layout_height="match_parent"
         android:layout_marginStart="16dp"
         android:gravity="center_vertical"
-        android:textColor="?android:attr/textColorSecondary"
+        android:textColor="?android:textColorSecondary"
         android:textSize="16sp"
         tools:text="40" />
 

+ 2 - 2
app/src/main/res/layout/user_activity.xml

@@ -16,7 +16,7 @@
             android:id="@+id/toolbar_layout"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
-            app:contentScrim="?attr/colorPrimary"
+            app:contentScrim="?colorPrimary"
             app:expandedTitleGravity="center_vertical"
             app:expandedTitleMarginBottom="16dp"
             app:expandedTitleMarginStart="@dimen/title_start_margin_expanded"
@@ -29,7 +29,7 @@
                 android:layout_width="match_parent"
                 android:layout_height="@dimen/toolbar_height"
                 app:layout_collapseMode="pin"
-                app:popupTheme="?attr/toolbar_popup_theme"
+                app:popupTheme="?toolbar_popup_theme"
                 app:titleMarginStart="@dimen/title_start_margin_collapsed" />
 
         </com.google.android.material.appbar.CollapsingToolbarLayout>

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 4 - 4
app/src/main/res/layout/user_book.xml


+ 1 - 1
app/src/main/res/layout/website_layout.xml

@@ -3,7 +3,7 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="56dp"
-    android:background="?android:attr/selectableItemBackground"
+    android:background="?android:selectableItemBackground"
     android:clickable="true"
     android:focusable="true"
     tools:ignore="Overdraw">

+ 5 - 5
app/src/main/res/values/styles.xml

@@ -1,7 +1,7 @@
 <resources xmlns:tools="http://schemas.android.com/tools">
 
     <style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">
-        <item name="android:windowTitleSize">?attr/actionBarSize</item>
+        <item name="android:windowTitleSize">?actionBarSize</item>
         <item name="android:windowTitleStyle">@style/SplashWindowTitle</item>
         <item name="android:windowTitleBackgroundStyle">@style/SplashWindowTitleBackground</item>
         <item name="android:windowBackground">@color/dark.background_color</item>
@@ -75,20 +75,20 @@
         <item name="android:autoLink">web|email</item>
         <item name="android:padding">8dp</item>
         <item name="android:textSize">14sp</item>
-        <item name="android:textColor">?android:attr/textColorSecondary</item>
+        <item name="android:textColor">?android:textColorSecondary</item>
     </style>
 
     <style name="AboutIconItem">
         <item name="android:layout_height">wrap_content</item>
         <item name="android:layout_width">wrap_content</item>
-        <item name="android:tint">?android:attr/textColorSecondary</item>
+        <item name="android:tint">?android:textColorSecondary</item>
     </style>
 
     <style name="ProfileCaptionItem">
         <item name="android:layout_width">0dp</item>
         <item name="android:layout_height">wrap_content</item>
         <item name="android:layout_weight">1</item>
-        <item name="android:background">?android:attr/selectableItemBackground</item>
+        <item name="android:background">?android:selectableItemBackground</item>
         <item name="android:clickable">true</item>
         <item name="android:ellipsize">end</item>
         <item name="android:focusable">true</item>
@@ -100,7 +100,7 @@
         <item name="android:paddingLeft">4dp</item>
         <item name="android:paddingRight">4dp</item>
         <item name="android:textAllCaps">true</item>
-        <item name="android:textColor">?android:attr/textColorPrimary</item>
+        <item name="android:textColor">?android:textColorPrimary</item>
     </style>
 
     <style name="TextInputLayoutStyle">

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä