code cleanup

This commit is contained in:
nuclearfog 2023-01-08 20:43:39 +01:00
parent b13f435fd0
commit cf4f6594ed
No known key found for this signature in database
GPG Key ID: 03488A185C476379
4 changed files with 6 additions and 45 deletions

View File

@ -35,19 +35,15 @@ public interface OnHolderClickListener {
int ACCOUNT_REMOVE = 13;
int IMAGE_CLICK = 14;
int PREVIEW_CLICK = 14;
int IMAGE_SAVE = 15;
int CARD_IMAGE = 15;
int PREVIEW_CLICK = 16;
int CARD_LINK = 16;
int CARD_IMAGE = 17;
int POLL_ITEM = 17;
int CARD_LINK = 18;
int POLL_ITEM = 19;
int POLL_OPTION = 20;
int POLL_OPTION = 18;
/**
* called when an item was clicked

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="@dimen/imageitem_layout_margin"
style="@style/CardViewStyle">
<ImageView
android:id="@+id/item_image_preview"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:contentDescription="@string/image_preview"
android:scaleType="fitStart"
android:adjustViewBounds="true" />
<ImageButton
android:id="@+id/item_image_save"
android:layout_width="@dimen/imageitem_button_size"
android:layout_height="@dimen/imageitem_button_size"
android:visibility="gone"
android:padding="@dimen/imageitem_drawable_padding"
android:layout_margin="@dimen/imageitem_button_margin"
android:layout_gravity="top|end"
android:contentDescription="@string/item_image_save"
android:scaleType="fitCenter"
android:src="@drawable/save"
style="@style/RoundButton" />
</androidx.cardview.widget.CardView>

View File

@ -14,7 +14,7 @@
android:layout_height="@dimen/mediapage_toolbar_height"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
app:layout_constraintEnd_toEndOf="parent" />
<org.nuclearfog.zoomview.ZoomView
android:id="@+id/page_image_viewer"

View File

@ -187,12 +187,6 @@
<!--dimens of item_placeholder.xml-->
<dimen name="item_placeholder_margin">8dp</dimen>
<!--dimens of item_image.xml-->
<dimen name="imageitem_button_margin">5dp</dimen>
<dimen name="imageitem_drawable_padding">7dp</dimen>
<dimen name="imageitem_button_size">30dp</dimen>
<dimen name="imageitem_layout_margin">2dp</dimen>
<!--dimens of page_search.xml-->
<dimen name="searchpage_toolbar_height">@dimen/toolbar_height</dimen>