假如管控

This commit is contained in:
2019-11-30 18:38:32 +08:00
parent fe96be1ac6
commit 8f194481af
78 changed files with 5707 additions and 692 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -0,0 +1,179 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginLeft="20dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/search_iv_back"
android:layout_width="20dp"
android:layout_height="20dp"
android:onClick="finish"
android:layout_gravity="center_vertical"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<TextView
android:id="@+id/detail_tv_title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:text="应用"
android:textColor="#8c8b8b"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="5dp">
<ImageView
android:id="@+id/detail_iv_icon"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="10dp"
android:background="@mipmap/ic_launcher" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/detail_tv_name"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.5"
android:gravity="center_vertical"
android:singleLine="true"
android:text="今日头条"
android:textColor="@color/black"
android:textSize="15sp" />
<RatingBar
android:id="@+id/detail_rating_bar"
style="@style/Base.Widget.AppCompat.RatingBar.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:rating="3" />
<TextView
android:id="@+id/detail_tv_company"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:singleLine="true"
android:text="北京字节跳动网络技术有限公司" />
</LinearLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/detail_rv_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:text="应用详情">
</TextView>
<TextView
android:id="@+id/detali_tv_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginTop="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15">
</TextView>
<TextView
android:id="@+id/detail_tv_update_time"
android:layout_marginTop="@dimen/dp_15"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="更新日期2017年10月23日" />
<TextView
android:id="@+id/detail_tv_version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="版本号1.31.4.10" />
</LinearLayout>
</ScrollView>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="70dp"
android:orientation="horizontal">
<androidx.cardview.widget.CardView
android:id="@+id/detail_btn_download"
android:layout_width="150dp"
android:layout_height="40dp"
android:layout_centerInParent="true"
app:cardCornerRadius="20dp">
<TextView
android:id="@+id/detail_tv_download"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:gravity="center"
android:text="安装"
android:textColor="@color/black"
android:textSize="15sp" />
</androidx.cardview.widget.CardView>
</RelativeLayout>
</LinearLayout>

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginLeft="20dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/search_iv_back"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:adjustViewBounds="true"
android:onClick="finish"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:text="下载管理"
android:textColor="#8c8b8b"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/dp_20"
android:layout_marginRight="@dimen/dp_20"
tools:listitem="@layout/item_download_manager">
</androidx.recyclerview.widget.RecyclerView>
</LinearLayout>

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginLeft="20dp"
android:orientation="horizontal">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:adjustViewBounds="true"
android:onClick="finish"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<TextView
android:id="@+id/detail_tv_title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:textColor="#8c8b8b"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/detail_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/detail_rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@layout/item_app" />
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.LocalManagerActivity">
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:layout_marginLeft="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/search_iv_back"
android:layout_width="20dp"
android:layout_height="20dp"
android:onClick="finish"
android:layout_gravity="center_vertical"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/ic_back" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:singleLine="true"
android:text="本地管理"
android:textColor="#8c8b8b"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/local_app_refresh_layout"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout2">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/local_app_rv_app"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@layout/item_local_app"/>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -42,16 +42,10 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="53个应用可以升级"
android:text="0个应用可以升级"
android:textColor="@color/black"
android:textSize="16sp" />
<Button
android:id="@+id/manage_btn_update"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="全部升级" />
</LinearLayout>
<include layout="@layout/include_line_horizontal" />
@@ -60,8 +54,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textSize="10sp"
android:text="可升级应用" />
android:text="可升级应用"
android:textSize="10sp" />
<include layout="@layout/include_line_horizontal" />

View File

@@ -31,17 +31,6 @@
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/app_tv_company"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:singleLine="true"
android:text="北京字节跳动网络技术有限公司"
android:textSize="12sp" />
<TextView
android:id="@+id/app_tv_name"
android:layout_width="match_parent"
@@ -52,6 +41,17 @@
android:text="今日头条"
android:textColor="@color/black"
android:textSize="16sp" />
<TextView
android:id="@+id/app_tv_company"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:singleLine="true"
android:text="北京字节跳动网络技术有限公司"
android:textSize="12sp" />
<RatingBar
android:id="@+id/app_rating_bar"

View File

