Skip to content

Commit 0e2ca89

Browse files
committed
remove the dividers from the list views
1 parent a5cdeaf commit 0e2ca89

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ android {
5858
}
5959

6060
dependencies {
61-
implementation 'com.simplemobiletools:commons:5.23.13'
61+
implementation 'com.simplemobiletools:commons:5.23.15'
6262
implementation 'com.github.Stericson:RootTools:df729dcb13'
6363
implementation 'com.github.Stericson:RootShell:1.6'
6464
implementation 'com.alexvasilkov:gesture-views:2.5.2'

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
696696
item_name.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
697697

698698
item_details.setTextColor(textColor)
699-
item_details.setTextSize(TypedValue.COMPLEX_UNIT_PX, smallerFontSize)
699+
item_details.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
700700

701701
item_date.setTextColor(textColor)
702702
item_date.setTextSize(TypedValue.COMPLEX_UNIT_PX, smallerFontSize)

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
162162
ItemsAdapter(activity as SimpleActivity, storedItems, this@ItemsFragment, items_list, isPickMultipleIntent, items_fastscroller) {
163163
itemClicked(it as FileDirItem)
164164
}.apply {
165-
addVerticalDividers(true)
166165
items_list.adapter = this
167166
}
167+
168168
items_fastscroller.allowBubbleDisplay = true
169169
items_fastscroller.setViews(items_list, mView.items_swipe_refresh) {
170170
items_fastscroller.updateBubbleText(storedItems.getOrNull(it)?.getBubbleText(context) ?: "")

app/src/main/res/layout/item_list_file_dir.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
android:background="?attr/selectableItemBackground"
88
android:clickable="true"
99
android:focusable="true"
10-
android:foreground="@drawable/selector">
10+
android:foreground="@drawable/selector"
11+
android:paddingTop="@dimen/tiny_margin"
12+
android:paddingBottom="@dimen/tiny_margin">
1113

1214
<RelativeLayout
1315
android:id="@+id/item_holder"
@@ -17,8 +19,8 @@
1719

1820
<ImageView
1921
android:id="@+id/item_icon"
20-
android:layout_width="@dimen/normal_icon_size"
21-
android:layout_height="@dimen/normal_icon_size"
22+
android:layout_width="@dimen/file_picker_icon_size"
23+
android:layout_height="@dimen/file_picker_icon_size"
2224
android:layout_centerVertical="true"
2325
android:padding="@dimen/medium_margin"
2426
android:src="@drawable/ic_folder_vector" />
@@ -31,7 +33,7 @@
3133
android:layout_toEndOf="@+id/item_icon"
3234
android:ellipsize="end"
3335
android:maxLines="1"
34-
android:paddingStart="@dimen/small_margin"
36+
android:paddingStart="@dimen/tiny_margin"
3537
android:paddingTop="@dimen/small_margin"
3638
tools:text="Directory" />
3739

@@ -42,7 +44,7 @@
4244
android:layout_below="@+id/item_name"
4345
android:layout_toEndOf="@+id/item_icon"
4446
android:alpha="0.6"
45-
android:paddingStart="@dimen/small_margin"
47+
android:paddingStart="@dimen/tiny_margin"
4648
android:textSize="@dimen/smaller_text_size"
4749
tools:text="1 KB" />
4850

0 commit comments

Comments
 (0)