mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Readd necessaries values
Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
This commit is contained in:
parent
45b09c64d2
commit
cbeaf726b3
5 changed files with 57 additions and 2 deletions
44
src/main/java/com/owncloud/android/ui/SquareImageView.java
Normal file
44
src/main/java/com/owncloud/android/ui/SquareImageView.java
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
/**
|
||||||
|
* ownCloud Android client application
|
||||||
|
*
|
||||||
|
* Copyright (C) 2015 ownCloud Inc.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2,
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.owncloud.android.ui;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.util.AttributeSet;
|
||||||
|
|
||||||
|
import androidx.appcompat.widget.AppCompatImageView;
|
||||||
|
|
||||||
|
public class SquareImageView extends AppCompatImageView {
|
||||||
|
|
||||||
|
public SquareImageView(Context context) {
|
||||||
|
super(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
public SquareImageView(Context context, AttributeSet attrs) {
|
||||||
|
super(context, attrs);
|
||||||
|
}
|
||||||
|
|
||||||
|
public SquareImageView(Context context, AttributeSet attrs, int defStyle) {
|
||||||
|
super(context, attrs, defStyle);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||||
|
super.onMeasure(widthMeasureSpec, widthMeasureSpec);
|
||||||
|
}
|
||||||
|
}
|
|
@ -47,7 +47,7 @@
|
||||||
app:width_weight="0.4"
|
app:width_weight="0.4"
|
||||||
app:height_weight="0.6" />
|
app:height_weight="0.6" />
|
||||||
|
|
||||||
<ImageView
|
<com.owncloud.android.ui.SquareImageView
|
||||||
android:id="@+id/thumbnail"
|
android:id="@+id/thumbnail"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
android:background="@drawable/list_selector"
|
android:background="@drawable/list_selector"
|
||||||
android:gravity="center_horizontal">
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
<ImageView
|
<com.owncloud.android.ui.SquareImageView
|
||||||
android:id="@+id/thumbnail"
|
android:id="@+id/thumbnail"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
@ -49,6 +49,15 @@
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/next"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/synced_folders_plus"
|
||||||
|
android:textColor="#ffffff"
|
||||||
|
android:textSize="@dimen/grid_sync_item_layout_next_text_size"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/counter"
|
android:id="@+id/counter"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
<dimen name="grid_item_shared_icon_layout_top_margin">24dp</dimen>
|
<dimen name="grid_item_shared_icon_layout_top_margin">24dp</dimen>
|
||||||
<dimen name="grid_item_local_file_indicator_layout_width">16dp</dimen>
|
<dimen name="grid_item_local_file_indicator_layout_width">16dp</dimen>
|
||||||
<dimen name="grid_item_local_file_indicator_layout_height">16dp</dimen>
|
<dimen name="grid_item_local_file_indicator_layout_height">16dp</dimen>
|
||||||
|
<dimen name="grid_sync_item_layout_next_text_size">22sp</dimen>
|
||||||
<dimen name="grid_sync_item_layout_counter_text_size">22sp</dimen>
|
<dimen name="grid_sync_item_layout_counter_text_size">22sp</dimen>
|
||||||
<dimen name="list_item_favorite_action_layout_width">16dp</dimen>
|
<dimen name="list_item_favorite_action_layout_width">16dp</dimen>
|
||||||
<dimen name="list_item_favorite_action_layout_height">16dp</dimen>
|
<dimen name="list_item_favorite_action_layout_height">16dp</dimen>
|
||||||
|
|
|
@ -567,6 +567,7 @@
|
||||||
<string name="synced_folders_preferences">Preferences for auto uploading</string>
|
<string name="synced_folders_preferences">Preferences for auto uploading</string>
|
||||||
<string name="synced_folders_new_info">Instant uploading has been revamped completely. Re-configure your auto upload from within the main menu.\n\nEnjoy the new and extended auto uploading.</string>
|
<string name="synced_folders_new_info">Instant uploading has been revamped completely. Re-configure your auto upload from within the main menu.\n\nEnjoy the new and extended auto uploading.</string>
|
||||||
<string name="synced_folders_preferences_folder_path">For %1$s</string>
|
<string name="synced_folders_preferences_folder_path">For %1$s</string>
|
||||||
|
<string name="synced_folders_plus" translatable="false">+</string>
|
||||||
<plurals name="items_selected_count">
|
<plurals name="items_selected_count">
|
||||||
<!--
|
<!--
|
||||||
As a developer, you should always supply "one" and "other"
|
As a developer, you should always supply "one" and "other"
|
||||||
|
|
Loading…
Reference in a new issue