mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-18 12:50:35 +01:00
use bigger images at grid view
This commit is contained in:
parent
83fec3db4e
commit
6c96ac12de
@ -0,0 +1,17 @@
|
|||||||
|
package com.simplemobiletools.filemanager.pro.views
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
|
import android.util.AttributeSet
|
||||||
|
import androidx.appcompat.widget.AppCompatImageView
|
||||||
|
|
||||||
|
class MySquareImageView : AppCompatImageView {
|
||||||
|
constructor(context: Context) : super(context)
|
||||||
|
|
||||||
|
constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
|
||||||
|
|
||||||
|
constructor(context: Context, attrs: AttributeSet, defStyle: Int) : super(context, attrs, defStyle)
|
||||||
|
|
||||||
|
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
|
||||||
|
super.onMeasure(widthMeasureSpec, widthMeasureSpec)
|
||||||
|
}
|
||||||
|
}
|
@ -19,11 +19,12 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="@dimen/activity_margin">
|
android:layout_marginBottom="@dimen/activity_margin">
|
||||||
|
|
||||||
<ImageView
|
<com.simplemobiletools.filemanager.pro.views.MySquareImageView
|
||||||
android:id="@+id/item_icon"
|
android:id="@+id/item_icon"
|
||||||
android:layout_width="@dimen/grid_view_icon_size"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/grid_view_icon_size"
|
android:layout_height="match_parent"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
|
android:padding="@dimen/small_margin"
|
||||||
android:src="@drawable/ic_folder_vector" />
|
android:src="@drawable/ic_folder_vector" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
Loading…
x
Reference in New Issue
Block a user