mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +01:00
updating commons, lets just make it compilable for now
This commit is contained in:
parent
b778ff989b
commit
53eafb30c6
31 changed files with 259 additions and 343 deletions
|
@ -78,7 +78,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:b205a97a9f'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:2394310c39'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||||
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.22'
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.22'
|
||||||
|
|
|
@ -188,8 +188,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
||||||
if (mStoredAdjustedPrimaryColor != adjustedPrimaryColor) {
|
if (mStoredAdjustedPrimaryColor != adjustedPrimaryColor) {
|
||||||
getRecyclerAdapter()?.updatePrimaryColor(config.primaryColor)
|
getRecyclerAdapter()?.updatePrimaryColor(config.primaryColor)
|
||||||
directories_vertical_fastscroller.updatePrimaryColor(adjustedPrimaryColor)
|
|
||||||
directories_horizontal_fastscroller.updatePrimaryColor(adjustedPrimaryColor)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val styleString = "${config.folderStyle}${config.showFolderMediaCount}${config.limitFolderTitle}"
|
val styleString = "${config.folderStyle}${config.showFolderMediaCount}${config.limitFolderTitle}"
|
||||||
|
@ -197,8 +195,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
setupAdapter(mDirs, forceRecreate = true)
|
setupAdapter(mDirs, forceRecreate = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
directories_horizontal_fastscroller.updateBubbleColors()
|
directories_fastscroller.updateColors(adjustedPrimaryColor)
|
||||||
directories_vertical_fastscroller.updateBubbleColors()
|
|
||||||
directories_refresh_layout.isEnabled = config.enablePullToRefresh
|
directories_refresh_layout.isEnabled = config.enablePullToRefresh
|
||||||
|
|
||||||
directories_empty_placeholder.setTextColor(config.textColor)
|
directories_empty_placeholder.setTextColor(config.textColor)
|
||||||
|
@ -682,8 +679,8 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
columnCount * thumbnailWidth
|
columnCount * thumbnailWidth
|
||||||
}
|
}
|
||||||
|
|
||||||
directories_horizontal_fastscroller.setContentWidth(fullWidth)
|
/*directories_horizontal_fastscroller.setContentWidth(fullWidth)
|
||||||
directories_horizontal_fastscroller.setScrollToX(directories_grid.computeHorizontalScrollOffset())
|
directories_horizontal_fastscroller.setScrollToX(directories_grid.computeHorizontalScrollOffset())*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun calculateContentHeight(directories: ArrayList<Directory>) {
|
private fun calculateContentHeight(directories: ArrayList<Directory>) {
|
||||||
|
@ -702,8 +699,8 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
rowCount * thumbnailHeight
|
rowCount * thumbnailHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
directories_vertical_fastscroller.setContentHeight(fullHeight)
|
/*directories_vertical_fastscroller.setContentHeight(fullHeight)
|
||||||
directories_vertical_fastscroller.setScrollToY(directories_grid.computeVerticalScrollOffset())
|
directories_vertical_fastscroller.setScrollToY(directories_grid.computeVerticalScrollOffset())*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initZoomListener() {
|
private fun initZoomListener() {
|
||||||
|
@ -921,8 +918,8 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
checkPlaceholderVisibility(dirs)
|
checkPlaceholderVisibility(dirs)
|
||||||
|
|
||||||
val allowHorizontalScroll = config.scrollHorizontally && config.viewTypeFolders == VIEW_TYPE_GRID
|
val allowHorizontalScroll = config.scrollHorizontally && config.viewTypeFolders == VIEW_TYPE_GRID
|
||||||
directories_vertical_fastscroller.beVisibleIf(directories_grid.isVisible() && !allowHorizontalScroll)
|
/*directories_vertical_fastscroller.beVisibleIf(directories_grid.isVisible() && !allowHorizontalScroll)
|
||||||
directories_horizontal_fastscroller.beVisibleIf(directories_grid.isVisible() && allowHorizontalScroll)
|
directories_horizontal_fastscroller.beVisibleIf(directories_grid.isVisible() && allowHorizontalScroll)*/
|
||||||
setupAdapter(dirs.clone() as ArrayList<Directory>)
|
setupAdapter(dirs.clone() as ArrayList<Directory>)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -931,13 +928,19 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
mLastMediaFetcher = MediaFetcher(applicationContext)
|
mLastMediaFetcher = MediaFetcher(applicationContext)
|
||||||
val getImagesOnly = mIsPickImageIntent || mIsGetImageContentIntent
|
val getImagesOnly = mIsPickImageIntent || mIsGetImageContentIntent
|
||||||
val getVideosOnly = mIsPickVideoIntent || mIsGetVideoContentIntent
|
val getVideosOnly = mIsPickVideoIntent || mIsGetVideoContentIntent
|
||||||
|
val favoritePaths = getFavoritePaths()
|
||||||
|
|
||||||
|
/*if (isRPlus()) {
|
||||||
|
mLastMediaFetcher!!.getAndroid11FolderMedia(getImagesOnly, getVideosOnly, favoritePaths)
|
||||||
|
return
|
||||||
|
}*/
|
||||||
|
|
||||||
val hiddenString = getString(R.string.hidden)
|
val hiddenString = getString(R.string.hidden)
|
||||||
val albumCovers = config.parseAlbumCovers()
|
val albumCovers = config.parseAlbumCovers()
|
||||||
val includedFolders = config.includedFolders
|
val includedFolders = config.includedFolders
|
||||||
val noMediaFolders = getNoMediaFoldersSync()
|
val noMediaFolders = getNoMediaFoldersSync()
|
||||||
val tempFolderPath = config.tempFolderPath
|
val tempFolderPath = config.tempFolderPath
|
||||||
val getProperFileSize = config.directorySorting and SORT_BY_SIZE != 0
|
val getProperFileSize = config.directorySorting and SORT_BY_SIZE != 0
|
||||||
val favoritePaths = getFavoritePaths()
|
|
||||||
val dirPathsToRemove = ArrayList<String>()
|
val dirPathsToRemove = ArrayList<String>()
|
||||||
val lastModifieds = mLastMediaFetcher!!.getLastModifieds()
|
val lastModifieds = mLastMediaFetcher!!.getLastModifieds()
|
||||||
val dateTakens = mLastMediaFetcher!!.getDateTakens()
|
val dateTakens = mLastMediaFetcher!!.getDateTakens()
|
||||||
|
@ -998,6 +1001,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
createDirectoryFromMedia(directory.path, curMedia, albumCovers, hiddenString, includedFolders, getProperFileSize, noMediaFolders)
|
createDirectoryFromMedia(directory.path, curMedia, albumCovers, hiddenString, includedFolders, getProperFileSize, noMediaFolders)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//mydebug("end ${System.currentTimeMillis() - time} ${directory.name}")
|
||||||
// we are looping through the already displayed folders looking for changes, do not do anything if nothing changed
|
// we are looping through the already displayed folders looking for changes, do not do anything if nothing changed
|
||||||
if (directory.copy(subfoldersCount = 0, subfoldersMediaCount = 0) == newDir) {
|
if (directory.copy(subfoldersCount = 0, subfoldersMediaCount = 0) == newDir) {
|
||||||
continue
|
continue
|
||||||
|
@ -1224,15 +1228,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
|
|
||||||
if (currAdapter == null || forceRecreate) {
|
if (currAdapter == null || forceRecreate) {
|
||||||
initZoomListener()
|
initZoomListener()
|
||||||
val fastscroller = if (config.scrollHorizontally) directories_horizontal_fastscroller else directories_vertical_fastscroller
|
|
||||||
DirectoryAdapter(
|
DirectoryAdapter(
|
||||||
this,
|
this,
|
||||||
dirsToShow,
|
dirsToShow,
|
||||||
this,
|
this,
|
||||||
directories_grid,
|
directories_grid,
|
||||||
isPickIntent(intent) || isGetAnyContentIntent(intent),
|
isPickIntent(intent) || isGetAnyContentIntent(intent),
|
||||||
directories_refresh_layout,
|
directories_refresh_layout
|
||||||
fastscroller
|
|
||||||
) {
|
) {
|
||||||
val clickedDir = it as Directory
|
val clickedDir = it as Directory
|
||||||
val path = clickedDir.path
|
val path = clickedDir.path
|
||||||
|
@ -1278,7 +1280,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
|
|
||||||
private fun setupScrollDirection() {
|
private fun setupScrollDirection() {
|
||||||
val allowHorizontalScroll = config.scrollHorizontally && config.viewTypeFolders == VIEW_TYPE_GRID
|
val allowHorizontalScroll = config.scrollHorizontally && config.viewTypeFolders == VIEW_TYPE_GRID
|
||||||
directories_vertical_fastscroller.isHorizontal = false
|
/*directories_vertical_fastscroller.isHorizontal = false
|
||||||
directories_vertical_fastscroller.beGoneIf(allowHorizontalScroll)
|
directories_vertical_fastscroller.beGoneIf(allowHorizontalScroll)
|
||||||
|
|
||||||
directories_horizontal_fastscroller.isHorizontal = true
|
directories_horizontal_fastscroller.isHorizontal = true
|
||||||
|
@ -1292,7 +1294,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
directories_vertical_fastscroller.setViews(directories_grid, directories_refresh_layout) {
|
directories_vertical_fastscroller.setViews(directories_grid, directories_refresh_layout) {
|
||||||
directories_vertical_fastscroller.updateBubbleText(getBubbleTextItem(it))
|
directories_vertical_fastscroller.updateBubbleText(getBubbleTextItem(it))
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkInvalidDirectories(dirs: ArrayList<Directory>) {
|
private fun checkInvalidDirectories(dirs: ArrayList<Directory>) {
|
||||||
|
|
|
@ -153,8 +153,6 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
||||||
if (mStoredAdjustedPrimaryColor != adjustedPrimaryColor) {
|
if (mStoredAdjustedPrimaryColor != adjustedPrimaryColor) {
|
||||||
getMediaAdapter()?.updatePrimaryColor(config.primaryColor)
|
getMediaAdapter()?.updatePrimaryColor(config.primaryColor)
|
||||||
media_horizontal_fastscroller.updatePrimaryColor(adjustedPrimaryColor)
|
|
||||||
media_vertical_fastscroller.updatePrimaryColor(adjustedPrimaryColor)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mStoredThumbnailSpacing != config.thumbnailSpacing) {
|
if (mStoredThumbnailSpacing != config.thumbnailSpacing) {
|
||||||
|
@ -167,8 +165,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
setupAdapter()
|
setupAdapter()
|
||||||
}
|
}
|
||||||
|
|
||||||
media_horizontal_fastscroller.updateBubbleColors()
|
media_fastscroller.updateColors(adjustedPrimaryColor)
|
||||||
media_vertical_fastscroller.updateBubbleColors()
|
|
||||||
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
||||||
media_empty_text_placeholder.setTextColor(config.textColor)
|
media_empty_text_placeholder.setTextColor(config.textColor)
|
||||||
media_empty_text_placeholder_2.setTextColor(getAdjustedPrimaryColor())
|
media_empty_text_placeholder_2.setTextColor(getAdjustedPrimaryColor())
|
||||||
|
@ -410,10 +407,9 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
val currAdapter = media_grid.adapter
|
val currAdapter = media_grid.adapter
|
||||||
if (currAdapter == null) {
|
if (currAdapter == null) {
|
||||||
initZoomListener()
|
initZoomListener()
|
||||||
val fastscroller = if (config.scrollHorizontally) media_horizontal_fastscroller else media_vertical_fastscroller
|
|
||||||
MediaAdapter(
|
MediaAdapter(
|
||||||
this, mMedia.clone() as ArrayList<ThumbnailItem>, this, mIsGetImageIntent || mIsGetVideoIntent || mIsGetAnyIntent,
|
this, mMedia.clone() as ArrayList<ThumbnailItem>, this, mIsGetImageIntent || mIsGetVideoIntent || mIsGetAnyIntent,
|
||||||
mAllowPickingMultiple, mPath, media_grid, fastscroller
|
mAllowPickingMultiple, mPath, media_grid
|
||||||
) {
|
) {
|
||||||
if (it is Medium && !isFinishing) {
|
if (it is Medium && !isFinishing) {
|
||||||
itemClicked(it.path)
|
itemClicked(it.path)
|
||||||
|
@ -445,7 +441,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
private fun setupScrollDirection() {
|
private fun setupScrollDirection() {
|
||||||
val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath)
|
val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath)
|
||||||
val allowHorizontalScroll = config.scrollHorizontally && viewType == VIEW_TYPE_GRID
|
val allowHorizontalScroll = config.scrollHorizontally && viewType == VIEW_TYPE_GRID
|
||||||
media_vertical_fastscroller.isHorizontal = false
|
/*media_vertical_fastscroller.isHorizontal = false
|
||||||
media_vertical_fastscroller.beGoneIf(allowHorizontalScroll)
|
media_vertical_fastscroller.beGoneIf(allowHorizontalScroll)
|
||||||
|
|
||||||
media_horizontal_fastscroller.isHorizontal = true
|
media_horizontal_fastscroller.isHorizontal = true
|
||||||
|
@ -460,7 +456,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
media_vertical_fastscroller.setViews(media_grid, media_refresh_layout) {
|
media_vertical_fastscroller.setViews(media_grid, media_refresh_layout) {
|
||||||
media_vertical_fastscroller.updateBubbleText(getBubbleTextItem(it, sorting))
|
media_vertical_fastscroller.updateBubbleText(getBubbleTextItem(it, sorting))
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getBubbleTextItem(index: Int, sorting: Int): String {
|
private fun getBubbleTextItem(index: Int, sorting: Int): String {
|
||||||
|
@ -734,8 +730,8 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
val thumbnailWidth = layoutManager.getChildAt(0)?.width ?: 0
|
val thumbnailWidth = layoutManager.getChildAt(0)?.width ?: 0
|
||||||
val spacing = config.thumbnailSpacing
|
val spacing = config.thumbnailSpacing
|
||||||
val fullWidth = ((media.size - 1) / layoutManager.spanCount + 1) * (thumbnailWidth + spacing) - spacing
|
val fullWidth = ((media.size - 1) / layoutManager.spanCount + 1) * (thumbnailWidth + spacing) - spacing
|
||||||
media_horizontal_fastscroller.setContentWidth(fullWidth)
|
/*media_horizontal_fastscroller.setContentWidth(fullWidth)
|
||||||
media_horizontal_fastscroller.setScrollToX(media_grid.computeHorizontalScrollOffset())
|
media_horizontal_fastscroller.setScrollToX(media_grid.computeHorizontalScrollOffset())*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun calculateContentHeight(media: ArrayList<ThumbnailItem>) {
|
private fun calculateContentHeight(media: ArrayList<ThumbnailItem>) {
|
||||||
|
@ -762,8 +758,8 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
|
|
||||||
val spacing = config.thumbnailSpacing
|
val spacing = config.thumbnailSpacing
|
||||||
fullHeight += ((curSectionItems - 1) / layoutManager.spanCount + 1) * (thumbnailHeight + spacing) - spacing
|
fullHeight += ((curSectionItems - 1) / layoutManager.spanCount + 1) * (thumbnailHeight + spacing) - spacing
|
||||||
media_vertical_fastscroller.setContentHeight(fullHeight)
|
/*media_vertical_fastscroller.setContentHeight(fullHeight)
|
||||||
media_vertical_fastscroller.setScrollToY(media_grid.computeVerticalScrollOffset())
|
media_vertical_fastscroller.setScrollToY(media_grid.computeVerticalScrollOffset())*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleGridSpacing(media: ArrayList<ThumbnailItem> = mMedia) {
|
private fun handleGridSpacing(media: ArrayList<ThumbnailItem> = mMedia) {
|
||||||
|
@ -932,8 +928,8 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
|
|
||||||
val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath)
|
val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath)
|
||||||
val allowHorizontalScroll = config.scrollHorizontally && viewType == VIEW_TYPE_GRID
|
val allowHorizontalScroll = config.scrollHorizontally && viewType == VIEW_TYPE_GRID
|
||||||
media_vertical_fastscroller.beVisibleIf(media_grid.isVisible() && !allowHorizontalScroll)
|
/*media_vertical_fastscroller.beVisibleIf(media_grid.isVisible() && !allowHorizontalScroll)
|
||||||
media_horizontal_fastscroller.beVisibleIf(media_grid.isVisible() && allowHorizontalScroll)
|
media_horizontal_fastscroller.beVisibleIf(media_grid.isVisible() && allowHorizontalScroll)*/
|
||||||
setupAdapter()
|
setupAdapter()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,6 @@ import kotlinx.android.synthetic.main.activity_media.*
|
||||||
import kotlinx.android.synthetic.main.activity_search.*
|
import kotlinx.android.synthetic.main.activity_search.*
|
||||||
import kotlinx.android.synthetic.main.activity_search.media_empty_text_placeholder
|
import kotlinx.android.synthetic.main.activity_search.media_empty_text_placeholder
|
||||||
import kotlinx.android.synthetic.main.activity_search.media_grid
|
import kotlinx.android.synthetic.main.activity_search.media_grid
|
||||||
import kotlinx.android.synthetic.main.activity_search.media_horizontal_fastscroller
|
|
||||||
import kotlinx.android.synthetic.main.activity_search.media_vertical_fastscroller
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
class SearchActivity : SimpleActivity(), MediaOperationsListener {
|
class SearchActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
|
@ -136,8 +134,7 @@ class SearchActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
private fun setupAdapter() {
|
private fun setupAdapter() {
|
||||||
val currAdapter = media_grid.adapter
|
val currAdapter = media_grid.adapter
|
||||||
if (currAdapter == null) {
|
if (currAdapter == null) {
|
||||||
val fastscroller = if (config.scrollHorizontally) media_horizontal_fastscroller else media_vertical_fastscroller
|
MediaAdapter(this, ArrayList(), this, false, false, "", media_grid) {
|
||||||
MediaAdapter(this, ArrayList(), this, false, false, "", media_grid, fastscroller) {
|
|
||||||
if (it is Medium) {
|
if (it is Medium) {
|
||||||
itemClicked(it.path)
|
itemClicked(it.path)
|
||||||
}
|
}
|
||||||
|
@ -233,7 +230,7 @@ class SearchActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
private fun setupScrollDirection() {
|
private fun setupScrollDirection() {
|
||||||
val viewType = config.getFolderViewType(SHOW_ALL)
|
val viewType = config.getFolderViewType(SHOW_ALL)
|
||||||
val allowHorizontalScroll = config.scrollHorizontally && viewType == VIEW_TYPE_GRID
|
val allowHorizontalScroll = config.scrollHorizontally && viewType == VIEW_TYPE_GRID
|
||||||
media_vertical_fastscroller.isHorizontal = false
|
/*media_vertical_fastscroller.isHorizontal = false
|
||||||
media_vertical_fastscroller.beGoneIf(allowHorizontalScroll)
|
media_vertical_fastscroller.beGoneIf(allowHorizontalScroll)
|
||||||
|
|
||||||
media_horizontal_fastscroller.isHorizontal = true
|
media_horizontal_fastscroller.isHorizontal = true
|
||||||
|
@ -248,7 +245,7 @@ class SearchActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
media_vertical_fastscroller.setViews(media_grid) {
|
media_vertical_fastscroller.setViews(media_grid) {
|
||||||
media_vertical_fastscroller.updateBubbleText(getBubbleTextItem(it, sorting))
|
media_vertical_fastscroller.updateBubbleText(getBubbleTextItem(it, sorting))
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getBubbleTextItem(index: Int, sorting: Int): String {
|
private fun getBubbleTextItem(index: Int, sorting: Int): String {
|
||||||
|
@ -274,8 +271,8 @@ class SearchActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
val layoutManager = media_grid.layoutManager as MyGridLayoutManager
|
val layoutManager = media_grid.layoutManager as MyGridLayoutManager
|
||||||
val thumbnailWidth = layoutManager.getChildAt(0)?.width ?: 0
|
val thumbnailWidth = layoutManager.getChildAt(0)?.width ?: 0
|
||||||
val fullWidth = ((media.size - 1) / layoutManager.spanCount + 1) * thumbnailWidth
|
val fullWidth = ((media.size - 1) / layoutManager.spanCount + 1) * thumbnailWidth
|
||||||
media_horizontal_fastscroller.setContentWidth(fullWidth)
|
/*media_horizontal_fastscroller.setContentWidth(fullWidth)
|
||||||
media_horizontal_fastscroller.setScrollToX(media_grid.computeHorizontalScrollOffset())
|
media_horizontal_fastscroller.setScrollToX(media_grid.computeHorizontalScrollOffset())*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun calculateContentHeight(media: ArrayList<ThumbnailItem>) {
|
private fun calculateContentHeight(media: ArrayList<ThumbnailItem>) {
|
||||||
|
@ -301,8 +298,8 @@ class SearchActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
fullHeight += ((curSectionItems - 1) / layoutManager.spanCount + 1) * thumbnailHeight
|
fullHeight += ((curSectionItems - 1) / layoutManager.spanCount + 1) * thumbnailHeight
|
||||||
media_vertical_fastscroller.setContentHeight(fullHeight)
|
/*media_vertical_fastscroller.setContentHeight(fullHeight)
|
||||||
media_vertical_fastscroller.setScrollToY(media_grid.computeVerticalScrollOffset())
|
media_vertical_fastscroller.setScrollToY(media_grid.computeVerticalScrollOffset())*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getAllMedia() {
|
private fun getAllMedia() {
|
||||||
|
|
|
@ -895,10 +895,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
val favoriteIcon = if (medium.isFavorite) R.drawable.ic_star_on_vector else R.drawable.ic_star_off_vector
|
val favoriteIcon = if (medium.isFavorite) R.drawable.ic_star_vector else R.drawable.ic_star_outline_vector
|
||||||
bottom_favorite.setImageResource(favoriteIcon)
|
bottom_favorite.setImageResource(favoriteIcon)
|
||||||
|
|
||||||
val hideIcon = if (medium.isHidden()) R.drawable.ic_unhide_vector else R.drawable.ic_hide
|
val hideIcon = if (medium.isHidden()) R.drawable.ic_unhide_vector else R.drawable.ic_hide_vector
|
||||||
bottom_toggle_file_visibility.setImageResource(hideIcon)
|
bottom_toggle_file_visibility.setImageResource(hideIcon)
|
||||||
|
|
||||||
bottom_rotate.beVisibleIf(config.visibleBottomActions and BOTTOM_ACTION_ROTATE != 0 && getCurrentMedium()?.isImage() == true)
|
bottom_rotate.beVisibleIf(config.visibleBottomActions and BOTTOM_ACTION_ROTATE != 0 && getCurrentMedium()?.isImage() == true)
|
||||||
|
@ -929,7 +929,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
printHelper.orientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
|
printHelper.orientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
|
||||||
|
|
||||||
try {
|
try {
|
||||||
val resolution = path.getImageResolution()
|
val resolution = path.getImageResolution(this)
|
||||||
if (resolution == null) {
|
if (resolution == null) {
|
||||||
toast(R.string.unknown_error_occurred)
|
toast(R.string.unknown_error_occurred)
|
||||||
return
|
return
|
||||||
|
@ -987,7 +987,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
@TargetApi(Build.VERSION_CODES.N)
|
@TargetApi(Build.VERSION_CODES.N)
|
||||||
private fun resizeImage() {
|
private fun resizeImage() {
|
||||||
val oldPath = getCurrentPath()
|
val oldPath = getCurrentPath()
|
||||||
val originalSize = oldPath.getImageResolution() ?: return
|
val originalSize = oldPath.getImageResolution(this) ?: return
|
||||||
ResizeWithPathDialog(this, originalSize, oldPath) { newSize, newPath ->
|
ResizeWithPathDialog(this, originalSize, oldPath) { newSize, newPath ->
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -26,7 +26,6 @@ import com.simplemobiletools.commons.interfaces.ItemMoveCallback
|
||||||
import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
|
import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
|
||||||
import com.simplemobiletools.commons.interfaces.StartReorderDragListener
|
import com.simplemobiletools.commons.interfaces.StartReorderDragListener
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.commons.views.FastScroller
|
|
||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.simplemobiletools.gallery.pro.R
|
||||||
import com.simplemobiletools.gallery.pro.activities.MediaActivity
|
import com.simplemobiletools.gallery.pro.activities.MediaActivity
|
||||||
|
@ -56,9 +55,9 @@ import kotlin.collections.HashMap
|
||||||
|
|
||||||
class DirectoryAdapter(
|
class DirectoryAdapter(
|
||||||
activity: BaseSimpleActivity, var dirs: ArrayList<Directory>, val listener: DirectoryOperationsListener?, recyclerView: MyRecyclerView,
|
activity: BaseSimpleActivity, var dirs: ArrayList<Directory>, val listener: DirectoryOperationsListener?, recyclerView: MyRecyclerView,
|
||||||
val isPickIntent: Boolean, val swipeRefreshLayout: SwipeRefreshLayout? = null, fastScroller: FastScroller? = null, itemClick: (Any) -> Unit
|
val isPickIntent: Boolean, val swipeRefreshLayout: SwipeRefreshLayout? = null, itemClick: (Any) -> Unit
|
||||||
) :
|
) :
|
||||||
MyRecyclerViewAdapter(activity, recyclerView, fastScroller, itemClick), ItemTouchHelperContract {
|
MyRecyclerViewAdapter(activity, recyclerView, itemClick), ItemTouchHelperContract {
|
||||||
|
|
||||||
private val config = activity.config
|
private val config = activity.config
|
||||||
private val isListViewType = config.viewTypeFolders == VIEW_TYPE_LIST
|
private val isListViewType = config.viewTypeFolders == VIEW_TYPE_LIST
|
||||||
|
@ -616,9 +615,9 @@ class DirectoryAdapter(
|
||||||
val selectedDirs = getSelectedItems()
|
val selectedDirs = getSelectedItems()
|
||||||
selectedDirs.forEach {
|
selectedDirs.forEach {
|
||||||
val path = it.path
|
val path = it.path
|
||||||
if (activity.needsStupidWritePermissions(path) && config.treeUri.isEmpty()) {
|
/*if (activity.needsStupidWritePermissions(path) && config.treeUri.isEmpty()) {
|
||||||
SAFPath = path
|
SAFPath = path
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
activity.handleSAFDialog(SAFPath) {
|
activity.handleSAFDialog(SAFPath) {
|
||||||
|
|
|
@ -12,8 +12,10 @@ import com.simplemobiletools.gallery.pro.extensions.config
|
||||||
import kotlinx.android.synthetic.main.item_manage_folder.view.*
|
import kotlinx.android.synthetic.main.item_manage_folder.view.*
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class ManageFoldersAdapter(activity: BaseSimpleActivity, var folders: ArrayList<String>, val isShowingExcludedFolders: Boolean, val listener: RefreshRecyclerViewListener?,
|
class ManageFoldersAdapter(
|
||||||
recyclerView: MyRecyclerView, itemClick: (Any) -> Unit) : MyRecyclerViewAdapter(activity, recyclerView, null, itemClick) {
|
activity: BaseSimpleActivity, var folders: ArrayList<String>, val isShowingExcludedFolders: Boolean, val listener: RefreshRecyclerViewListener?,
|
||||||
|
recyclerView: MyRecyclerView, itemClick: (Any) -> Unit
|
||||||
|
) : MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
|
||||||
|
|
||||||
private val config = activity.config
|
private val config = activity.config
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,10 @@ import com.simplemobiletools.gallery.pro.extensions.removeNoMedia
|
||||||
import kotlinx.android.synthetic.main.item_manage_folder.view.*
|
import kotlinx.android.synthetic.main.item_manage_folder.view.*
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class ManageHiddenFoldersAdapter(activity: BaseSimpleActivity, var folders: ArrayList<String>, val listener: RefreshRecyclerViewListener?,
|
class ManageHiddenFoldersAdapter(
|
||||||
recyclerView: MyRecyclerView, itemClick: (Any) -> Unit) : MyRecyclerViewAdapter(activity, recyclerView, null, itemClick) {
|
activity: BaseSimpleActivity, var folders: ArrayList<String>, val listener: RefreshRecyclerViewListener?,
|
||||||
|
recyclerView: MyRecyclerView, itemClick: (Any) -> Unit
|
||||||
|
) : MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
|
||||||
|
|
||||||
private val config = activity.config
|
private val config = activity.config
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ import com.simplemobiletools.commons.dialogs.RenameItemDialog
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.commons.views.FastScroller
|
|
||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.gallery.pro.R
|
import com.simplemobiletools.gallery.pro.R
|
||||||
import com.simplemobiletools.gallery.pro.activities.ViewPagerActivity
|
import com.simplemobiletools.gallery.pro.activities.ViewPagerActivity
|
||||||
|
@ -42,9 +41,9 @@ import java.util.*
|
||||||
|
|
||||||
class MediaAdapter(
|
class MediaAdapter(
|
||||||
activity: BaseSimpleActivity, var media: ArrayList<ThumbnailItem>, val listener: MediaOperationsListener?, val isAGetIntent: Boolean,
|
activity: BaseSimpleActivity, var media: ArrayList<ThumbnailItem>, val listener: MediaOperationsListener?, val isAGetIntent: Boolean,
|
||||||
val allowMultiplePicks: Boolean, val path: String, recyclerView: MyRecyclerView, fastScroller: FastScroller? = null, itemClick: (Any) -> Unit
|
val allowMultiplePicks: Boolean, val path: String, recyclerView: MyRecyclerView, itemClick: (Any) -> Unit
|
||||||
) :
|
) :
|
||||||
MyRecyclerViewAdapter(activity, recyclerView, fastScroller, itemClick) {
|
MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
|
||||||
|
|
||||||
private val INSTANT_LOAD_DURATION = 2000L
|
private val INSTANT_LOAD_DURATION = 2000L
|
||||||
private val IMAGE_LOAD_DELAY = 100L
|
private val IMAGE_LOAD_DELAY = 100L
|
||||||
|
|
|
@ -14,8 +14,10 @@ import com.simplemobiletools.gallery.pro.extensions.*
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
import com.simplemobiletools.gallery.pro.models.Directory
|
||||||
import kotlinx.android.synthetic.main.dialog_directory_picker.view.*
|
import kotlinx.android.synthetic.main.dialog_directory_picker.view.*
|
||||||
|
|
||||||
class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: String, showOtherFolderButton: Boolean, val showFavoritesBin: Boolean,
|
class PickDirectoryDialog(
|
||||||
val callback: (path: String) -> Unit) {
|
val activity: BaseSimpleActivity, val sourcePath: String, showOtherFolderButton: Boolean, val showFavoritesBin: Boolean,
|
||||||
|
val callback: (path: String) -> Unit
|
||||||
|
) {
|
||||||
private var dialog: AlertDialog
|
private var dialog: AlertDialog
|
||||||
private var shownDirectories = ArrayList<Directory>()
|
private var shownDirectories = ArrayList<Directory>()
|
||||||
private var allDirectories = ArrayList<Directory>()
|
private var allDirectories = ArrayList<Directory>()
|
||||||
|
@ -90,7 +92,8 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri
|
||||||
allDirectories = newDirs.clone() as ArrayList<Directory>
|
allDirectories = newDirs.clone() as ArrayList<Directory>
|
||||||
}
|
}
|
||||||
|
|
||||||
val distinctDirs = newDirs.filter { showFavoritesBin || (!it.isRecycleBin() && !it.areFavorites()) }.distinctBy { it.path.getDistinctPath() }.toMutableList() as ArrayList<Directory>
|
val distinctDirs = newDirs.filter { showFavoritesBin || (!it.isRecycleBin() && !it.areFavorites()) }.distinctBy { it.path.getDistinctPath() }
|
||||||
|
.toMutableList() as ArrayList<Directory>
|
||||||
val sortedDirs = activity.getSortedDirectories(distinctDirs)
|
val sortedDirs = activity.getSortedDirectories(distinctDirs)
|
||||||
val dirs = activity.getDirsToShow(sortedDirs, allDirectories, currentPathPrefix).clone() as ArrayList<Directory>
|
val dirs = activity.getDirsToShow(sortedDirs, allDirectories, currentPathPrefix).clone() as ArrayList<Directory>
|
||||||
if (dirs.hashCode() == shownDirectories.hashCode()) {
|
if (dirs.hashCode() == shownDirectories.hashCode()) {
|
||||||
|
@ -127,7 +130,7 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri
|
||||||
view.apply {
|
view.apply {
|
||||||
directories_grid.adapter = adapter
|
directories_grid.adapter = adapter
|
||||||
|
|
||||||
directories_vertical_fastscroller.isHorizontal = false
|
/*directories_vertical_fastscroller.isHorizontal = false
|
||||||
directories_vertical_fastscroller.beGoneIf(scrollHorizontally)
|
directories_vertical_fastscroller.beGoneIf(scrollHorizontally)
|
||||||
|
|
||||||
directories_horizontal_fastscroller.isHorizontal = true
|
directories_horizontal_fastscroller.isHorizontal = true
|
||||||
|
@ -141,7 +144,7 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri
|
||||||
directories_vertical_fastscroller.setViews(directories_grid) {
|
directories_vertical_fastscroller.setViews(directories_grid) {
|
||||||
directories_vertical_fastscroller.updateBubbleText(dirs[it].getBubbleText(sorting, activity, dateFormat, timeFormat))
|
directories_vertical_fastscroller.updateBubbleText(dirs[it].getBubbleText(sorting, activity, dateFormat, timeFormat))
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ package com.simplemobiletools.gallery.pro.dialogs
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.beGoneIf
|
|
||||||
import com.simplemobiletools.commons.extensions.beVisibleIf
|
|
||||||
import com.simplemobiletools.commons.extensions.getTimeFormat
|
import com.simplemobiletools.commons.extensions.getTimeFormat
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID
|
||||||
|
@ -66,7 +64,7 @@ class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val c
|
||||||
return
|
return
|
||||||
|
|
||||||
shownMedia = media
|
shownMedia = media
|
||||||
val adapter = MediaAdapter(activity, shownMedia.clone() as ArrayList<ThumbnailItem>, null, true, false, path, view.media_grid, null) {
|
val adapter = MediaAdapter(activity, shownMedia.clone() as ArrayList<ThumbnailItem>, null, true, false, path, view.media_grid) {
|
||||||
if (it is Medium) {
|
if (it is Medium) {
|
||||||
callback(it.path)
|
callback(it.path)
|
||||||
dialog.dismiss()
|
dialog.dismiss()
|
||||||
|
@ -80,7 +78,7 @@ class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val c
|
||||||
view.apply {
|
view.apply {
|
||||||
media_grid.adapter = adapter
|
media_grid.adapter = adapter
|
||||||
|
|
||||||
media_vertical_fastscroller.isHorizontal = false
|
/*media_vertical_fastscroller.isHorizontal = false
|
||||||
media_vertical_fastscroller.beGoneIf(scrollHorizontally)
|
media_vertical_fastscroller.beGoneIf(scrollHorizontally)
|
||||||
|
|
||||||
media_horizontal_fastscroller.isHorizontal = true
|
media_horizontal_fastscroller.isHorizontal = true
|
||||||
|
@ -96,7 +94,7 @@ class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val c
|
||||||
val medium = (media[it] as? Medium)
|
val medium = (media[it] as? Medium)
|
||||||
media_vertical_fastscroller.updateBubbleText(medium?.getBubbleText(sorting, activity, dateFormat, timeFormat) ?: "")
|
media_vertical_fastscroller.updateBubbleText(medium?.getBubbleText(sorting, activity, dateFormat, timeFormat) ?: "")
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,13 @@
|
||||||
android:textSize="@dimen/bigger_text_size"
|
android:textSize="@dimen/bigger_text_size"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
|
||||||
|
android:id="@+id/directories_fastscroller"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/directories_switch_searching"
|
||||||
|
app:supportSwipeToRefresh="true">
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyRecyclerView
|
<com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
android:id="@+id/directories_grid"
|
android:id="@+id/directories_grid"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -57,30 +64,6 @@
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
||||||
app:spanCount="@integer/directory_columns_vertical_scroll" />
|
app:spanCount="@integer/directory_columns_vertical_scroll" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
</com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller>
|
||||||
android:id="@+id/directories_vertical_fastscroller"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_below="@+id/directories_switch_searching"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:paddingStart="@dimen/normal_margin"
|
|
||||||
android:visibility="gone">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_vertical" />
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
|
||||||
android:id="@+id/directories_horizontal_fastscroller"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:paddingTop="@dimen/normal_margin"
|
|
||||||
android:visibility="gone">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_horizontal" />
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||||
|
|
|
@ -36,6 +36,12 @@
|
||||||
android:textSize="@dimen/bigger_text_size"
|
android:textSize="@dimen/bigger_text_size"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
|
||||||
|
android:id="@+id/media_fastscroller"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:supportSwipeToRefresh="true">
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyRecyclerView
|
<com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
android:id="@+id/media_grid"
|
android:id="@+id/media_grid"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -45,29 +51,6 @@
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
||||||
app:spanCount="@integer/media_columns_vertical_scroll" />
|
app:spanCount="@integer/media_columns_vertical_scroll" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
</com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller>
|
||||||
android:id="@+id/media_vertical_fastscroller"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:paddingStart="@dimen/normal_margin"
|
|
||||||
android:visibility="gone">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_vertical" />
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
|
||||||
android:id="@+id/media_horizontal_fastscroller"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:paddingTop="@dimen/normal_margin"
|
|
||||||
android:visibility="gone">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_horizontal" />
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||||
|
|
|
@ -19,6 +19,11 @@
|
||||||
android:textStyle="italic"
|
android:textStyle="italic"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
|
||||||
|
android:id="@+id/media_fastscroller"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyRecyclerView
|
<com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
android:id="@+id/media_grid"
|
android:id="@+id/media_grid"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -27,28 +32,5 @@
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
||||||
app:spanCount="@integer/media_columns_vertical_scroll" />
|
app:spanCount="@integer/media_columns_vertical_scroll" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
</com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller>
|
||||||
android:id="@+id/media_vertical_fastscroller"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:paddingStart="@dimen/normal_margin"
|
|
||||||
android:visibility="gone">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_vertical" />
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
|
||||||
android:id="@+id/media_horizontal_fastscroller"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:paddingTop="@dimen/normal_margin"
|
|
||||||
android:visibility="gone">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_horizontal" />
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/bottom_actions_wrapper"
|
android:id="@+id/bottom_actions_wrapper"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -16,13 +15,13 @@
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:contentDescription="@string/toggle_favorite"
|
android:contentDescription="@string/toggle_favorite"
|
||||||
android:padding="@dimen/medium_margin"
|
android:padding="@dimen/medium_margin"
|
||||||
android:src="@drawable/ic_star_off_vector"
|
android:src="@drawable/ic_star_outline_vector"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/bottom_edit"
|
app:layout_constraintEnd_toStartOf="@+id/bottom_edit"
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_edit"
|
android:id="@+id/bottom_edit"
|
||||||
|
@ -37,7 +36,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_favorite"
|
app:layout_constraintStart_toEndOf="@+id/bottom_favorite"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_share"
|
android:id="@+id/bottom_share"
|
||||||
|
@ -52,7 +51,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_edit"
|
app:layout_constraintStart_toEndOf="@+id/bottom_edit"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_delete"
|
android:id="@+id/bottom_delete"
|
||||||
|
@ -67,7 +66,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_share"
|
app:layout_constraintStart_toEndOf="@+id/bottom_share"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_rotate"
|
android:id="@+id/bottom_rotate"
|
||||||
|
@ -82,7 +81,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_delete"
|
app:layout_constraintStart_toEndOf="@+id/bottom_delete"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_properties"
|
android:id="@+id/bottom_properties"
|
||||||
|
@ -91,13 +90,13 @@
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:contentDescription="@string/properties"
|
android:contentDescription="@string/properties"
|
||||||
android:padding="@dimen/medium_margin"
|
android:padding="@dimen/medium_margin"
|
||||||
android:src="@drawable/ic_properties_vector"
|
android:src="@drawable/ic_info_vector"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/bottom_change_orientation"
|
app:layout_constraintEnd_toStartOf="@+id/bottom_change_orientation"
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_rotate"
|
app:layout_constraintStart_toEndOf="@+id/bottom_rotate"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_change_orientation"
|
android:id="@+id/bottom_change_orientation"
|
||||||
|
@ -112,7 +111,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_properties"
|
app:layout_constraintStart_toEndOf="@+id/bottom_properties"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_slideshow"
|
android:id="@+id/bottom_slideshow"
|
||||||
|
@ -127,7 +126,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_change_orientation"
|
app:layout_constraintStart_toEndOf="@+id/bottom_change_orientation"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_show_on_map"
|
android:id="@+id/bottom_show_on_map"
|
||||||
|
@ -142,7 +141,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_slideshow"
|
app:layout_constraintStart_toEndOf="@+id/bottom_slideshow"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_toggle_file_visibility"
|
android:id="@+id/bottom_toggle_file_visibility"
|
||||||
|
@ -151,13 +150,13 @@
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:contentDescription="@string/toggle_file_visibility"
|
android:contentDescription="@string/toggle_file_visibility"
|
||||||
android:padding="@dimen/medium_margin"
|
android:padding="@dimen/medium_margin"
|
||||||
android:src="@drawable/ic_hide"
|
android:src="@drawable/ic_hide_vector"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/bottom_rename"
|
app:layout_constraintEnd_toStartOf="@+id/bottom_rename"
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_show_on_map"
|
app:layout_constraintStart_toEndOf="@+id/bottom_show_on_map"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_rename"
|
android:id="@+id/bottom_rename"
|
||||||
|
@ -166,13 +165,13 @@
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:contentDescription="@string/rename"
|
android:contentDescription="@string/rename"
|
||||||
android:padding="@dimen/medium_margin"
|
android:padding="@dimen/medium_margin"
|
||||||
android:src="@drawable/ic_rename_new"
|
android:src="@drawable/ic_rename_vector"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/bottom_set_as"
|
app:layout_constraintEnd_toStartOf="@+id/bottom_set_as"
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_toggle_file_visibility"
|
app:layout_constraintStart_toEndOf="@+id/bottom_toggle_file_visibility"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_set_as"
|
android:id="@+id/bottom_set_as"
|
||||||
|
@ -187,7 +186,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_rename"
|
app:layout_constraintStart_toEndOf="@+id/bottom_rename"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_copy"
|
android:id="@+id/bottom_copy"
|
||||||
|
@ -196,13 +195,13 @@
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:contentDescription="@string/copy"
|
android:contentDescription="@string/copy"
|
||||||
android:padding="@dimen/medium_margin"
|
android:padding="@dimen/medium_margin"
|
||||||
android:src="@drawable/ic_copy"
|
android:src="@drawable/ic_copy_vector"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/bottom_move"
|
app:layout_constraintEnd_toStartOf="@+id/bottom_move"
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_set_as"
|
app:layout_constraintStart_toEndOf="@+id/bottom_set_as"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_move"
|
android:id="@+id/bottom_move"
|
||||||
|
@ -217,7 +216,7 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_copy"
|
app:layout_constraintStart_toEndOf="@+id/bottom_copy"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/bottom_resize"
|
android:id="@+id/bottom_resize"
|
||||||
|
@ -232,6 +231,6 @@
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@+id/bottom_move"
|
app:layout_constraintStart_toEndOf="@+id/bottom_move"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"/>
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/directories_holder"
|
android:id="@+id/directories_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -12,36 +11,20 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="@dimen/activity_margin">
|
android:paddingTop="@dimen/activity_margin">
|
||||||
|
|
||||||
|
<com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
|
||||||
|
android:id="@+id/directories_fastscroller"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyRecyclerView
|
<com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
android:id="@+id/directories_grid"
|
android:id="@+id/directories_grid"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
||||||
app:spanCount="@integer/directory_columns_vertical_scroll"/>
|
app:spanCount="@integer/directory_columns_vertical_scroll" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
</com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller>
|
||||||
android:id="@+id/directories_vertical_fastscroller"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:paddingStart="@dimen/normal_margin">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_vertical"/>
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
|
||||||
android:id="@+id/directories_horizontal_fastscroller"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:paddingTop="@dimen/normal_margin">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_horizontal"/>
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyFloatingActionButton
|
<com.simplemobiletools.commons.views.MyFloatingActionButton
|
||||||
|
@ -51,6 +34,6 @@
|
||||||
android:layout_gravity="bottom|end"
|
android:layout_gravity="bottom|end"
|
||||||
android:layout_margin="@dimen/activity_margin"
|
android:layout_margin="@dimen/activity_margin"
|
||||||
android:src="@drawable/ic_unhide_vector"
|
android:src="@drawable/ic_unhide_vector"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone" />
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
|
|
@ -1,39 +1,22 @@
|
||||||
<RelativeLayout
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/media_grid_holder"
|
android:id="@+id/media_grid_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="@dimen/activity_margin">
|
android:paddingTop="@dimen/activity_margin">
|
||||||
|
|
||||||
|
<com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller
|
||||||
|
android:id="@+id/directories_fastscroller"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyRecyclerView
|
<com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
android:id="@+id/media_grid"
|
android:id="@+id/media_grid"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:scrollbars="none"
|
android:scrollbars="none"
|
||||||
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"
|
||||||
app:spanCount="@integer/media_columns_vertical_scroll"/>
|
app:spanCount="@integer/media_columns_vertical_scroll" />
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
</com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller>
|
||||||
android:id="@+id/media_vertical_fastscroller"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:paddingStart="@dimen/normal_margin">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_vertical"/>
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.FastScroller
|
|
||||||
android:id="@+id/media_horizontal_fastscroller"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:paddingTop="@dimen/normal_margin">
|
|
||||||
|
|
||||||
<include layout="@layout/fastscroller_handle_horizontal"/>
|
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.FastScroller>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
android:id="@+id/cab_move_to_top"
|
android:id="@+id/cab_move_to_top"
|
||||||
android:icon="@drawable/ic_move_to_top_vector"
|
android:icon="@drawable/ic_move_to_top_vector"
|
||||||
android:title="@string/move_to_top"
|
android:title="@string/move_to_top"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_move_to_bottom"
|
android:id="@+id/cab_move_to_bottom"
|
||||||
android:icon="@drawable/ic_move_to_bottom_vector"
|
android:icon="@drawable/ic_move_to_bottom_vector"
|
||||||
android:title="@string/move_to_bottom"
|
android:title="@string/move_to_bottom"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_delete"
|
android:id="@+id/cab_delete"
|
||||||
android:icon="@drawable/ic_delete_vector"
|
android:icon="@drawable/ic_delete_vector"
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_properties"
|
android:id="@+id/cab_properties"
|
||||||
android:icon="@drawable/ic_info"
|
android:icon="@drawable/ic_info_vector"
|
||||||
android:title="@string/properties"
|
android:title="@string/properties"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
|
@ -38,12 +38,12 @@
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_rename"
|
android:id="@+id/cab_rename"
|
||||||
android:icon="@drawable/ic_rename_new"
|
android:icon="@drawable/ic_rename_vector"
|
||||||
android:title="@string/rename"
|
android:title="@string/rename"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_hide"
|
android:id="@+id/cab_hide"
|
||||||
android:icon="@drawable/ic_hide"
|
android:icon="@drawable/ic_hide_vector"
|
||||||
android:title="@string/hide_folder"
|
android:title="@string/hide_folder"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
android:id="@+id/cab_unhide"
|
android:id="@+id/cab_unhide"
|
||||||
android:icon="@drawable/ic_unhide_vector"
|
android:icon="@drawable/ic_unhide_vector"
|
||||||
android:title="@string/unhide"
|
android:title="@string/unhide"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,17 +5,17 @@
|
||||||
android:id="@+id/cab_confirm_selection"
|
android:id="@+id/cab_confirm_selection"
|
||||||
android:icon="@drawable/ic_check_vector"
|
android:icon="@drawable/ic_check_vector"
|
||||||
android:title="@string/confirm_selection"
|
android:title="@string/confirm_selection"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_delete"
|
android:id="@+id/cab_delete"
|
||||||
android:icon="@drawable/ic_delete_vector"
|
android:icon="@drawable/ic_delete_vector"
|
||||||
android:title="@string/delete"
|
android:title="@string/delete"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_share"
|
android:id="@+id/cab_share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_rotate"
|
android:id="@+id/cab_rotate"
|
||||||
android:icon="@drawable/ic_rotate_right_vector"
|
android:icon="@drawable/ic_rotate_right_vector"
|
||||||
|
@ -24,81 +24,81 @@
|
||||||
<menu>
|
<menu>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_rotate_right"
|
android:id="@+id/cab_rotate_right"
|
||||||
android:title="@string/rotate_right"/>
|
android:title="@string/rotate_right" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_rotate_left"
|
android:id="@+id/cab_rotate_left"
|
||||||
android:title="@string/rotate_left"/>
|
android:title="@string/rotate_left" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_rotate_one_eighty"
|
android:id="@+id/cab_rotate_one_eighty"
|
||||||
android:title="@string/rotate_one_eighty"/>
|
android:title="@string/rotate_one_eighty" />
|
||||||
</menu>
|
</menu>
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_properties"
|
android:id="@+id/cab_properties"
|
||||||
android:icon="@drawable/ic_info"
|
android:icon="@drawable/ic_info_vector"
|
||||||
android:title="@string/properties"
|
android:title="@string/properties"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_rename"
|
android:id="@+id/cab_rename"
|
||||||
android:icon="@drawable/ic_rename_new"
|
android:icon="@drawable/ic_rename_vector"
|
||||||
android:title="@string/rename"
|
android:title="@string/rename"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_hide"
|
android:id="@+id/cab_hide"
|
||||||
android:icon="@drawable/ic_hide"
|
android:icon="@drawable/ic_hide_vector"
|
||||||
android:title="@string/hide"
|
android:title="@string/hide"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_unhide"
|
android:id="@+id/cab_unhide"
|
||||||
android:icon="@drawable/ic_unhide_vector"
|
android:icon="@drawable/ic_unhide_vector"
|
||||||
android:title="@string/unhide"
|
android:title="@string/unhide"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_copy_to"
|
android:id="@+id/cab_copy_to"
|
||||||
android:title="@string/copy_to"
|
android:title="@string/copy_to"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_move_to"
|
android:id="@+id/cab_move_to"
|
||||||
android:title="@string/move_to"
|
android:title="@string/move_to"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_create_shortcut"
|
android:id="@+id/cab_create_shortcut"
|
||||||
android:title="@string/create_shortcut"
|
android:title="@string/create_shortcut"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_open_with"
|
android:id="@+id/cab_open_with"
|
||||||
android:title="@string/open_with"
|
android:title="@string/open_with"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_set_as"
|
android:id="@+id/cab_set_as"
|
||||||
android:title="@string/set_as"
|
android:title="@string/set_as"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_edit"
|
android:id="@+id/cab_edit"
|
||||||
android:icon="@drawable/ic_edit_vector"
|
android:icon="@drawable/ic_edit_vector"
|
||||||
android:title="@string/edit"
|
android:title="@string/edit"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_add_to_favorites"
|
android:id="@+id/cab_add_to_favorites"
|
||||||
android:icon="@drawable/ic_star_off_vector"
|
android:icon="@drawable/ic_star_outline_vector"
|
||||||
android:title="@string/add_to_favorites"
|
android:title="@string/add_to_favorites"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_remove_from_favorites"
|
android:id="@+id/cab_remove_from_favorites"
|
||||||
android:icon="@drawable/ic_star_on_vector"
|
android:icon="@drawable/ic_star_vector"
|
||||||
android:title="@string/remove_from_favorites"
|
android:title="@string/remove_from_favorites"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_restore_recycle_bin_files"
|
android:id="@+id/cab_restore_recycle_bin_files"
|
||||||
android:title="@string/restore_selected_files"
|
android:title="@string/restore_selected_files"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_fix_date_taken"
|
android:id="@+id/cab_fix_date_taken"
|
||||||
android:title="@string/fix_date_taken"
|
android:title="@string/fix_date_taken"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_select_all"
|
android:id="@+id/cab_select_all"
|
||||||
android:icon="@drawable/ic_select_all_vector"
|
android:icon="@drawable/ic_select_all_vector"
|
||||||
android:title="@string/select_all"
|
android:title="@string/select_all"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
android:id="@+id/add_folder"
|
android:id="@+id/add_folder"
|
||||||
android:icon="@drawable/ic_plus_vector"
|
android:icon="@drawable/ic_plus_vector"
|
||||||
android:title="@string/add_folder"
|
android:title="@string/add_folder"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
android:id="@+id/save_as"
|
android:id="@+id/save_as"
|
||||||
android:icon="@drawable/ic_check_vector"
|
android:icon="@drawable/ic_check_vector"
|
||||||
android:title="@string/save_as"
|
android:title="@string/save_as"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/edit"
|
android:id="@+id/edit"
|
||||||
android:icon="@drawable/ic_edit_vector"
|
android:icon="@drawable/ic_edit_vector"
|
||||||
android:title="@string/edit_with"
|
android:title="@string/edit_with"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/share"
|
android:id="@+id/share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
android:id="@+id/add_folder"
|
android:id="@+id/add_folder"
|
||||||
android:icon="@drawable/ic_plus_vector"
|
android:icon="@drawable/ic_plus_vector"
|
||||||
android:title="@string/add_folder"
|
android:title="@string/add_folder"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -64,10 +64,12 @@
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/settings"
|
android:id="@+id/settings"
|
||||||
|
android:icon="@drawable/ic_settings_cog_vector"
|
||||||
android:title="@string/settings"
|
android:title="@string/settings"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/about"
|
android:id="@+id/about"
|
||||||
|
android:icon="@drawable/ic_info_vector"
|
||||||
android:title="@string/about"
|
android:title="@string/about"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<item
|
<item
|
||||||
android:id="@+id/temporarily_show_hidden"
|
android:id="@+id/temporarily_show_hidden"
|
||||||
android:title="@string/temporarily_show_hidden"
|
android:title="@string/temporarily_show_hidden"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/stop_showing_hidden"
|
android:id="@+id/stop_showing_hidden"
|
||||||
android:title="@string/stop_showing_hidden"
|
android:title="@string/stop_showing_hidden"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -85,10 +85,12 @@
|
||||||
app:showAsAction="never" />
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/settings"
|
android:id="@+id/settings"
|
||||||
|
android:icon="@drawable/ic_settings_cog_vector"
|
||||||
android:title="@string/settings"
|
android:title="@string/settings"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/about"
|
android:id="@+id/about"
|
||||||
|
android:icon="@drawable/ic_info_vector"
|
||||||
android:title="@string/about"
|
android:title="@string/about"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
android:icon="@drawable/ic_search_vector"
|
android:icon="@drawable/ic_search_vector"
|
||||||
android:title="@string/search"
|
android:title="@string/search"
|
||||||
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
||||||
app:showAsAction="collapseActionView|always"/>
|
app:showAsAction="collapseActionView|always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/toggle_filename"
|
android:id="@+id/toggle_filename"
|
||||||
android:icon="@drawable/ic_label_vector"
|
android:icon="@drawable/ic_label_vector"
|
||||||
android:title="@string/toggle_filename"
|
android:title="@string/toggle_filename"
|
||||||
app:showAsAction="always"/>
|
app:showAsAction="always" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
android:id="@+id/save"
|
android:id="@+id/save"
|
||||||
android:icon="@drawable/ic_check_vector"
|
android:icon="@drawable/ic_check_vector"
|
||||||
android:title="@string/save"
|
android:title="@string/save"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
android:id="@+id/menu_change_orientation"
|
android:id="@+id/menu_change_orientation"
|
||||||
android:icon="@drawable/ic_orientation_auto_vector"
|
android:icon="@drawable/ic_orientation_auto_vector"
|
||||||
android:title="@string/change_orientation"
|
android:title="@string/change_orientation"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_share"
|
android:id="@+id/menu_share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_open_with"
|
android:id="@+id/menu_open_with"
|
||||||
android:title="@string/open_with"
|
android:title="@string/open_with"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -6,17 +6,17 @@
|
||||||
android:icon="@drawable/ic_check_vector"
|
android:icon="@drawable/ic_check_vector"
|
||||||
android:title="@string/save_as"
|
android:title="@string/save_as"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_delete"
|
android:id="@+id/menu_delete"
|
||||||
android:icon="@drawable/ic_delete_vector"
|
android:icon="@drawable/ic_delete_vector"
|
||||||
android:title="@string/delete"
|
android:title="@string/delete"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_share"
|
android:id="@+id/menu_share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_rotate"
|
android:id="@+id/menu_rotate"
|
||||||
android:icon="@drawable/ic_rotate_right_vector"
|
android:icon="@drawable/ic_rotate_right_vector"
|
||||||
|
@ -25,75 +25,75 @@
|
||||||
<menu>
|
<menu>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_rotate_right"
|
android:id="@+id/menu_rotate_right"
|
||||||
android:title="@string/rotate_right"/>
|
android:title="@string/rotate_right" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_rotate_left"
|
android:id="@+id/menu_rotate_left"
|
||||||
android:title="@string/rotate_left"/>
|
android:title="@string/rotate_left" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_rotate_one_eighty"
|
android:id="@+id/menu_rotate_one_eighty"
|
||||||
android:title="@string/rotate_one_eighty"/>
|
android:title="@string/rotate_one_eighty" />
|
||||||
</menu>
|
</menu>
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_properties"
|
android:id="@+id/menu_properties"
|
||||||
android:icon="@drawable/ic_info"
|
android:icon="@drawable/ic_info_vector"
|
||||||
android:title="@string/properties"
|
android:title="@string/properties"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_rename"
|
android:id="@+id/menu_rename"
|
||||||
android:icon="@drawable/ic_rename_new"
|
android:icon="@drawable/ic_rename_vector"
|
||||||
android:title="@string/rename"
|
android:title="@string/rename"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_hide"
|
android:id="@+id/menu_hide"
|
||||||
android:icon="@drawable/ic_hide"
|
android:icon="@drawable/ic_hide_vector"
|
||||||
android:title="@string/hide"
|
android:title="@string/hide"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_unhide"
|
android:id="@+id/menu_unhide"
|
||||||
android:icon="@drawable/ic_unhide_vector"
|
android:icon="@drawable/ic_unhide_vector"
|
||||||
android:title="@string/unhide"
|
android:title="@string/unhide"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_copy_to"
|
android:id="@+id/menu_copy_to"
|
||||||
android:title="@string/copy_to"
|
android:title="@string/copy_to"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_move_to"
|
android:id="@+id/menu_move_to"
|
||||||
android:title="@string/move_to"
|
android:title="@string/move_to"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_create_shortcut"
|
android:id="@+id/menu_create_shortcut"
|
||||||
android:title="@string/create_shortcut"
|
android:title="@string/create_shortcut"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_open_with"
|
android:id="@+id/menu_open_with"
|
||||||
android:title="@string/open_with"
|
android:title="@string/open_with"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_set_as"
|
android:id="@+id/menu_set_as"
|
||||||
android:icon="@drawable/ic_set_as_vector"
|
android:icon="@drawable/ic_set_as_vector"
|
||||||
android:title="@string/set_as"
|
android:title="@string/set_as"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_edit"
|
android:id="@+id/menu_edit"
|
||||||
android:icon="@drawable/ic_edit_vector"
|
android:icon="@drawable/ic_edit_vector"
|
||||||
android:title="@string/edit"
|
android:title="@string/edit"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_add_to_favorites"
|
android:id="@+id/menu_add_to_favorites"
|
||||||
android:icon="@drawable/ic_star_off_vector"
|
android:icon="@drawable/ic_star_outline_vector"
|
||||||
android:title="@string/add_to_favorites"
|
android:title="@string/add_to_favorites"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_remove_from_favorites"
|
android:id="@+id/menu_remove_from_favorites"
|
||||||
android:icon="@drawable/ic_star_on_vector"
|
android:icon="@drawable/ic_star_vector"
|
||||||
android:title="@string/remove_from_favorites"
|
android:title="@string/remove_from_favorites"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_restore_file"
|
android:id="@+id/menu_restore_file"
|
||||||
android:title="@string/restore_this_file"
|
android:title="@string/restore_this_file"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_change_orientation"
|
android:id="@+id/menu_change_orientation"
|
||||||
android:icon="@drawable/ic_orientation_auto_vector"
|
android:icon="@drawable/ic_orientation_auto_vector"
|
||||||
|
@ -102,34 +102,35 @@
|
||||||
<menu>
|
<menu>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_force_portrait"
|
android:id="@+id/menu_force_portrait"
|
||||||
android:title="@string/force_portrait"/>
|
android:title="@string/force_portrait" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_force_landscape"
|
android:id="@+id/menu_force_landscape"
|
||||||
android:title="@string/force_landscape"/>
|
android:title="@string/force_landscape" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_default_orientation"
|
android:id="@+id/menu_default_orientation"
|
||||||
android:title="@string/use_default_orientation"/>
|
android:title="@string/use_default_orientation" />
|
||||||
</menu>
|
</menu>
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_print"
|
android:id="@+id/menu_print"
|
||||||
android:title="@string/print"
|
android:title="@string/print"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_resize"
|
android:id="@+id/menu_resize"
|
||||||
android:title="@string/resize"
|
android:title="@string/resize"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_show_on_map"
|
android:id="@+id/menu_show_on_map"
|
||||||
android:title="@string/show_on_map"
|
android:title="@string/show_on_map"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_slideshow"
|
android:id="@+id/menu_slideshow"
|
||||||
android:icon="@drawable/ic_slideshow_vector"
|
android:icon="@drawable/ic_slideshow_vector"
|
||||||
android:title="@string/slideshow"
|
android:title="@string/slideshow"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_settings"
|
android:id="@+id/menu_settings"
|
||||||
|
android:icon="@drawable/ic_settings_cog_vector"
|
||||||
android:title="@string/settings"
|
android:title="@string/settings"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="ifRoom" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,28 +5,28 @@
|
||||||
android:id="@+id/menu_share"
|
android:id="@+id/menu_share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_properties"
|
android:id="@+id/menu_properties"
|
||||||
android:icon="@drawable/ic_info"
|
android:icon="@drawable/ic_info_vector"
|
||||||
android:title="@string/properties"
|
android:title="@string/properties"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_edit"
|
android:id="@+id/menu_edit"
|
||||||
android:icon="@drawable/ic_edit_vector"
|
android:icon="@drawable/ic_edit_vector"
|
||||||
android:title="@string/edit"
|
android:title="@string/edit"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_set_as"
|
android:id="@+id/menu_set_as"
|
||||||
android:icon="@drawable/ic_set_as_vector"
|
android:icon="@drawable/ic_set_as_vector"
|
||||||
android:title="@string/set_as"
|
android:title="@string/set_as"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_open_with"
|
android:id="@+id/menu_open_with"
|
||||||
android:title="@string/open_with"
|
android:title="@string/open_with"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_show_on_map"
|
android:id="@+id/menu_show_on_map"
|
||||||
android:title="@string/show_on_map"
|
android:title="@string/show_on_map"
|
||||||
app:showAsAction="never"/>
|
app:showAsAction="never" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
Loading…
Reference in a new issue