mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-04-20 14:28:28 -04:00
Use consistent grid icon size for folders and files
This commit is contained in:
@@ -107,7 +107,7 @@ class Config(context: Context) : BaseConfig(context) {
|
||||
|
||||
private fun getDefaultFileColumnCount(): Int {
|
||||
val isPortrait = context.resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT
|
||||
return if (isPortrait) 3 else 5
|
||||
return if (isPortrait) 4 else 8
|
||||
}
|
||||
|
||||
var displayFilenames: Boolean
|
||||
|
||||
@@ -21,10 +21,11 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/item_icon"
|
||||
android:layout_width="@dimen/grid_view_icon_size"
|
||||
android:layout_height="@dimen/grid_view_icon_size"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="@dimen/small_margin"
|
||||
android:src="@drawable/ic_folder_vector" />
|
||||
|
||||
<TextView
|
||||
|
||||
Reference in New Issue
Block a user