mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
show locked folder placeholder cover at the list view too
This commit is contained in:
parent
820fa8883d
commit
a58170f84a
2 changed files with 21 additions and 7 deletions
|
@ -30,14 +30,14 @@ import com.simplemobiletools.gallery.pro.helpers.*
|
|||
import com.simplemobiletools.gallery.pro.interfaces.DirectoryOperationsListener
|
||||
import com.simplemobiletools.gallery.pro.models.AlbumCover
|
||||
import com.simplemobiletools.gallery.pro.models.Directory
|
||||
import kotlinx.android.synthetic.main.directory_item_grid.view.*
|
||||
import kotlinx.android.synthetic.main.directory_item_grid.view.dir_check
|
||||
import kotlinx.android.synthetic.main.directory_item_grid.view.dir_location
|
||||
import kotlinx.android.synthetic.main.directory_item_grid.view.dir_lock
|
||||
import kotlinx.android.synthetic.main.directory_item_grid.view.dir_name
|
||||
import kotlinx.android.synthetic.main.directory_item_grid.view.dir_pin
|
||||
import kotlinx.android.synthetic.main.directory_item_grid.view.dir_thumbnail
|
||||
import kotlinx.android.synthetic.main.directory_item_grid.view.photo_cnt
|
||||
import kotlinx.android.synthetic.main.directory_item_list.view.*
|
||||
import kotlinx.android.synthetic.main.directory_item_list.view.dir_check
|
||||
import kotlinx.android.synthetic.main.directory_item_list.view.dir_location
|
||||
import kotlinx.android.synthetic.main.directory_item_list.view.dir_name
|
||||
import kotlinx.android.synthetic.main.directory_item_list.view.dir_pin
|
||||
import kotlinx.android.synthetic.main.directory_item_list.view.dir_thumbnail
|
||||
import kotlinx.android.synthetic.main.directory_item_list.view.photo_cnt
|
||||
import java.io.File
|
||||
|
||||
class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directory>, val listener: DirectoryOperationsListener?, recyclerView: MyRecyclerView,
|
||||
|
|
|
@ -14,6 +14,20 @@
|
|||
android:layout_width="@dimen/list_view_folder_thumbnail_size"
|
||||
android:layout_height="@dimen/list_view_folder_thumbnail_size"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dir_lock"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignStart="@+id/dir_thumbnail"
|
||||
android:layout_alignTop="@+id/dir_thumbnail"
|
||||
android:layout_alignEnd="@+id/dir_thumbnail"
|
||||
android:layout_alignBottom="@+id/dir_thumbnail"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@color/default_background_color"
|
||||
android:padding="@dimen/medium_margin"
|
||||
android:src="@drawable/ic_lock_huge"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dir_check"
|
||||
android:layout_width="@dimen/selection_check_size"
|
||||
|
|
Loading…
Reference in a new issue