Merge branch 'master' into predefined-images

# Conflicts:
#	app/src/main/res/values/settings.xml
This commit is contained in:
RichyHBM 2017-11-28 20:14:40 +00:00
commit e0d5898501
4 changed files with 9 additions and 10 deletions

View file

@ -27,7 +27,6 @@ import android.graphics.ColorFilter;
import android.support.v7.widget.CardView; import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.TypedValue;
import android.view.View; import android.view.View;
import android.widget.ImageButton; import android.widget.ImageButton;
import android.widget.ImageView; import android.widget.ImageView;
@ -143,8 +142,8 @@ public class EntryViewHolder extends RecyclerView.ViewHolder
} }
public void setLabelSize(int size) { public void setLabelSize(int size) {
label.setTextSize(TypedValue.COMPLEX_UNIT_PT, size); label.setTextSize(size);
tags.setTextSize(TypedValue.COMPLEX_UNIT_PT, size - 2); tags.setTextSize(0.75f * size);
} }
public void setThumbnailSize(int size) { public void setThumbnailSize(int size) {

View file

@ -84,7 +84,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxLines="1" android:maxLines="1"
android:ellipsize="end" android:ellipsize="end"
android:textSize="8pt" /> android:textSize="18sp" />
<TextView <TextView
android:id="@+id/textViewTags" android:id="@+id/textViewTags"
@ -92,7 +92,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxLines="1" android:maxLines="1"
android:ellipsize="end" android:ellipsize="end"
android:textSize="6pt" /> android:textSize="13.5sp" />
</LinearLayout> </LinearLayout>

View file

@ -13,7 +13,7 @@
<string name="settings_key_lang" translatable="false">pref_lang</string> <string name="settings_key_lang" translatable="false">pref_lang</string>
<string name="settings_key_theme" translatable="false">pref_theme</string> <string name="settings_key_theme" translatable="false">pref_theme</string>
<string name="settings_key_label_size" translatable="false">pref_label_size</string> <string name="settings_key_label_size" translatable="false">pref_label_size_sp</string>
<string name="settings_key_label_scroll" translatable="false">pref_label_scroll</string> <string name="settings_key_label_scroll" translatable="false">pref_label_scroll</string>
<string name="settings_key_thumbnail_visible" translatable="false">pref_thumbnail_visible</string> <string name="settings_key_thumbnail_visible" translatable="false">pref_thumbnail_visible</string>
<string name="settings_key_thumbnail_size" translatable="false">pref_thumbnail_size</string> <string name="settings_key_thumbnail_size" translatable="false">pref_thumbnail_size</string>
@ -38,7 +38,7 @@
<string name="settings_default_auth" translatable="false">none</string> <string name="settings_default_auth" translatable="false">none</string>
<string name="settings_default_lang" translatable="false">system</string> <string name="settings_default_lang" translatable="false">system</string>
<string name="settings_default_theme" translatable="false">light</string> <string name="settings_default_theme" translatable="false">light</string>
<integer name="settings_default_label_size">8</integer> <integer name="settings_default_label_size">18</integer>
<string name="settings_default_thumbnail_size">46dp</string> <string name="settings_default_thumbnail_size">46dp</string>
<!-- All of the possible tile background colors --> <!-- All of the possible tile background colors -->
@ -97,6 +97,6 @@
</string-array> </string-array>
<!-- Constraints --> <!-- Constraints -->
<integer name="settings_min_label_size">4</integer> <integer name="settings_min_label_size">12</integer>
<integer name="settings_max_label_size">12</integer> <integer name="settings_max_label_size">24</integer>
</resources> </resources>

View file

@ -8,7 +8,7 @@ buildscript {
} }
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.0.0' classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files