Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
FileManager
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanglin
FileManager
Commits
01c820bc
Commit
01c820bc
authored
Apr 17, 2024
by
yanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面、显示逻辑等代码优化
parent
e5ce5cb4
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
838 additions
and
706 deletions
+838
-706
app-release.apk
MyDemo3/app/release/app-release.apk
+0
-0
AndroidManifest.xml
MyDemo3/app/src/main/AndroidManifest.xml
+2
-2
CleanActivity.kt
...n/java/com/xm/test/myfilemaster/activity/CleanActivity.kt
+1
-1
HomeActivity.kt
...in/java/com/xm/test/myfilemaster/activity/HomeActivity.kt
+11
-2
SimilarImagesActivity.kt
...om/xm/test/myfilemaster/activity/SimilarImagesActivity.kt
+5
-0
HomeFragment.kt
...in/java/com/xm/test/myfilemaster/fragment/HomeFragment.kt
+1
-1
PermissionUtil.kt
...main/java/com/xm/test/myfilemaster/util/PermissionUtil.kt
+9
-4
activity_battery.xml
MyDemo3/app/src/main/res/layout/activity_battery.xml
+390
-371
activity_clean.xml
MyDemo3/app/src/main/res/layout/activity_clean.xml
+10
-7
activity_duplicate_images.xml
...mo3/app/src/main/res/layout/activity_duplicate_images.xml
+7
-0
fragment_file_manager.xml
MyDemo3/app/src/main/res/layout/fragment_file_manager.xml
+328
-318
notification_low_battery_bar.xml
.../app/src/main/res/layout/notification_low_battery_bar.xml
+72
-0
scan_result_list_item_layout.xml
.../app/src/main/res/layout/scan_result_list_item_layout.xml
+2
-0
app_icon.png
MyDemo3/app/src/main/res/mipmap-hdpi/app_icon.png
+0
-0
app_icon.png
MyDemo3/app/src/main/res/mipmap-mdpi/app_icon.png
+0
-0
app_icon.png
MyDemo3/app/src/main/res/mipmap-xhdpi/app_icon.png
+0
-0
app_icon.png
MyDemo3/app/src/main/res/mipmap-xxhdpi/app_icon.png
+0
-0
app_icon.png
MyDemo3/app/src/main/res/mipmap-xxxhdpi/app_icon.png
+0
-0
No files found.
MyDemo3/app/release/app-release.apk
View file @
01c820bc
No preview for this file type
MyDemo3/app/src/main/AndroidManifest.xml
View file @
01c820bc
...
...
@@ -26,10 +26,10 @@
android:name=
".MyApplication"
android:dataExtractionRules=
"@xml/data_extraction_rules"
android:fullBackupContent=
"@xml/backup_rules"
android:icon=
"@
drawable/ic_
app_icon"
android:icon=
"@
mipmap/
app_icon"
android:label=
"@string/app_name"
android:requestLegacyExternalStorage=
"true"
android:roundIcon=
"@mipmap/
ic_launcher_round
"
android:roundIcon=
"@mipmap/
app_icon
"
android:supportsRtl=
"true"
android:theme=
"@style/Theme.MyDemo3"
tools:targetApi=
"31"
>
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/activity/CleanActivity.kt
View file @
01c820bc
...
...
@@ -40,7 +40,7 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
private
var
mProgress
:
ProgressBar
?
=
null
private
lateinit
var
mListView
:
RecyclerView
private
lateinit
var
mScaningView
:
View
private
var
mCleanSizeSuccessTv
:
String
=
""
private
var
mCleanSizeSuccessTv
:
String
=
"
Successfully cleaned up 0B of junk!
"
// private var mCleanAdapter: CleanAdapter? = null
private
var
mCleanAdapter2
:
CleanAdapter2
?
=
null
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/activity/HomeActivity.kt
View file @
01c820bc
...
...
@@ -107,8 +107,17 @@ class HomeActivity : AppCompatActivity() {
fun
getPermission
(){
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
TIRAMISU
){
isPermission
=
false
}
else
if
(
Build
.
VERSION
.
SDK_INT
>
Build
.
VERSION_CODES
.
R
&&
!
isPermission
){
isPermission
=
false
}
else
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
R
&&
!
isPermission
){
PermissionX
.
init
(
this
).
permissions
(
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
,
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
,
).
request
(
RequestCallback
{
allGranted
,
grantedList
,
deniedList
->
if
(
allGranted
){
isPermission
=
true
}
else
{
isPermission
=
false
}
})
}
else
{
PermissionX
.
init
(
this
).
permissions
(
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
,
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/activity/SimilarImagesActivity.kt
View file @
01c820bc
...
...
@@ -136,8 +136,13 @@ class SimilarImagesActivity : AppCompatActivity(), OnClickListener{
mEditBtn
.
visibility
=
View
.
VISIBLE
// if (mDataBeans.size == 0) {
if
(
mSimilarDatas
.
size
==
0
)
{
mRecycleView
.
visibility
=
View
.
GONE
findViewById
<
View
>(
R
.
id
.
not_file_found_layout
).
visibility
=
View
.
VISIBLE
mEditBtn
.
visibility
=
View
.
GONE
}
else
{
findViewById
<
View
>(
R
.
id
.
not_file_found_layout
).
visibility
=
View
.
GONE
mRecycleView
.
visibility
=
View
.
VISIBLE
mEditBtn
.
visibility
=
View
.
VISIBLE
// mImageItemAdapter?.setData(mDataBeans)
Log
.
e
(
"yanglin"
,
"onSmilarScanFinish: mSimilarDatas.size = ${mSimilarDatas.size}"
,
)
mSimilarBeanAdapter
?.
setData
(
mSimilarDatas
)
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/fragment/HomeFragment.kt
View file @
01c820bc
...
...
@@ -126,7 +126,7 @@ class HomeFragment : Fragment(), OnClickListener{
}).
show
()
customDialog
.
isShowEditText
(
false
)
customDialog
.
setsTitle
(
"not permission"
)
customDialog
.
setsHint
(
"Please grant file management permissions"
)
customDialog
.
setsHint
(
"Please grant file
All
management permissions"
)
return
false
}
return
true
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/util/PermissionUtil.kt
View file @
01c820bc
...
...
@@ -20,15 +20,18 @@ object PermissionUtil {
var
LOCATION_PERMISSION
=
false
fun
requestPermission
(
context
:
Context
?){
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
TIRAMISU
){
}
else
if
(
Build
.
VERSION
.
SDK_INT
>
Build
.
VERSION_CODES
.
R
)
{
val
intent
=
Intent
().
apply
{
action
=
Settings
.
ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION
data
=
Uri
.
fromParts
(
"package"
,
context
?.
packageName
,
null
)
flags
=
Intent
.
FLAG_ACTIVITY_NEW_TASK
}
context
?.
startActivity
(
intent
)
}
else
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
R
)
{
val
intent
=
Intent
().
apply
{
action
=
Settings
.
ACTION_APPLICATION_DETAILS_SETTINGS
data
=
Uri
.
fromParts
(
"package"
,
context
?.
packageName
,
null
)
}
context
?.
startActivity
(
intent
)
}
else
{
val
intent
=
Intent
().
apply
{
action
=
Settings
.
ACTION_APPLICATION_DETAILS_SETTINGS
...
...
@@ -43,8 +46,10 @@ object PermissionUtil {
//TODO android 14以上
HomeActivity
.
isPermission
=
Environment
.
isExternalStorageManager
()
return
HomeActivity
.
isPermission
}
else
if
(
Build
.
VERSION
.
SDK_INT
>
Build
.
VERSION_CODES
.
R
)
{
}
else
if
(
Build
.
VERSION
.
SDK_INT
>
=
Build
.
VERSION_CODES
.
R
)
{
HomeActivity
.
isPermission
=
Environment
.
isExternalStorageManager
()
&&
ActivityCompat
.
checkSelfPermission
(
activity
!!
,
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
)
==
PackageManager
.
PERMISSION_GRANTED
return
HomeActivity
.
isPermission
}
else
{
HomeActivity
.
isPermission
=
ActivityCompat
.
checkSelfPermission
(
activity
!!
,
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
)
==
PackageManager
.
PERMISSION_GRANTED
...
...
MyDemo3/app/src/main/res/layout/activity_battery.xml
View file @
01c820bc
...
...
@@ -28,419 +28,438 @@
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"12dp"
/>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
<RelativeLayout
android:id=
"@+id/battery_info_layout"
android:layout_below=
"@+id/battery_quit_btn"
<ScrollView
android:layout_below=
"@id/battery_quit_btn"
android:layout_width=
"match_parent"
android:layout_height=
"200dp"
>
<ImageView
android:id=
"@+id/battery_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginStart=
"12dp"
android:background=
"@mipmap/battery_image"
/>
<TextView
android:id=
"@+id/battery_num_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"55dp"
android:textStyle=
"bold"
android:textColor=
"@color/white"
android:text=
"99"
android:layout_marginTop=
"44dp"
android:layout_toRightOf=
"@id/battery_image"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/white"
android:textSize=
"24dp"
android:textStyle=
"bold"
android:text=
"%"
android:layout_toRightOf=
"@+id/battery_num_text"
android:layout_marginTop=
"75dp"
/>
<TextView
android:id=
"@+id/battery_use_time_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textStyle=
"bold"
android:textColor=
"@color/white"
android:layout_marginTop=
"18dp"
android:text=
"15 hours 24 min"
android:textSize=
"19dp"
android:layout_below=
"@+id/battery_num_text"
android:layout_toRightOf=
"@+id/battery_image"
/>
</RelativeLayout>
<LinearLayout
android:layout_below=
"@+id/battery_info_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:background=
"#F8F8F8"
>
<LinearLayout
android:layout_marginTop=
"16dp"
android:layout_marginBottom=
"16dp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:background=
"#FFFFFF"
android:paddingTop=
"12dp"
android:paddingBottom=
"12dp"
>
<RelativeLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<RelativeLayout
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/battery_temperature"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"33dp"
android:textColor=
"@color/black"
android:text=
"33.5"
/>
<TextView
android:layout_toRightOf=
"@id/battery_temperature"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"C"
android:layout_marginTop=
"18dp"
android:textSize=
"14dp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"23dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"47dp"
>
<ImageView
android:layout_centerVertical=
"true"
android:id=
"@+id/battery_temperature_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/temperature"
tools:ignore=
"NotSibling"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"temperature"
android:layout_marginStart=
"2dp"
android:layout_toRightOf=
"@+id/battery_temperature_icon"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<RelativeLayout
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/battery_voltage_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"33dp"
android:textColor=
"@color/black"
android:text=
"33.5"
/>
<TextView
android:layout_toRightOf=
"@id/battery_voltage_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"V"
android:layout_marginTop=
"18dp"
android:textSize=
"14dp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"23dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"47dp"
>
<ImageView
android:layout_centerVertical=
"true"
android:id=
"@+id/battery_voltage_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/voltage"
tools:ignore=
"NotSibling"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"voltage"
android:layout_marginStart=
"2dp"
android:layout_toRightOf=
"@+id/battery_voltage_icon"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<RelativeLayout
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/battery_power_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"33dp"
android:textColor=
"@color/black"
android:text=
"33.5"
/>
<TextView
android:layout_toRightOf=
"@id/battery_power_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"mAh"
android:layout_marginTop=
"18dp"
android:textSize=
"14dp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"23dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"47dp"
>
<ImageView
android:layout_centerVertical=
"true"
android:id=
"@+id/battery_power_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/battery"
tools:ignore=
"NotSibling"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Battery power"
android:layout_marginStart=
"2dp"
android:layout_toRightOf=
"@+id/battery_power_icon"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
android:scrollbars=
"none"
android:layout_above=
"@+id/battery_ad"
android:layout_height=
"wrap_content"
>
<LinearLayout
android:background=
"#FFFFFF"
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<RelativeLayout
android:id=
"@+id/battery_info_layout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
>
android:layout_height=
"200dp"
>
<ImageView
android:id=
"@+id/
hotspot
_image"
android:id=
"@+id/
battery
_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/hotspot"
/>
<LinearLayout
android:layout_centerVertical=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_toRightOf=
"@+id/hotspot_image"
>
android:layout_marginStart=
"12dp"
android:background=
"@mipmap/battery_image"
/>
<TextView
android:id=
"@+id/hotspot_title_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/turn_off_the_hotspot"
android:textStyle=
"bold"
android:textSize=
"19dp"
android:textColor=
"@color/black"
/>
<TextView
android:id=
"@+id/hotspot_hint_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#999999"
android:textSize=
"14dp"
android:text=
"+10 minutes"
/>
</LinearLayout>
<TextView
android:id=
"@+id/hotspot_switch_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"19dp"
android:layout_alignParentEnd=
"true"
android:text=
"Off"
android:layout_centerVertical=
"true"
android:layout_marginEnd=
"6dp"
android:textColor=
"@color/style_grey"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
>
<ImageView
android:id=
"@+id/bluetooth_image"
android:id=
"@+id/battery_num_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/bluetooth"
/>
<LinearLayout
android:layout_centerVertical=
"true"
android:textSize=
"55dp"
android:textStyle=
"bold"
android:textColor=
"@color/white"
android:text=
"99"
android:layout_marginTop=
"44dp"
android:layout_toRightOf=
"@id/battery_image"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_toRightOf=
"@+id/bluetooth_image"
>
android:textColor=
"@color/white"
android:textSize=
"24dp"
android:textStyle=
"bold"
android:text=
"%"
android:layout_toRightOf=
"@+id/battery_num_text"
android:layout_marginTop=
"75dp"
/>
<TextView
android:id=
"@+id/bluetooth_title_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/turn_off_bluetooth"
android:textStyle=
"bold"
android:textSize=
"19dp"
android:textColor=
"@color/black"
/>
<TextView
android:id=
"@+id/bluetooth_hint_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#999999"
android:textSize=
"14dp"
android:text=
"+10 minutes"
/>
</LinearLayout>
<TextView
android:id=
"@+id/b
luetooth_switch
_text"
android:id=
"@+id/b
attery_use_time
_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textStyle=
"bold"
android:textColor=
"@color/white"
android:layout_marginTop=
"18dp"
android:text=
"15 hours 24 min"
android:textSize=
"19dp"
android:layout_alignParentEnd=
"true"
android:text=
"Off"
android:layout_centerVertical=
"true"
android:layout_marginEnd=
"6dp"
android:textColor=
"@color/style_grey"
/>
android:layout_below=
"@+id/battery_num_text"
android:layout_toRightOf=
"@+id/battery_image"
/>
</RelativeLayout>
<
Relative
Layout
<
Linear
Layout
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_cont
ent"
android:
layout_marginStart=
"16dp
"
android:
layout_marginEnd=
"16dp
"
>
android:layout_height=
"
match_par
ent"
android:
orientation=
"vertical
"
android:
background=
"#F8F8F8
"
>
<ImageView
android:id=
"@+id/auto_bright_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/auto_brightness"
/>
<LinearLayout
android:layout_centerVertical=
"true"
android:layout_width=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginBottom=
"16dp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_toRightOf=
"@+id/auto_bright_image"
>
<TextView
android:id=
"@+id/auto_bright_title_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/turn_on_auto_brightness"
android:textStyle=
"bold"
android:textSize=
"19dp"
android:textColor=
"@color/black"
/>
<TextView
android:id=
"@+id/auto_bright_hint_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#999999"
android:textSize=
"14dp"
android:text=
"+10 minutes"
/>
android:orientation=
"horizontal"
android:background=
"#FFFFFF"
android:paddingTop=
"12dp"
android:paddingBottom=
"12dp"
>
<RelativeLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<RelativeLayout
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/battery_temperature"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"33dp"
android:textColor=
"@color/black"
android:text=
"33.5"
/>
<TextView
android:layout_toRightOf=
"@id/battery_temperature"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"C"
android:layout_marginTop=
"18dp"
android:textSize=
"14dp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"23dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"47dp"
>
<ImageView
android:layout_centerVertical=
"true"
android:id=
"@+id/battery_temperature_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/temperature"
tools:ignore=
"NotSibling"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"temperature"
android:layout_marginStart=
"2dp"
android:layout_toRightOf=
"@+id/battery_temperature_icon"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<RelativeLayout
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/battery_voltage_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"33dp"
android:textColor=
"@color/black"
android:text=
"33.5"
/>
<TextView
android:layout_toRightOf=
"@id/battery_voltage_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"V"
android:layout_marginTop=
"18dp"
android:textSize=
"14dp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"23dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"47dp"
>
<ImageView
android:layout_centerVertical=
"true"
android:id=
"@+id/battery_voltage_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/voltage"
tools:ignore=
"NotSibling"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"voltage"
android:layout_marginStart=
"2dp"
android:layout_toRightOf=
"@+id/battery_voltage_icon"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<RelativeLayout
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/battery_power_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"33dp"
android:textColor=
"@color/black"
android:text=
"33.5"
/>
<TextView
android:layout_toRightOf=
"@id/battery_power_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"mAh"
android:layout_marginTop=
"18dp"
android:textSize=
"14dp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"23dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"47dp"
>
<ImageView
android:layout_centerVertical=
"true"
android:id=
"@+id/battery_power_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/battery"
tools:ignore=
"NotSibling"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Battery power"
android:layout_marginStart=
"2dp"
android:layout_toRightOf=
"@+id/battery_power_icon"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
<TextView
android:id=
"@+id/auto_bright_switch_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"19dp"
android:layout_alignParentEnd=
"true"
android:text=
"Off"
android:layout_centerVertical=
"true"
android:layout_marginEnd=
"6dp"
android:textColor=
"@color/style_grey"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
>
<ImageView
android:id=
"@+id/gps_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/gps"
/>
<LinearLayout
android:layout_centerVertical=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"#FFFFFF"
android:orientation=
"vertical"
android:layout_toRightOf=
"@+id/gps_image"
>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/gps_title_text"
android:layout_width=
"wrap_content"
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
>
<ImageView
android:id=
"@+id/hotspot_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/hotspot"
/>
<LinearLayout
android:layout_centerVertical=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_toRightOf=
"@+id/hotspot_image"
>
<TextView
android:id=
"@+id/hotspot_title_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/turn_off_the_hotspot"
android:textStyle=
"bold"
android:textSize=
"19dp"
android:textColor=
"@color/black"
/>
<TextView
android:id=
"@+id/hotspot_hint_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#999999"
android:textSize=
"14dp"
android:text=
"+10 minutes"
/>
</LinearLayout>
<TextView
android:id=
"@+id/hotspot_switch_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"19dp"
android:layout_alignParentEnd=
"true"
android:text=
"Off"
android:layout_centerVertical=
"true"
android:layout_marginEnd=
"6dp"
android:textColor=
"@color/style_grey"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
>
<ImageView
android:id=
"@+id/bluetooth_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/bluetooth"
/>
<LinearLayout
android:layout_centerVertical=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_toRightOf=
"@+id/bluetooth_image"
>
<TextView
android:id=
"@+id/bluetooth_title_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/turn_off_bluetooth"
android:textStyle=
"bold"
android:textSize=
"19dp"
android:textColor=
"@color/black"
/>
<TextView
android:id=
"@+id/bluetooth_hint_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#999999"
android:textSize=
"14dp"
android:text=
"+10 minutes"
/>
</LinearLayout>
<TextView
android:id=
"@+id/bluetooth_switch_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"19dp"
android:layout_alignParentEnd=
"true"
android:text=
"Off"
android:layout_centerVertical=
"true"
android:layout_marginEnd=
"6dp"
android:textColor=
"@color/style_grey"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/turn_off_gps"
android:textStyle=
"bold"
android:textSize=
"19dp"
android:textColor=
"@color/black"
/>
<TextView
android:id=
"@+id/gps_hint_text"
android:layout_width=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
>
<ImageView
android:id=
"@+id/auto_bright_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/auto_brightness"
/>
<LinearLayout
android:layout_centerVertical=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_toRightOf=
"@+id/auto_bright_image"
>
<TextView
android:id=
"@+id/auto_bright_title_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/turn_on_auto_brightness"
android:textStyle=
"bold"
android:textSize=
"19dp"
android:textColor=
"@color/black"
/>
<TextView
android:id=
"@+id/auto_bright_hint_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#999999"
android:textSize=
"14dp"
android:text=
"+10 minutes"
/>
</LinearLayout>
<TextView
android:id=
"@+id/auto_bright_switch_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"19dp"
android:layout_alignParentEnd=
"true"
android:text=
"Off"
android:layout_centerVertical=
"true"
android:layout_marginEnd=
"6dp"
android:textColor=
"@color/style_grey"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColor=
"#999999"
android:textSize=
"14dp"
android:text=
"+10 minutes"
/>
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
>
<ImageView
android:id=
"@+id/gps_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/gps"
/>
<LinearLayout
android:layout_centerVertical=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_toRightOf=
"@+id/gps_image"
>
<TextView
android:id=
"@+id/gps_title_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/turn_off_gps"
android:textStyle=
"bold"
android:textSize=
"19dp"
android:textColor=
"@color/black"
/>
<TextView
android:id=
"@+id/gps_hint_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#999999"
android:textSize=
"14dp"
android:text=
"+10 minutes"
/>
</LinearLayout>
<TextView
android:id=
"@+id/gps_switch_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"19dp"
android:layout_alignParentEnd=
"true"
android:text=
"Off"
android:layout_centerVertical=
"true"
android:layout_marginEnd=
"6dp"
android:textColor=
"@color/style_grey"
/>
</RelativeLayout>
</LinearLayout>
<TextView
android:id=
"@+id/gps_switch_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"19dp"
android:layout_alignParentEnd=
"true"
android:text=
"Off"
android:layout_centerVertical=
"true"
android:layout_marginEnd=
"6dp"
android:textColor=
"@color/style_grey"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
<LinearLayout
android:id=
"@+id/battery_ad"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
...
...
MyDemo3/app/src/main/res/layout/activity_clean.xml
View file @
01c820bc
...
...
@@ -48,13 +48,7 @@
android:layout_height=
"100dp"
android:layout_above=
"@+id/clean_hint_text"
android:layout_below=
"@id/clean_quit_btn"
>
<com.airbnb.lottie.LottieAnimationView
android:id=
"@+id/battery_animation_btn"
android:layout_width=
"match_parent"
android:layout_height=
"100dp"
app:lottie_autoPlay=
"true"
app:lottie_loop=
"true"
app:lottie_rawRes=
"@raw/qinglisaomiao"
/>
<!--1111-->
</RelativeLayout>
...
...
@@ -96,6 +90,15 @@
</LinearLayout>
<com.airbnb.lottie.LottieAnimationView
android:id=
"@+id/battery_animation_btn"
android:layout_width=
"match_parent"
android:layout_height=
"160dp"
android:layout_marginTop=
"20dp"
app:lottie_autoPlay=
"true"
app:lottie_loop=
"true"
app:lottie_rawRes=
"@raw/qinglisaomiao"
/>
<LinearLayout
android:id=
"@+id/ad_layout"
android:layout_width=
"match_parent"
...
...
MyDemo3/app/src/main/res/layout/activity_duplicate_images.xml
View file @
01c820bc
...
...
@@ -35,6 +35,13 @@
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
android:layout_height=
"match_parent"
/>
<RelativeLayout
android:id=
"@+id/not_file_found_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<include
layout=
"@layout/not_found_layout"
/>
</RelativeLayout>
<include
...
...
MyDemo3/app/src/main/res/layout/fragment_file_manager.xml
View file @
01c820bc
...
...
@@ -4,352 +4,362 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".fragment.FileManagerFragment"
>
<LinearLayout
<ScrollView
android:layout_above=
"@+id/file_manager_ad"
android:scrollbars=
"none"
android:layout_width=
"match_parent"
android:orientation=
"vertical"
android:layout_height=
"match_parent"
>
<RelativeLayout
android:id=
"@+id/recent_file_view"
android:layout_marginTop=
"12dp"
android:layout_marginStart=
"12dp"
android:layout_marginEnd=
"12dp"
android:background=
"@drawable/bg_recent_layer"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginStart=
"16dp"
android:textSize=
"16dp"
android:text=
"Recent images"
android:textColor=
"#333333"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginStart=
"16dp"
android:src=
"@mipmap/join_to_image"
android:layout_alignParentEnd=
"true"
/>
<GridView
android:id=
"@+id/recent_file_grid"
android:layout_width=
"match_parent"
android:layout_height=
"80dp"
android:layout_marginTop=
"44dp"
android:layout_marginBottom=
"16dp"
android:layout_marginStart=
"16dp"
android:numColumns=
"4"
android:horizontalSpacing=
"2dp"
android:columnWidth=
"80dp"
android:paddingLeft=
"1dp"
android:scrollbars=
"none"
android:layout_marginEnd=
"16dp"
/>
</RelativeLayout>
<TextView
android:layout_width=
"92dp"
android:layout_height=
"wrap_content"
android:text=
"@string/category"
android:layout_marginStart=
"16dp"
android:textColor=
"#8B8B8B"
android:textSize=
"18dp"
/>
<LinearLayout
android:layout_marginTop=
"8dp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/file_type_item_layer_list"
android:orientation=
"vertical"
>
<LinearLayout
android:orientation=
"vertical"
android:layout_height=
"match_parent"
>
<RelativeLayout
android:id=
"@+id/recent_file_view"
android:layout_marginTop=
"12dp"
android:layout_marginStart=
"12dp"
android:layout_marginEnd=
"12dp"
android:background=
"@drawable/bg_recent_layer"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<RelativeLayout
android:id=
"@+id/btn_image"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
tools:ignore=
"NestedWeights"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/image"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/image"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/btn_video"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/video"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/video"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/btn_audio"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/audio"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/audio"
/>
</RelativeLayout>
android:layout_height=
"wrap_content"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginStart=
"16dp"
android:textSize=
"16dp"
android:text=
"Recent images"
android:textColor=
"#333333"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginStart=
"16dp"
android:src=
"@mipmap/join_to_image"
android:layout_alignParentEnd=
"true"
/>
<GridView
android:id=
"@+id/recent_file_grid"
android:layout_width=
"match_parent"
android:layout_height=
"80dp"
android:layout_marginTop=
"44dp"
android:layout_marginBottom=
"16dp"
android:layout_marginStart=
"16dp"
android:numColumns=
"4"
android:horizontalSpacing=
"2dp"
android:columnWidth=
"80dp"
android:paddingLeft=
"1dp"
android:scrollbars=
"none"
android:layout_marginEnd=
"16dp"
/>
</RelativeLayout>
<TextView
android:layout_width=
"92dp"
android:layout_height=
"wrap_content"
android:text=
"@string/category"
android:layout_marginStart=
"16dp"
android:textColor=
"#8B8B8B"
android:textSize=
"18dp"
/>
</LinearLayout>
<LinearLayout
android:layout_marginTop=
"8dp"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<RelativeLayout
android:id=
"@+id/btn_zip"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:id=
"@+id/image_zip"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/zip"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/zip"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/btn_apk"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/apk"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/apk"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/btn_log_file"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/log_file"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/log_file"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:textColor=
"#8B8B8B"
android:text=
"MY FILE"
android:textSize=
"18dp"
/>
<LinearLayout
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
android:layout_height=
"wrap_content"
android:background=
"@drawable/file_type_item_layer_list"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/btn_all"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_all_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_all"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#BC49FE"
android:text=
"All"
/>
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<RelativeLayout
android:id=
"@+id/btn_image"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
tools:ignore=
"NestedWeights"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/image"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/image"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/btn_video"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/video"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/video"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/btn_audio"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/audio"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/audio"
/>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_word"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_wordl_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_word"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#4982FE"
android:text=
"Word"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_excel"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_excell_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_excel"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#39CAB2"
android:text=
"Excel"
/>
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<RelativeLayout
android:id=
"@+id/btn_zip"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:id=
"@+id/image_zip"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/zip"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/zip"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/btn_apk"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/apk"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/apk"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/btn_log_file"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/log_file"
/>
<TextView
android:layout_marginTop=
"52dp"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/log_file"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:textColor=
"#8B8B8B"
android:text=
"MY FILE"
android:textSize=
"18dp"
/>
</LinearLayout>
<LinearLayout
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/btn_ppt"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_ppt_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_ppt"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#FF7861"
android:text=
"PPT"
/>
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_pdf"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_pdf_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_pdf"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#DC2E1B"
android:text=
"PDF"
/>
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/btn_all"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_all_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_all"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#BC49FE"
android:text=
"All"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_word"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_wordl_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_word"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#4982FE"
android:text=
"Word"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_excel"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_excell_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_excel"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#39CAB2"
android:text=
"Excel"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_txt"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_txt_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_log_file"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#FCCC5A"
android:text=
"TXT"
/>
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/btn_ppt"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_ppt_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_ppt"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#FF7861"
android:text=
"PPT"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_pdf"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_pdf_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_pdf"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#DC2E1B"
android:text=
"PDF"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/btn_txt"
android:layout_width=
"0dp"
android:layout_height=
"82dp"
android:orientation=
"vertical"
android:gravity=
"center"
android:background=
"@drawable/bg_txt_layer"
android:layout_weight=
"1"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_log_file"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#FCCC5A"
android:text=
"TXT"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<RelativeLayout
</ScrollView>
<FrameLayout
android:id=
"@+id/file_manager_ad"
android:layout_alignParentBottom=
"true"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
...
...
@@ -357,9 +367,9 @@
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_
centerHorizontal=
"true
"
android:layout_
gravity=
"center
"
android:src=
"@mipmap/ad"
/>
</
Relativ
eLayout>
</
Fram
eLayout>
</RelativeLayout>
\ No newline at end of file
MyDemo3/app/src/main/res/layout/notification_low_battery_bar.xml
0 → 100644
View file @
01c820bc
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:background=
"@drawable/bg_ad_shape"
android:layout_height=
"58dp"
>
<ImageView
android:layout_centerVertical=
"true"
android:id=
"@+id/notification_icon"
android:src=
"@mipmap/notification_icon"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
android:layout_marginEnd=
"50dp"
android:layout_toRightOf=
"@+id/notification_icon"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Battery"
android:textColor=
"@color/black"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Low"
android:textColor=
"@color/style_background"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Power"
android:textColor=
"@color/black"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"20%"
android:textColor=
"@color/style_background"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/battery_btn"
android:layout_width=
"49dp"
android:layout_height=
"24dp"
android:text=
"View"
android:layout_centerVertical=
"true"
android:layout_alignParentEnd=
"true"
android:layout_marginEnd=
"12dp"
android:gravity=
"center"
android:textColor=
"@color/white"
android:background=
"@drawable/bg_btn_sure_shape"
/>
</RelativeLayout>
\ No newline at end of file
MyDemo3/app/src/main/res/layout/scan_result_list_item_layout.xml
View file @
01c820bc
...
...
@@ -6,12 +6,14 @@
<ImageView
android:id=
"@+id/scan_app_icon"
android:layout_width=
"60dp"
android:padding=
"5dp"
android:layout_height=
"60dp"
android:src=
"@mipmap/scan_app_icon"
/>
<LinearLayout
android:layout_toRightOf=
"@+id/scan_app_icon"
android:orientation=
"vertical"
android:layout_centerVertical=
"true"
android:layout_marginStart=
"12dp"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<TextView
...
...
MyDemo3/app/src/main/res/mipmap-hdpi/app_icon.png
View replaced file @
e5ce5cb4
View file @
01c820bc
21.7 KB
|
W:
|
H:
22.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
MyDemo3/app/src/main/res/mipmap-mdpi/app_icon.png
0 → 100644
View file @
01c820bc
11.2 KB
MyDemo3/app/src/main/res/mipmap-xhdpi/app_icon.png
0 → 100644
View file @
01c820bc
38.6 KB
MyDemo3/app/src/main/res/mipmap-xxhdpi/app_icon.png
0 → 100644
View file @
01c820bc
76.3 KB
MyDemo3/app/src/main/res/mipmap-xxxhdpi/app_icon.png
0 → 100644
View file @
01c820bc
157 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment