Commit 58f4c2ab authored by wanglei's avatar wanglei

结果页面

parent cdd8e3e1
...@@ -25,35 +25,15 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) : ...@@ -25,35 +25,15 @@ class AppFunctionAdapter(val click: (name: String) -> Unit) :
RecyclerView.Adapter<AppFunctionAdapter.JJJ>() { RecyclerView.Adapter<AppFunctionAdapter.JJJ>() {
val list = arrayListOf( val list = arrayListOf(
Fun(JUNK_CLEANER, R.drawable.cleanjunk, "Clean junk regularly to free up space", "Clean Up"), Fun(JUNK_CLEANER, R.drawable.jg_cleanjunk, "Clean junk regularly to free up space", "Clean Up"),
Fun(PHOTO_COMPRESS, R.drawable.photo, "Compress photos to save space", "Compress"), Fun(RECENT_APP_USAGE, R.drawable.jg_recen, "Check and manage recently active apps", "View Now"),
Fun(LARGE_FILE_CLEANER, R.drawable.large, "Clean large files to free up storage space", "Clean Up"), Fun(LARGE_FILE_CLEANER, R.drawable.jg_large, "Clean large files to free up storage space", "Clean Up"),
Fun(BATTERY_INFO, R.drawable.battery, "View battery usage and details", "Check Now"), Fun(PHOTO_COMPRESS, R.drawable.jg_photo, "Compress photos to save space", "Compress"),
Fun( Fun(SIMILAR_PHOTOS, R.drawable.jg_similar, "Check similar photos to release more space", "Clean Up"),
APP_MANAGER, Fun(NOTIFICATION_CLEANER, R.drawable.jg_notification, "Too many annoying notifications? Block and clean", "Check Now"),
R.drawable.appmanager, Fun(NETWORK_TRAFFIC, R.drawable.jg_network, "View network traffic usage and stop traffic-consuming apps", "View Now"),
"Check apps size and uninstall some apps to release storage space", Fun(APP_MANAGER, R.drawable.jg_appmanager, "Check apps size and uninstall some apps to release storage space", "Check Now"),
"Check Now" Fun(BATTERY_INFO, R.drawable.jg_battery, "View battery usage and details", "Check Now"),
),
Fun(
SIMILAR_PHOTOS,
R.drawable.similar,
"Check similar photos to release more space",
"Clean Up"
),
Fun(
NOTIFICATION_CLEANER,
R.drawable.notification,
"Too many annoying notifications? Block and clean",
"Check Now"
),
Fun(RECENT_APP_USAGE, R.drawable.recentapp, "Check and manage recently active apps", "View Now"),
Fun(
NETWORK_TRAFFIC,
R.drawable.network,
"View network traffic usage and stop traffic-consuming apps",
"View Now"
)
) )
//修改顺序 //修改顺序
......
...@@ -127,7 +127,7 @@ object NotificationHelper { ...@@ -127,7 +127,7 @@ object NotificationHelper {
val remoteViews = RemoteViews(packageName, R.layout.notification_common_notify) val remoteViews = RemoteViews(packageName, R.layout.notification_common_notify)
when (actionId) { when (actionId) {
ID_JUNK_CLEAN_PUSH -> { ID_JUNK_CLEAN_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.cleanjunk) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_cleanjunk)
remoteViews.setTextViewText(R.id.tv_desc, "Clean up remaining junk files") remoteViews.setTextViewText(R.id.tv_desc, "Clean up remaining junk files")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
...@@ -146,43 +146,43 @@ object NotificationHelper { ...@@ -146,43 +146,43 @@ object NotificationHelper {
// } // }
ID_LARGE_FILE_PUSH -> { ID_LARGE_FILE_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.large) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_large)
remoteViews.setTextViewText(R.id.tv_desc, "Clean big files to free up storage space") remoteViews.setTextViewText(R.id.tv_desc, "Clean big files to free up storage space")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
ID_PHOTO_COMPRESS -> { ID_PHOTO_COMPRESS -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.photo) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_photo)
remoteViews.setTextViewText(R.id.tv_desc, "Compress images to release more space") remoteViews.setTextViewText(R.id.tv_desc, "Compress images to release more space")
remoteViews.setTextViewText(R.id.tv_btn, "Compress") remoteViews.setTextViewText(R.id.tv_btn, "Compress")
} }
ID_APP_MANAGER -> { ID_APP_MANAGER -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.appmanager) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_appmanager)
remoteViews.setTextViewText(R.id.tv_desc, "Check apps size and uninstall junk apps to release storage space") remoteViews.setTextViewText(R.id.tv_desc, "Check apps size and uninstall junk apps to release storage space")
remoteViews.setTextViewText(R.id.tv_btn, "Manage") remoteViews.setTextViewText(R.id.tv_btn, "Manage")
} }
ID_NETWORK_TRAFFIC -> { ID_NETWORK_TRAFFIC -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.network) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_network)
remoteViews.setTextViewText(R.id.tv_desc, "View network traffic usage and stop traffic-consuming apps.") remoteViews.setTextViewText(R.id.tv_desc, "View network traffic usage and stop traffic-consuming apps.")
remoteViews.setTextViewText(R.id.tv_btn, "View") remoteViews.setTextViewText(R.id.tv_btn, "View")
} }
ID_CLEAN_NOTIFICATION -> { ID_CLEAN_NOTIFICATION -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.notification) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_notification)
remoteViews.setTextViewText(R.id.tv_desc, "Too many annoying notifications? Block and clean") remoteViews.setTextViewText(R.id.tv_desc, "Too many annoying notifications? Block and clean")
remoteViews.setTextViewText(R.id.tv_btn, "View") remoteViews.setTextViewText(R.id.tv_btn, "View")
} }
ID_RECENT_USE_APP -> { ID_RECENT_USE_APP -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.recentapp) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_recen)
remoteViews.setTextViewText(R.id.tv_desc, "Check and manage recently active apps") remoteViews.setTextViewText(R.id.tv_desc, "Check and manage recently active apps")
remoteViews.setTextViewText(R.id.tv_btn, "Manage") remoteViews.setTextViewText(R.id.tv_btn, "Manage")
} }
ID_SIMILAR_IMAGE -> { ID_SIMILAR_IMAGE -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.similar) remoteViews.setImageViewResource(R.id.iv_icon, R.drawable.jg_similar)
remoteViews.setTextViewText(R.id.tv_desc, "Check similar photos to release more space") remoteViews.setTextViewText(R.id.tv_desc, "Check similar photos to release more space")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up") remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
} }
......
...@@ -8,10 +8,9 @@ ...@@ -8,10 +8,9 @@
<com.noober.background.view.BLConstraintLayout <com.noober.background.view.BLConstraintLayout
android:id="@+id/cl_top" android:id="@+id/cl_top"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="200dp" android:layout_height="215dp"
app:bl_gradient_angle="180" app:bl_gradient_angle="180"
app:bl_gradient_endColor="#625FFF" app:bl_solid_color="@color/theme_color"
app:bl_gradient_startColor="#8720EB"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatImageView <androidx.appcompat.widget.AppCompatImageView
...@@ -42,7 +41,7 @@ ...@@ -42,7 +41,7 @@
android:id="@+id/ic_success" android:id="@+id/ic_success"
android:layout_width="46dp" android:layout_width="46dp"
android:layout_height="46dp" android:layout_height="46dp"
android:layout_marginTop="40dp" android:layout_marginTop="25dp"
android:scaleX="6" android:scaleX="6"
android:scaleY="6" android:scaleY="6"
app:layout_constraintBottom_toTopOf="@id/tv_info" app:layout_constraintBottom_toTopOf="@id/tv_info"
...@@ -64,22 +63,34 @@ ...@@ -64,22 +63,34 @@
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ic_success" /> app:layout_constraintTop_toBottomOf="@+id/ic_success"
tools:ignore="HardcodedText" />
</com.noober.background.view.BLConstraintLayout> </com.noober.background.view.BLConstraintLayout>
<androidx.recyclerview.widget.RecyclerView <com.noober.background.view.BLFrameLayout
android:id="@+id/rv_fun"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:paddingTop="20dp" android:layout_marginTop="-15dp"
android:paddingBottom="15dp" app:bl_corners_leftRadius="15dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:bl_corners_topRadius="15dp"
app:bl_solid_color="@color/white"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cl_top" /> app:layout_constraintTop_toBottomOf="@+id/cl_top">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_fun"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="16dp"
android:paddingTop="20dp"
android:paddingBottom="15dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</com.noober.background.view.BLFrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android" <com.noober.background.view.BLLinearLayout 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"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:layout_marginHorizontal="16dp"
android:layout_marginVertical="8dp"
android:elevation="2dp"
android:orientation="vertical"
app:bl_corners_radius="5dp">
<androidx.appcompat.widget.LinearLayoutCompat <androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -18,7 +22,7 @@ ...@@ -18,7 +22,7 @@
android:layout_height="42dp" android:layout_height="42dp"
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:layout_marginEnd="9dp" android:layout_marginEnd="9dp"
android:src="@drawable/battery" /> android:src="@drawable/jg_appmanager" />
<androidx.appcompat.widget.LinearLayoutCompat <androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -33,7 +37,8 @@ ...@@ -33,7 +37,8 @@
android:text="Battery information" android:text="Battery information"
android:textColor="#ff000000" android:textColor="#ff000000"
android:textSize="15sp" android:textSize="15sp"
android:textStyle="bold" /> android:textStyle="bold"
tools:ignore="HardcodedText" />
<TextView <TextView
android:id="@+id/tv_des" android:id="@+id/tv_des"
...@@ -63,16 +68,7 @@ ...@@ -63,16 +68,7 @@
android:textSize="14sp" android:textSize="14sp"
android:textStyle="bold" android:textStyle="bold"
app:bl_corners_radius="10dp" app:bl_corners_radius="10dp"
app:bl_gradient_angle="180" app:bl_solid_color="@color/theme_color"
app:bl_gradient_endColor="#625FFF"
app:bl_gradient_startColor="#8720EB"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
</com.noober.background.view.BLLinearLayout>
<View \ No newline at end of file
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#EEEEEE" />
</androidx.appcompat.widget.LinearLayoutCompat>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout 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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/id_frame_layout" android:id="@+id/id_frame_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
app:bl_corners_radius="10dp" app:bl_corners_radius="10dp"
app:bl_solid_color="@color/white"> app:bl_solid_color="@color/white">
<!--suppress AndroidElementNotAllowed -->
<ProgressBar <ProgressBar
android:layout_width="44dp" android:layout_width="44dp"
android:layout_height="44dp" android:layout_height="44dp"
...@@ -30,7 +32,8 @@ ...@@ -30,7 +32,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Advertising in preparation..." android:text="Advertising in preparation..."
android:textColor="#000000" android:textColor="#000000"
android:textSize="13sp" /> android:textSize="13sp"
tools:ignore="HardcodedText" />
</com.noober.background.view.BLLinearLayout> </com.noober.background.view.BLLinearLayout>
</FrameLayout> </FrameLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment