Skip to content

Commit 2d69582

Browse files
Replaced placeholder image with banner webp format in all layouts
1 parent 02b5a01 commit 2d69582

File tree

6 files changed

+10
-19
lines changed

6 files changed

+10
-19
lines changed

app/lint.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<lint>
3+
<issue id="IconLocation">
4+
<ignore path="src/main/res/drawable/hourglass.webp" />
5+
</issue>
6+
</lint>
2.36 KB
Loading

app/src/main/res/drawable/ic_placeholder.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/src/main/res/layout/item_article.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
app:layout_constraintLeft_toLeftOf="parent"
3838
app:layout_constraintRight_toRightOf="parent"
3939
app:layout_constraintTop_toTopOf="parent"
40-
tools:layout_height="@dimen/image_size_tools"
41-
tools:layout_width="@dimen/image_size_tools"
42-
tools:src="@drawable/ic_placeholder" />
40+
tools:src="@drawable/hourglass" />
4341

4442
<TextView
4543
android:id="@+id/article_title_item_text_view"

app/src/main/res/layout/item_favorites.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@
3939
app:layout_constraintLeft_toLeftOf="parent"
4040
app:layout_constraintRight_toRightOf="parent"
4141
app:layout_constraintTop_toTopOf="parent"
42-
tools:layout_height="@dimen/image_size_tools"
43-
tools:layout_width="@dimen/image_size_tools"
44-
tools:src="@drawable/ic_placeholder" />
42+
tools:scaleType="centerCrop"
43+
tools:src="@drawable/hourglass" />
4544

4645
<TextView
4746
android:id="@+id/favorite_article_title_item_text_view"

app/src/main/res/layout/item_recent_articles.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@
3636
app:layout_constraintLeft_toLeftOf="parent"
3737
app:layout_constraintRight_toRightOf="parent"
3838
app:layout_constraintTop_toTopOf="parent"
39-
tools:layout_height="@dimen/image_size_tools"
40-
tools:layout_width="@dimen/image_size_tools"
4139
tools:scaleType="centerCrop"
42-
tools:src="@drawable/ic_placeholder" />
40+
tools:src="@drawable/hourglass" />
4341

4442
<TextView
4543
android:id="@+id/article_title_item_text_view"

0 commit comments

Comments
 (0)