File tree Expand file tree Collapse file tree 6 files changed +16
-8
lines changed
multiimagepicker/src/main
java/com/creativechintak/multiimagepicker Expand file tree Collapse file tree 6 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
package =" com.creative.multiimagepicker" >
4
+ <uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
5
+ <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
6
+ <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
7
+ <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
8
+ <uses-permission android : name =" android.permission.ACCESS_MEDIA_LOCATION" />
9
+
4
10
5
11
<application
6
12
android : allowBackup =" true"
7
13
android : icon =" @mipmap/ic_launcher"
8
14
android : label =" @string/app_name"
15
+ android : requestLegacyExternalStorage =" true"
9
16
android : roundIcon =" @mipmap/ic_launcher_round"
10
17
android : supportsRtl =" true"
11
18
android : theme =" @style/Theme.MultiImagePicker" >
Original file line number Diff line number Diff line change 2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
package =" com.creativechintak.multiimagepicker" >
4
4
5
- <uses-permission android : name = " android.permission.READ_EXTERNAL_STORAGE " />
6
-
7
- < application >
5
+ <application
6
+ android : requestLegacyExternalStorage = " true "
7
+ >
8
8
<activity
9
9
android : name =" .GalleryActivity"
10
10
android : exported =" false"
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ class StartImagePickerActivity : AppCompatActivity() {
23
23
24
24
permissions.add(Manifest .permission.READ_EXTERNAL_STORAGE )
25
25
26
- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .Q ) {
27
- permissions.add(Manifest .permission.ACCESS_MEDIA_LOCATION )
28
- }
29
-
30
26
return permissions.toTypedArray()
31
27
}
32
28
Original file line number Diff line number Diff line change 17
17
<androidx .recyclerview.widget.RecyclerView
18
18
android : layout_width =" match_parent"
19
19
android : layout_height =" 0dp"
20
+ android : layout_marginHorizontal =" 1dp"
20
21
android : id =" @+id/recyclerViewImages"
21
22
android : clipToPadding =" false"
22
23
android : paddingBottom =" 64dp"
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
- android : layout_width =" 120dp "
3
+ android : layout_width =" match_parent "
4
4
android : layout_height =" 120dp"
5
5
xmlns : app =" http://schemas.android.com/apk/res-auto"
6
6
xmlns : tools =" http://schemas.android.com/tools"
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <resources >
3
+ <integer name =" span_count_images" >7</integer >
4
+ </resources >
You can’t perform that action at this time.
0 commit comments