Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
Replace placeholder with new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpancake committed May 28, 2020
1 parent 504f69c commit 9bd2854
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added app/src/main/res/drawable/ic_shiba_nothing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions app/src/main/res/layout/activity_grid_view.xml
Expand Up @@ -23,10 +23,10 @@

<ImageView
android:id="@+id/sleeping_shiba"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="256dp"
android:layout_height="256dp"
android:layout_marginBottom="64dp"
android:src="@drawable/ic_shiba_placeholder"
android:src="@drawable/ic_shiba_nothing"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
13 changes: 12 additions & 1 deletion app/src/main/res/layout/activity_settings.xml
Expand Up @@ -58,7 +58,7 @@
android:id="@+id/button_clear"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginTop="42dp"
android:layout_marginTop="36dp"
android:background="@android:color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down Expand Up @@ -172,4 +172,15 @@
tools:ignore="DuplicateIds" />
</androidx.constraintlayout.widget.ConstraintLayout>

<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:text="@string/delete_description"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button_delete" />

</androidx.constraintlayout.widget.ConstraintLayout>
1 change: 1 addition & 0 deletions app/src/main/res/values-ru-rRU/strings.xml
Expand Up @@ -46,4 +46,5 @@
<string name="intro_text_01">Вы можете кликнуть на картинку дважды, чтобы сохранить её в закладки!</string>
<string name="intro_text_02">Хотите поделиться с друзьями? Зажмите картинку, чтобы отправить её.</string>
<string name="intro_text_03">Задаётесь вопросом, что она делает? Показывает новую картинку, конечно же.</string>
<string name="delete_description">Удаление базы данных сотрёт список изображенний, которые были добавлены в закладки. Заметьте, что это действие нельзя отменить! Размер базы данных останется больше нуля, так как она не может быть абсолютно пуста.</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Expand Up @@ -45,4 +45,5 @@
<string name="intro_text_01">You can double click on the image to add it to the favourite!</string>
<string name="intro_text_02">Want to share with friends? Hold the image to do that.</string>
<string name="intro_text_03">You wonder what it does? It shows new image of course.</string>
<string name="delete_description">Deleting database will clear list of favourite images. Notice that this action cannot be undone! Database cannot be entirely empty, so its size will not reach zero.</string>
</resources>

0 comments on commit 9bd2854

Please sign in to comment.