show locked folder placeholder cover at the list view too
This commit is contained in:
parent
820fa8883d
commit
a58170f84a
|
@ -30,14 +30,14 @@ import com.simplemobiletools.gallery.pro.helpers.*
|
||||||
import com.simplemobiletools.gallery.pro.interfaces.DirectoryOperationsListener
|
import com.simplemobiletools.gallery.pro.interfaces.DirectoryOperationsListener
|
||||||
import com.simplemobiletools.gallery.pro.models.AlbumCover
|
import com.simplemobiletools.gallery.pro.models.AlbumCover
|
||||||
import com.simplemobiletools.gallery.pro.models.Directory
|
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.*
|
||||||
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
|
import java.io.File
|
||||||
|
|
||||||
class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directory>, val listener: DirectoryOperationsListener?, recyclerView: MyRecyclerView,
|
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_width="@dimen/list_view_folder_thumbnail_size"
|
||||||
android:layout_height="@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
|
<ImageView
|
||||||
android:id="@+id/dir_check"
|
android:id="@+id/dir_check"
|
||||||
android:layout_width="@dimen/selection_check_size"
|
android:layout_width="@dimen/selection_check_size"
|
||||||
|
|
Loading…
Reference in New Issue