@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_60">
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/icon"
android:layout_width="@dimen/dp_40"
android:layout_height="@dimen/dp_40"
android:layout_margin="@dimen/dp_5"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@mipmap/ic_app">
</ImageView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="2"
android:orientation="vertical">
<TextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="APP"
android:textStyle="bold" />
<com.appstore.uiui.view.NumberProgressBar
android:id="@+id/pbProgress"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_5"
android:layout_weight="1"
app:progress_reached_bar_height="1.5dp"
app:progress_reached_color="#3498DB"
app:progress_text_color="#3498DB"
app:progress_text_size="10sp"
app:progress_unreached_bar_height="0.75dp"
app:progress_unreached_color="#CCCCCC">
</com.appstore.uiui.view.NumberProgressBar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal">
<TextView
android:id="@+id/state"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="下载中" />
<TextView
android:id="@+id/downloadSize"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right"
android:text="--M/--M"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="4"
android:orientation="horizontal">
<ImageView
android:id="@+id/remove"
android:layout_width="@dimen/dp_15"
android:layout_height="@dimen/dp_15"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/bt_delete">
</ImageView>
<Button
android:id="@+id/start"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="暂停"
android:textColor="#ffffff" />
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/imageView"
android:layout_width="@dimen/dp_340"
android:layout_height="1dp"
android:src="#9B9B9B"
app:layout_constraintBottom_toBottomOf="@+id/linearLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
</ImageView>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -3,12 +3,13 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="180dp"
android:layout_height="350dp"
android:layout_marginLeft="20dp"
android:layout_margin="10dp"
app:cardCornerRadius="10dp">
<ImageView
android:id="@+id/item_iv"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:adjustViewBounds="true" />
</androidx.cardview.widget.CardView>

View File

@@ -28,13 +28,6 @@
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/local_app_tv_company"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="深圳腾讯"
android:textSize="12sp" />
<TextView
android:id="@+id/local_app_tv_name"
@@ -48,6 +41,14 @@
android:textColor="@color/black"
android:textSize="17sp" />
<TextView
android:id="@+id/local_app_tv_company"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:text=""
android:textSize="12sp" />
<TextView
android:id="@+id/local_app_version"
android:layout_width="wrap_content"
@@ -73,7 +74,7 @@
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:background="@drawable/btn_selector"
android:text="下载"
android:text="删除"
android:visibility="visible" />
</androidx.cardview.widget.CardView>

View File

@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016 jeasonlzy(廖子尧)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<declare-styleable name="NumberProgressBar">
<attr name="progress_current" format="integer"/>
<attr name="progress_max" format="integer"/>
<attr name="progress_unreached_color" format="color"/>
<attr name="progress_reached_color" format="color"/>
<attr name="progress_reached_bar_height" format="dimension"/>
<attr name="progress_unreached_bar_height" format="dimension"/>
<attr name="progress_text_size" format="dimension"/>
<attr name="progress_text_color" format="color"/>
<attr name="progress_text_offset" format="dimension"/>
<attr name="progress_text_visibility" format="enum">
<enum name="visible" value="0"/>
<enum name="invisible" value="1"/>
</attr>
</declare-styleable>
<declare-styleable name="ProgressPieView">
<attr name="android:text"/>
<attr name="android:textSize"/>
<attr name="android:textColor"/>
<attr name="ppvProgress" format="integer"/>
<attr name="ppvMax" format="integer"/>
<attr name="ppvStartAngle" format="integer"/>
<attr name="ppvInverted" format="boolean"/>
<attr name="ppvCounterclockwise" format="boolean"/>
<attr name="ppvStrokeWidth" format="dimension"/>
<attr name="ppvBackgroundColor" format="reference|color"/>
<attr name="ppvProgressColor" format="reference|color"/>
<attr name="ppvStrokeColor" format="reference|color"/>
<attr name="ppvShowStroke" format="boolean"/>
<attr name="ppvShowText" format="boolean"/>
<attr name="ppvTypeface" format="string"/>
<attr name="ppvImage" format="reference"/>
<attr name="ppvProgressFillType" format="enum">
<enum name="radial" value="0"/>
<enum name="center" value="1"/>
</attr>
</declare-styleable>
<declare-styleable name="SimpleViewBehavior">
<attr name="svb_dependOn" format="reference"/>
<attr name="svb_dependType">
<enum name="height" value="0"/>
<enum name="width" value="1"/>
<enum name="x" value="2"/>
<enum name="y" value="3"/>
</attr>
<attr name="svb_dependTargetX" format="reference|dimension"/>
<attr name="svb_dependTargetY" format="reference|dimension"/>
<attr name="svb_dependTargetWidth" format="reference|dimension"/>
<attr name="svb_dependTargetHeight" format="reference|dimension"/>
<attr name="svb_targetX" format="reference|dimension"/>
<attr name="svb_targetY" format="reference|dimension"/>
<attr name="svb_targetWidth" format="reference|dimension"/>
<attr name="svb_targetHeight" format="reference|dimension"/>
<attr name="svb_targetBackgroundColor" format="reference|color"/>
<attr name="svb_targetAlpha" format="float"/>
<attr name="svb_targetRotateX" format="float"/>
<attr name="svb_targetRotateY" format="float"/>
<attr name="svb_animation" format="reference"/>
</declare-styleable>
</resources>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-path
name="files_root"
path="Android/data/com.herenit.webdoc/" />
<external-path
name="external_storage_root"
path="." />
</paths>