Commit 52c088b3 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 4a940003
package com.mints.wisdomclean.ui.adapter
import android.content.Context
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.mints.wisdomclean.R
import com.mints.wisdomclean.ui.adapter.listener.OnItemClickListener
class IncreaseAdapter(val context: Context, val taskData: MutableList<String>) :
RecyclerView.Adapter<RecyclerView.ViewHolder>() {
companion object {
const val HOLDER_TYPE_SIMPLE = 0
const val HOLDER_TYPE_MORE = 1
}
private var mOnItemClickListener: OnItemClickListener? = null
fun setOnItemClickListener(onItemClickListener: OnItemClickListener?) {
mOnItemClickListener = onItemClickListener
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
if (viewType == HOLDER_TYPE_MORE) {
val emptyView =
LayoutInflater.from(parent.context)
.inflate(R.layout.item_recyclerview_more, parent, false)
return MoreHolder(emptyView)
}
val inflater: LayoutInflater = LayoutInflater.from(context)
return IncreaseHolder(inflater.inflate(R.layout.item_recyclerview_increase, parent, false))
}
override fun getItemCount(): Int {
return if (taskData.size == 2) {
3
} else {
taskData.size
}
}
override fun getItemViewType(position: Int): Int {
if (taskData.size == 2 && position == 2) {
return HOLDER_TYPE_MORE
}
return HOLDER_TYPE_SIMPLE
}
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
if (holder is MoreHolder) {
holder.itemView.setOnClickListener {
mOnItemClickListener?.onItemClick(it, position)
}
return
}
val increaseHolder = holder as IncreaseHolder
increaseHolder.tv1.text = taskData[position]
if (TextUtils.isEmpty(taskData[position])) {
increaseHolder.iv1.visibility = View.GONE
} else {
increaseHolder.iv1.visibility = View.VISIBLE
}
}
private inner class IncreaseHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
val tv1: TextView = itemView.findViewById(R.id.tv1)
val iv1: ImageView = itemView.findViewById(R.id.iv1)
}
private inner class MoreHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {}
}
\ No newline at end of file
package com.mints.wisdomclean.ui.widgets
import android.animation.AnimatorSet
import android.animation.ValueAnimator
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.animation.Animation
import android.view.animation.LinearInterpolator
import android.view.animation.RotateAnimation
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import com.mints.wisdomclean.R
import com.mints.wisdomclean.utils.VersionUtils
/**
* 清理界面-加载中
*/
class CleanLoadingView : LinearLayout {
// 时间单位 1000=1秒
private val TIME_INTERVAL: Long = 1000
// 默认展示时间1.5秒
private val DEFAULT_LOAD_TIME: Long = 1500
private var tvLoadingProgress: TextView? = null
private var ivLoading: ImageView? = null
private var set: AnimatorSet? = null
private var animator: ValueAnimator? = null
private var circleAnimator: Animation? = null
constructor(context: Context) : super(context) {
init()
}
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {
init()
}
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(
context,
attrs,
defStyleAttr
) {
init()
}
private fun init() {
val view =
LayoutInflater.from(context).inflate(R.layout.view_clean_loading, this)
tvLoadingProgress = view.findViewById(R.id.tv_loading_progress)
ivLoading = view.findViewById(R.id.iv_loading)
}
/**
* 显示加载框
*
* 默认1.5秒
*/
fun showLoading() {
start(DEFAULT_LOAD_TIME)
}
/**
* 显示加载框
*
* 指定时间 time - 1s
*/
fun showLoading(time: Long) {
start(time * TIME_INTERVAL)
}
/**
* 隐藏
*/
fun hideLoading() {
if (animator != null) {
animator!!.cancel()
animator!!.removeAllListeners()
animator = null
}
if (set != null) {
set!!.cancel()
set = null
}
if (circleAnimator != null) {
circleAnimator!!.cancel()
circleAnimator = null
}
this.visibility = View.GONE
}
fun delayLoading() {
set?.let {
if (VersionUtils.isAndroidO()) {
it.currentPlayTime = 4000
} else {
it.cancel()
it.duration = 1000
it.start()
}
}
}
@SuppressLint("ObjectAnimatorBinding")
private fun start(time: Long) {
if (circleAnimator == null) {
circleAnimator = RotateAnimation(
0f,
359f,
Animation.RELATIVE_TO_SELF,
0.5f,
Animation.RELATIVE_TO_SELF,
0.5f
)
}
circleAnimator?.let {
it.interpolator = LinearInterpolator()
it.duration = 500
it.repeatCount = -1
it.fillAfter = false
ivLoading?.startAnimation(it)
}
// 根据传入的time计算1-100的时间进度
if (animator == null) {
animator = ValueAnimator.ofInt(0, 101)
}
animator?.addUpdateListener { valueAnimator ->
tvLoadingProgress?.text = valueAnimator.animatedValue.toString() + "%"
// 101目的->防止隐藏时显示进度为99
if (valueAnimator.animatedValue == 101) {
hideLoading()
}
}
if (set == null) {
set = AnimatorSet()
}
set?.let {
it.playTogether(animator)
it.duration = time
it.start()
}
}
}
\ No newline at end of file
/**
* The MIT License (MIT)
* <p>
* Copyright (c) 2014 singwhatiwanna
* https://github.com/singwhatiwanna
* http://blog.csdn.net/singwhatiwanna
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* <p>
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* <p>
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.mints.wisdomclean.ui.widgets;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.mints.wisdomclean.R;
import java.util.NoSuchElementException;
public class StickyLayout extends LinearLayout {
private final String TAG = getClass().getSimpleName();
// private static final boolean DEBUG = BuildConfig.DEBUG;
public interface OnGiveUpTouchEventListener {
public boolean giveUpTouchEvent(MotionEvent event);
}
private View mHeader;
private View mContent;
private OnGiveUpTouchEventListener mGiveUpTouchEventListener;
private TextView clean_size_txt;
private TextView mem_unit;
private TextView apps_description;
// header的高度 单位:px
private int mOriginalHeaderHeight;
private int mHeaderHeight;
private int mStatus = STATUS_EXPANDED;
public static final int STATUS_EXPANDED = 1;
public static final int STATUS_COLLAPSED = 2;
private int mTouchSlop;
private int minHeader;
// 分别记录上次滑动的坐标
private int mLastX = 0;
private int mLastY = 0;
// 分别记录上次滑动的坐标(onInterceptTouchEvent)
private int mLastXIntercept = 0;
private int mLastYIntercept = 0;
// 用来控制滑动角度,仅当角度a满足如下条件才进行滑动:tan a = deltaX / deltaY > 2
private static final int TAN = 2;
private boolean mIsSticky = true;
private boolean mInitDataSucceed = false;
private boolean mDisallowInterceptTouchEventOnHeader = true;
public StickyLayout(Context context) {
super(context);
}
public StickyLayout(Context context, AttributeSet attrs) {
super(context, attrs);
}
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public StickyLayout(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public void onWindowFocusChanged(boolean hasWindowFocus) {
super.onWindowFocusChanged(hasWindowFocus);
if (hasWindowFocus && (mHeader == null || mContent == null)) {
initData();
}
}
private void initData() {
clean_size_txt = (TextView) findViewById(R.id.textView_junk_size);
mem_unit = (TextView) findViewById(R.id.textView_junk_unit);
apps_description = (TextView) findViewById(R.id.textView_total);
int headerId = getResources().getIdentifier("sticky_header", "id", getContext().getPackageName());
int contentId = getResources().getIdentifier("sticky_content", "id", getContext().getPackageName());
if (headerId != 0 && contentId != 0) {
mHeader = findViewById(headerId);
mContent = findViewById(contentId);
mOriginalHeaderHeight = mHeader.getMeasuredHeight();
mHeaderHeight = mOriginalHeaderHeight;
minHeader = mOriginalHeaderHeight / 2;
mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop();
if (mHeaderHeight > 0) {
mInitDataSucceed = true;
}
// if (DEBUG) {
// Log.e(TAG, "initData, mTouchSlop = " + mTouchSlop + "mHeaderHeight = " + mHeaderHeight);
// }
} else {
throw new NoSuchElementException("Did your view with id \"sticky_header\" or \"sticky_content\" exists?");
}
}
public void setOnGiveUpTouchEventListener(OnGiveUpTouchEventListener l) {
mGiveUpTouchEventListener = l;
}
@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
int intercepted = 0;
int x = (int) event.getX();
int y = (int) event.getY();
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
mLastXIntercept = x;
mLastYIntercept = y;
mLastX = x;
mLastY = y;
intercepted = 0;
break;
}
case MotionEvent.ACTION_MOVE: {
int deltaX = x - mLastXIntercept;
int deltaY = y - mLastYIntercept;
if (mDisallowInterceptTouchEventOnHeader && y <= getHeaderHeight()) {
intercepted = 0;
} else if (Math.abs(deltaY) <= Math.abs(deltaX)) {
intercepted = 0;
} else if (mStatus == STATUS_EXPANDED && deltaY <= -mTouchSlop) {
intercepted = 1;
} //else if(mHeaderHeight == minHeader || mHeaderHeight == mOriginalHeaderHeight){intercepted = 0;}
else if (mGiveUpTouchEventListener != null) {
if (mGiveUpTouchEventListener.giveUpTouchEvent(event) && deltaY >= mTouchSlop) {
intercepted = 1;
}
}
// Log.e(TAG, "onInterceptTouchEvent(),ACTION_MOVE deltaY:"+deltaY+",y:"+y+ ",headerheight:"+getHeaderHeight()+",intercepted=" + intercepted);
break;
}
case MotionEvent.ACTION_UP: {
intercepted = 0;
mLastXIntercept = mLastYIntercept = 0;
break;
}
default:
break;
}
// if (DEBUG) {
// Log.e(TAG, "onInterceptTouchEvent, intercepted=" + intercepted+", return:"+(intercepted != 0 && mIsSticky));
// }
return intercepted != 0 && mIsSticky;
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if (!mIsSticky) {
return true;
}
int x = (int) event.getX();
int y = (int) event.getY();
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
break;
}
case MotionEvent.ACTION_MOVE: {
int deltaX = x - mLastX;
int deltaY = y - mLastY;
// if (DEBUG) {
// Log.e(TAG, "onTouchEvent,ACTION_MOVE, mHeaderHeight=" + mHeaderHeight + " deltaY=" + deltaY + " mlastY=" + mLastY);
// }
// mHeaderHeight += deltaY;
setHeaderHeight(mHeaderHeight + deltaY);
if (mHeaderHeight <= minHeader || mHeaderHeight >= mOriginalHeaderHeight) {
Log.e(TAG, "onTouchEvent ACTION_MOVE,return false;");
return false;
}
break;
}
case MotionEvent.ACTION_UP: {
// 这里做了下判断,当松开手的时候,会自动向两边滑动,具体向哪边滑,要看当前所处的位置
Log.e(TAG, "onTouchEvent,ACTION_UP");
int destHeight = 0;
if (mHeaderHeight <= mOriginalHeaderHeight * 2 / 3) {
destHeight = minHeader;
mStatus = STATUS_COLLAPSED;
} else {
destHeight = mOriginalHeaderHeight;
mStatus = STATUS_EXPANDED;
}
// 慢慢滑向终点
this.smoothSetHeaderHeight(mHeaderHeight, destHeight, 500);
break;
}
default:
break;
}
mLastX = x;
mLastY = y;
return true;
}
public void smoothSetHeaderHeight(final int from, final int to, long duration) {
smoothSetHeaderHeight(from, to, duration, false);
}
public void smoothSetHeaderHeight(final int from, final int to, long duration, final boolean modifyOriginalHeaderHeight) {
final int frameCount = (int) (duration / 1000f * 30) + 1;
final float partation = (to - from) / (float) frameCount;
new Thread("Thread#smoothSetHeaderHeight") {
@Override
public void run() {
for (int i = 0; i < frameCount; i++) {
final int height;
if (i == frameCount - 1) {
height = to;
} else {
height = (int) (from + partation * i);
}
post(new Runnable() {
public void run() {
setHeaderHeight(height);
}
});
try {
sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
if (modifyOriginalHeaderHeight) {
setOriginalHeaderHeight(to);
}
}
;
}.start();
}
public void setOriginalHeaderHeight(int originalHeaderHeight) {
mOriginalHeaderHeight = originalHeaderHeight;
}
public void setHeaderHeight(int height, boolean modifyOriginalHeaderHeight) {
if (modifyOriginalHeaderHeight) {
setOriginalHeaderHeight(height);
}
setHeaderHeight(height);
}
public void setHeaderHeight(int height) {
if (!mInitDataSucceed) {
initData();
}
// if (DEBUG) {
// Log.e(TAG, "setHeaderHeight height=" + height);
// }
if (height <= mOriginalHeaderHeight * 2 / 3) {
clean_size_txt.setTextSize(TypedValue.COMPLEX_UNIT_PX, getContext().getResources().getDimensionPixelSize(R.dimen.junk_size_text_total_size));
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) apps_description.getLayoutParams();
params.addRule(RelativeLayout.RIGHT_OF, R.id.textView_junk_unit);
params.addRule(RelativeLayout.ALIGN_BOTTOM, R.id.textView_junk_unit);
apps_description.setLayoutParams(params);
} else {
clean_size_txt.setTextSize(TypedValue.COMPLEX_UNIT_PX, getContext().getResources().getDimensionPixelSize(R.dimen.junk_size_text_size));
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) apps_description.getLayoutParams();
params.addRule(RelativeLayout.RIGHT_OF, R.id.textView_junk_size);
params.addRule(RelativeLayout.ALIGN_BOTTOM, R.id.textView_junk_size);
apps_description.setLayoutParams(params);
}
if (height <= minHeader) {
height = minHeader;
} else if (height > mOriginalHeaderHeight) {
height = mOriginalHeaderHeight;
}
if (height == minHeader) {
mStatus = STATUS_COLLAPSED;
} else {
mStatus = STATUS_EXPANDED;
}
if (mHeader != null && mHeader.getLayoutParams() != null) {
mHeader.getLayoutParams().height = height;
mHeader.requestLayout();
mHeaderHeight = height;
} else {
// if (DEBUG) {
// Log.e(TAG, "setHeaderHeight null LayoutParams when setHeaderHeight");
// }
}
}
public int getHeaderHeight() {
return mHeaderHeight;
}
public void setSticky(boolean isSticky) {
mIsSticky = isSticky;
}
public void requestDisallowInterceptTouchEventOnHeader(boolean disallowIntercept) {
mDisallowInterceptTouchEventOnHeader = disallowIntercept;
}
}
\ No newline at end of file
<?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">
<include layout="@layout/header_layout" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview_album"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@color/white"
android:orientation="vertical">
<View style="@style/line_3" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_clean"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="10dp"
android:background="@drawable/btn_clean_unselected"
android:text="删除(0KB)"
android:textColor="@color/white"
android:textSize="18sp" />
</LinearLayout>
<com.mints.wisdomclean.ui.widgets.CleanLoadingView
android:id="@+id/clv_loading"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_0097F7"
android:orientation="vertical">
<!-- <include layout="@layout/header_layout" />-->
<ImageView
android:id="@+id/ivBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:padding="16dp"
android:src="@mipmap/ic_arrow_back" />
<TextView
android:id="@+id/tvLockHint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="200dp"
android:textColor="@color/white"
android:textSize="20sp" />
<com.mints.wisdomclean.ui.widgets.applock.GestureViewGroup
android:id="@+id/gestureLockViewGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginBottom="90dp"
android:gravity="center" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/head_height"
android:background="@color/applock_bg_green"
android:gravity="center_vertical"
android:paddingBottom="@dimen/head_padding_bottom">
<ImageView
android:layout_width="@dimen/sd_width"
android:layout_height="@dimen/sd_height"
android:layout_marginLeft="@dimen/sd_margin"
android:layout_marginTop="5dp"
android:layout_marginRight="@dimen/sd_margin"
android:src="@mipmap/icon_sdcard" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="@dimen/big_size_layout_height"
android:orientation="horizontal">
<View
android:id="@+id/view1"
android:layout_width="@dimen/square_size"
android:layout_height="@dimen/square_size"
android:layout_marginTop="@dimen/square_total_margin_Top"
android:layout_marginEnd="@dimen/text_margin_LR"
android:layout_marginRight="@dimen/text_margin_LR"
android:background="@color/square_yellow" />
<TextView
android:id="@+id/size_big"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginRight="@dimen/text_margin_TB"
android:text="@string/ellipsis"
android:textColor="@color/text_yellow"
android:textSize="@dimen/text_big_file_size" />
<TextView
android:id="@+id/size_unit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/text_margin_LR"
android:layout_marginRight="@dimen/text_margin_LR"
android:text="@string/ellipsis"
android:textColor="@color/text_yellow"
android:textSize="@dimen/text_big_file" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/big_files"
android:textColor="@color/white"
android:textSize="@dimen/text_big_file" />
</LinearLayout>
<com.mints.wisdomclean.bigfile.CategoryBar
android:id="@+id/category_bar"
android:layout_width="@dimen/progress_width"
android:layout_height="@dimen/progress_height"
android:layout_marginTop="@dimen/progress_margin_TB"
android:layout_marginBottom="@dimen/progress_margin_TB"
android:background="@color/square_blue" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/text_margin_TB"
android:gravity="center_vertical">
<View
android:id="@+id/view2"
android:layout_width="@dimen/square_size"
android:layout_height="@dimen/square_size"
android:layout_marginTop="@dimen/square_other_margin_Top"
android:background="@color/square_green" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/text_margin_LR"
android:layout_marginRight="@dimen/text_margin_LR"
android:text="@string/Others"
android:textColor="@color/text_gray"
android:textSize="@dimen/text_normal" />
<TextView
android:id="@+id/text_other"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/ellipsis_result"
android:textColor="@color/text_gray"
android:textSize="@dimen/text_normal" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<View
android:id="@+id/view3"
android:layout_width="@dimen/square_size"
android:layout_height="@dimen/square_size"
android:layout_marginTop="@dimen/square_other_margin_Top"
android:background="@color/square_blue" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/text_margin_LR"
android:layout_marginRight="@dimen/text_margin_LR"
android:text="@string/Free"
android:textColor="@color/text_gray"
android:textSize="@dimen/text_normal" />
<TextView
android:id="@+id/text_free"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ellipsis_result"
android:textColor="@color/text_gray"
android:textSize="@dimen/text_normal" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/DividerColor"
android:clipToPadding="false"
android:paddingBottom="@dimen/type_margin" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include
android:id="@+id/title_bar_big_file_list"
layout="@layout/header_layout" />
<FrameLayout
android:id="@+id/empty_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/empty_margin_bottom"
android:visibility="gone">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:id="@+id/empty_img"
android:layout_width="@dimen/empty_icon_size"
android:layout_height="@dimen/empty_icon_size"
android:layout_marginBottom="@dimen/empty_icon_margin_bottom"
android:src="@mipmap/ic_launcher_main" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/empty_message" />
</LinearLayout>
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/title_height"
android:background="@android:color/white"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/title_padding"
android:layout_marginRight="@dimen/title_padding"
android:layout_weight="1"
android:gravity="left"
android:singleLine="true"
android:text="@string/Selected"
android:textColor="@color/title_selected"
android:textSize="@dimen/title_selected" />
<TextView
android:id="@+id/selected_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2 Files / 20.3 KB"
android:textColor="@color/title_total"
android:textSize="@dimen/title_total" />
<RelativeLayout
android:id="@+id/layout_check_all"
android:layout_width="@dimen/title_check_layout_width"
android:layout_height="match_parent"
android:gravity="center">
<ImageView
android:id="@+id/file_selected"
android:layout_width="@dimen/title_check_size"
android:layout_height="@dimen/title_check_size"
android:src="@mipmap/icon_check_off" />
</RelativeLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/DividerColor">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView_2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="60dp" />
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_margin="@dimen/button_margin"
android:background="@drawable/bg_button_green"
android:text="@string/Delete"
android:textColor="@color/white"
android:textStyle="bold" />
</RelativeLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<include
android:id="@+id/header"
layout="@layout/header_layout" />
<androidx.core.widget.NestedScrollView
android:id="@+id/nestedScrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/header"
android:overScrollMode="never">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/whiteContainer"
android:layout_width="match_parent"
android:layout_height="50dp"
android:paddingStart="20dp"
android:paddingEnd="20dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:text="已上锁"
android:textColor="@color/black"
android:textSize="16sp" />
<TextView
android:id="@+id/tvWhiteCount"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:gravity="center"
android:text="1个应用"
android:textColor="@color/black" />
</RelativeLayout>
<View style="@style/view_line_E6E6E6" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerWhite"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<View style="@style/view_line_E6E6E6" />
<RelativeLayout
android:id="@+id/blackContainer"
android:layout_width="match_parent"
android:layout_height="50dp"
android:paddingStart="20dp"
android:paddingEnd="20dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:text="未上锁"
android:textColor="@color/black"
android:textSize="16sp" />
<TextView
android:id="@+id/tvBlackCount"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:gravity="center"
android:text="1个应用"
android:textColor="@color/black" />
</RelativeLayout>
<View style="@style/view_line_E6E6E6" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerBlack"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.core.widget.NestedScrollView>
<RelativeLayout
android:id="@+id/fakeContainer"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_below="@id/header"
android:background="@color/white"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:visibility="gone">
<TextView
android:id="@+id/fakeTitle"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:text="已上锁"
android:textColor="@color/black"
android:textSize="16sp" />
<TextView
android:id="@+id/fakeCount"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:gravity="center"
android:text="1个应用"
android:textColor="@color/black" />
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_category_apps"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<!--style="@style/AppsTabLayout"-->
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_category_download"
style="@style/MyCustomTabLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/app_tab_height" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/vp_category_download"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
<?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:background="@drawable/bg_gradient_splash"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="70dp"
android:paddingTop="20dp"
android:background="@color/end_color_junk_cleaner"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_duplicate_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingLeft="@dimen/titleIconLeftRightPadding"
android:paddingRight="@dimen/titleIconLeftRightPadding"
android:scaleType="centerInside"
android:src="@mipmap/ic_arrow_back_white" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="start"
android:singleLine="true"
android:text="下载清理"
android:textColor="@android:color/white"
android:textSize="@dimen/titleTextSize" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fcfcfc"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/my_recycler_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical" />
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:visibility="gone" />
</RelativeLayout>
<Button
android:id="@+id/btnRestore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="5dip"
android:layout_marginBottom="5dip"
android:background="@drawable/bg_btn"
android:clickable="true"
android:paddingStart="30dip"
android:paddingEnd="30dip"
android:text="删除"
android:textColor="@color/white" />
</LinearLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<RelativeLayout
android:id="@+id/containerAnim"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="visible">
<ImageView
android:id="@+id/iv_gif"
android:layout_width="280dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />
<TextView
android:id="@+id/tv_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="80dp"
android:textColor="@color/white" />
</RelativeLayout>
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="match_parent"
android:layout_height="240dp"
android:background="@drawable/shape_bg_speed" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:layout_marginBottom="60dp">
<com.mints.wisdomclean.ui.widgets.DrawHookView
android:id="@+id/dhv"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_centerVertical="true"
android:layout_marginStart="40dp" />
<TextView
android:id="@+id/tv_title_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginTop="5dp"
android:layout_toEndOf="@id/dhv"
android:text="正在加速中..."
android:textColor="#FFFFFF"
android:textSize="20sp" />
<TextView
android:id="@+id/tv_info_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_title_1"
android:layout_alignStart="@id/tv_title_1"
android:layout_marginTop="5dp"
android:text=""
android:textColor="#FFFFFF" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recy_clean"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never"
android:visibility="gone" />
<FrameLayout
android:id="@+id/fl_ad_incre"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginStart="15dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp"
android:background="@drawable/shape_gold_card"
android:elevation="2dip"
android:gravity="center_horizontal" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
</FrameLayout>
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:id="@+id/junk_title_layout"
android:layout_width="match_parent"
android:layout_height="70dp"
android:paddingTop="20dp"
android:background="@color/end_color_junk_cleaner"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView_back_junk_cleaner"
android:layout_width="@dimen/titleIconLayoutWidth"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="@drawable/press_state_color"
android:gravity="center"
android:paddingLeft="@dimen/titleIconLeftRightPadding"
android:paddingRight="@dimen/titleIconLeftRightPadding"
android:scaleType="centerInside"
android:src="@mipmap/ic_arrow_back_white" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="start"
android:singleLine="true"
android:text="@string/junk_cleaner"
android:textColor="@android:color/white"
android:textSize="@dimen/titleTextSize" />
</LinearLayout>
<com.mints.wisdomclean.ui.widgets.StickyLayout
android:id="@+id/sticky_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/junk_title_layout"
android:orientation="vertical">
<LinearLayout
android:id="@+id/sticky_header"
android:layout_width="match_parent"
android:layout_height="@dimen/sticky_header_height"
android:background="@drawable/gradient_junk_cleaner"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingTop="@dimen/sticky_header_padding_top">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal">
<TextView
android:id="@+id/textView_junk_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginRight="@dimen/junk_size_text_margin_right"
android:gravity="center"
android:text="0"
android:textColor="@android:color/white"
android:textSize="@dimen/junk_size_text_size" />
<TextView
android:id="@+id/textView_total"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/textView_junk_size"
android:layout_toRightOf="@id/textView_junk_size"
android:maxLines="1"
android:text="MB"
android:textColor="@android:color/white"
android:textSize="@dimen/junk_size_text_total_size" />
<TextView
android:id="@+id/textView_junk_unit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/textView_junk_size"
android:layout_toRightOf="@id/textView_junk_size"
android:text="MB"
android:textColor="@android:color/white"
android:textSize="@dimen/junk_size_text_unit_size"
android:visibility="gone" />
</RelativeLayout>
<TextView
android:id="@+id/textView_progress_path"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/progressTextMarginLeftRight"
android:layout_marginRight="@dimen/progressTextMarginLeftRight"
android:gravity="left"
android:maxLines="1"
android:text="@string/wait_for_scanning"
android:textColor="@color/progress_text_color"
android:textSize="@dimen/progressTextSize" />
</LinearLayout>
<FrameLayout
android:id="@+id/sticky_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/sticky_layout"
android:background="@color/DividerColor"
android:orientation="vertical">
<ExpandableListView
android:id="@+id/expandableListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@null"
android:dividerHeight="0dp"
android:groupIndicator="@null"
android:listSelector="@android:color/transparent" />
</FrameLayout>
</com.mints.wisdomclean.ui.widgets.StickyLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="@dimen/clean_btn_margin_h">
<ProgressBar
android:id="@+id/progress_bar"
style="@style/JunkProgressBarStyle"
android:layout_width="match_parent"
android:layout_height="@dimen/common_green_button_height"
tools:progress="52" />
<TextView
android:id="@+id/progress_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textAllCaps="true"
android:textColor="@color/white"
android:textSize="@dimen/cleanButtonTextSize"
android:textStyle="bold"
tools:text="52 %" />
</FrameLayout>
</RelativeLayout>
<?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">
<include layout="@layout/header_layout" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview_multi"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<View style="@style/line_3" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_clean"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="10dp"
android:background="@drawable/btn_clean_unselected"
android:text="删除(0KB)"
android:textColor="@color/white"
android:textSize="18sp" />
</LinearLayout>
</LinearLayout>
<com.mints.wisdomclean.ui.widgets.CleanLoadingView
android:id="@+id/clv_loading"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</LinearLayout>
<?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:gravity="center_horizontal"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginTop="60dp">
<TextView
android:id="@+id/tvPing"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="-- ms"
android:textColor="@color/black"
android:textSize="18sp"
app:layout_constraintBottom_toTopOf="@id/textView4"
app:layout_constraintEnd_toEndOf="@id/textView4"
app:layout_constraintStart_toStartOf="@id/textView4"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvRxSpeed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="-- Kb/s"
android:textColor="@color/black"
android:textSize="18sp"
app:layout_constraintBottom_toTopOf="@id/textView7"
app:layout_constraintEnd_toEndOf="@id/textView7"
app:layout_constraintStart_toStartOf="@id/textView7"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvTxSpeed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="-- Kb/s"
android:textColor="@color/black"
android:textSize="18sp"
app:layout_constraintBottom_toTopOf="@id/textView10"
app:layout_constraintEnd_toEndOf="@id/textView10"
app:layout_constraintStart_toStartOf="@id/textView10"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="上传速度"
android:textColor="@color/gray"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@id/textView7"
app:layout_constraintStart_toEndOf="@id/textView4"
app:layout_constraintTop_toBottomOf="@id/tvRxSpeed" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="网络延迟"
android:textColor="@color/gray"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/textView10"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvPing" />
<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="下载速度"
android:textColor="@color/gray"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/textView10"
app:layout_constraintTop_toBottomOf="@id/tvRxSpeed" />
</androidx.constraintlayout.widget.ConstraintLayout>
<com.mints.wisdomclean.ui.widgets.DashboradView
android:id="@+id/dbv"
android:layout_width="260dp"
android:layout_height="wrap_content"
android:layout_marginTop="60dp" />
<Button
android:id="@+id/btn_start"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginTop="80dp"
android:background="@drawable/btn_stroke_main"
android:text="开始测速"
android:textColor="@color/color_main"
android:textSize="18sp" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<com.mints.wisdomclean.ui.widgets.InterceptFrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@mipmap/bg_clean">
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:src="@mipmap/ic_clean"
android:visibility="visible" />
<TextView
android:id="@+id/tvClean"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="120dp"
android:gravity="center"
android:text="正在扫描您的手机..."
android:textColor="@color/white"
android:visibility="visible" />
<ExpandableListView
android:id="@+id/elv_clean"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="210dp"
android:groupIndicator="@null" />
</com.mints.wisdomclean.ui.widgets.InterceptFrameLayout>
<com.mints.wisdomclean.ui.widgets.ProgressButton
android:id="@+id/btnClean"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:clickable="false"
android:gravity="center"
android:text="正在扫描中..."
android:textColor="@color/white"
android:textSize="14sp" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black_01">
<com.github.chrisbanes.photoview.PhotoView
android:id="@+id/pv_preview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<View
android:layout_width="match_parent"
android:layout_height="280dp"
android:background="#8275DF" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include
layout="@layout/header_layout"
android:visibility="gone" />
<RelativeLayout
android:id="@+id/containerAnim"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/iv_gif"
android:layout_width="320dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />
<TextView
android:id="@+id/tv_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="80dp"
android:textColor="@color/white" />
</RelativeLayout>
<androidx.core.widget.NestedScrollView
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:visibility="gone">
<ImageView
android:id="@+id/ivGif"
android:layout_width="200dp"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tv_title_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/ivGif"
android:layout_centerHorizontal="true"
android:textColor="#FFFFFF"
android:textSize="20sp" />
</RelativeLayout>
<ImageView
android:id="@+id/ivGif2"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:visibility="gone" />
<TextView
android:id="@+id/tvInfo2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textColor="@color/white"
android:textSize="16sp"
android:visibility="gone" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycleView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="15dp"
android:background="@drawable/shape_gold_card"
android:elevation="2dip"
android:paddingStart="10dp"
android:paddingTop="20dp"
android:paddingEnd="10dp"
android:paddingBottom="10dp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recy_clean"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never"
android:visibility="gone" />
<FrameLayout
android:id="@+id/fl_ad_incre2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginStart="15dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="15dp"
android:background="@drawable/shape_gold_card"
android:elevation="2dip" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#8E85DD"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true"
android:overScrollMode="never">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:id="@+id/tv_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/shape_write"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:text="-"
android:textColor="@color/color_main" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="15dp">
<ImageView
android:id="@+id/iv_gif"
android:layout_width="wrap_content"
android:layout_height="200dp"
android:layout_gravity="center" />
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="40dp">
<Button
android:id="@+id/btn"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:background="@drawable/shape_write"
android:text="一键提速"
android:textColor="@color/color_main"
android:textSize="18sp" />
<TextView
android:id="@+id/tv_progress"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:background="@drawable/shape_speed_tv"
android:gravity="center_vertical"
android:paddingStart="20dp"
android:text="正在优化手机内存..."
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold"
android:visibility="invisible" />
</FrameLayout>
<FrameLayout
android:id="@+id/fl_ad_fast"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="15dp"
android:background="@drawable/shape_gold_card"
android:elevation="2dip" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
<?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:background="@color/white"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<TextView
android:id="@+id/tv_vedio_coming_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="14dp"
android:textSize="14sp" />
<cn.jzvd.JzvdStd
android:id="@+id/jzvdStd"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="50dp"
android:layout_marginTop="20dp"
android:layout_marginRight="50dp"
android:layout_marginBottom="20dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:gravity="center_horizontal"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_vedio_coming_left"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@drawable/shape_none_mints"
android:gravity="center"
android:paddingLeft="26dp"
android:paddingTop="16dp"
android:paddingRight="26dp"
android:paddingBottom="16dp"
android:text="仅压缩 保留原视频"
android:textColor="@color/main_mints"
android:textSize="12sp"
android:textStyle="bold"></TextView>
<TextView
android:id="@+id/tv_vedio_coming_right"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:background="@drawable/shape_mints"
android:drawableLeft="@mipmap/ic_xiangdui"
android:drawablePadding="2dp"
android:gravity="center"
android:paddingLeft="26dp"
android:paddingTop="16dp"
android:paddingRight="26dp"
android:paddingBottom="16dp"
android:text="压缩并删除原视频"
android:textColor="@color/white"
android:textSize="12sp"
android:textStyle="bold"></TextView>
</LinearLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_category_apps"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_vediocom"
style="@style/MyCustomTabLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/app_tab_height" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/vp_vediocom"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
<?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:background="#8278DC"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="#8278DC"
android:overScrollMode="never">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.mints.wisdomclean.ui.widgets.GifView
android:id="@+id/gv_virus"
android:layout_width="230dp"
android:layout_height="230dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="40dp"
android:layout_marginBottom="20dp" />
<TextView
android:id="@+id/tv_progress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="30dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="30dp"
android:ellipsize="end"
android:singleLine="true"
android:textColor="@color/white" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
<?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:background="@color/gmts_blue"
android:orientation="vertical">
<include layout="@layout/header_layout" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@color/btn_enabled"
android:overScrollMode="never">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/gmts_blue"
android:paddingTop="10dp"
android:paddingBottom="10dp">
<TextView
android:id="@+id/tv_wx_trash_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="-10dp"
android:layout_toEndOf="@id/tv_wx_trash"
android:background="@drawable/shape_red"
android:paddingStart="6dp"
android:paddingTop="2dp"
android:paddingEnd="6dp"
android:paddingBottom="2dp"
android:text="可清理"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_wx_trash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_wx_trash_label"
android:layout_marginStart="20dp"
android:text="8.80MB"
android:textColor="@color/white"
android:textSize="40sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_wx_trash"
android:layout_marginStart="20dp"
android:text="放心清理,删除后不影响使用"
android:textColor="@color/white"
android:textSize="16sp" />
</RelativeLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@color/white"
android:paddingStart="15dp"
android:paddingEnd="15dp">
<ImageView
android:id="@+id/iv_trash_img"
android:layout_width="36dp"
android:layout_height="wrap_content"
android:src="@mipmap/icon_group_temp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_trash1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:text="其他垃圾"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toTopOf="@id/tv_trash2"
app:layout_constraintStart_toEndOf="@id/iv_trash_img"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_trash2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginBottom="10dp"
android:text="使用过程中产生的垃圾,建议清理"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/iv_trash_img"
app:layout_constraintTop_toBottomOf="@id/tv_trash1" />
<TextView
android:id="@+id/tv_trash_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="8.80MB"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/cb_trash"
app:layout_constraintTop_toTopOf="parent" />
<CheckBox
android:id="@+id/cb_trash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:theme="@style/CB_Theme"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@color/white">
<Button
android:id="@+id/btn_clean"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:background="@drawable/shape_btn_clean" />
</FrameLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/empty_layout"
layout="@layout/common_empty_layout"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rcv_category_apps_install"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:scrollbars="vertical"/>
<RelativeLayout
android:id="@+id/button_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:paddingBottom="@dimen/common_button_margin_bottom_normal"
android:visibility="gone">
<!--上面的 paddingBottom 和下面的 marginBottom 本可以同时省略,目前这种写法是为了
防止一部分低配手机如 4.2 版本 include RelativeLayout 时,子部件的 marginBottom 不起作用-->
<Button
android:id="@+id/btn_apps_uninstall"
style="@style/common_bottom_green_button_style"
android:layout_width="match_parent"
android:layout_height="@dimen/common_button_height"
android:layout_marginBottom="0dp"
android:background="@drawable/bg_common_button_red"
android:text="@string/uninstall"/>
</RelativeLayout>
</LinearLayout>
<include layout="@layout/svga_loading_layout"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/empty_layout"
layout="@layout/common_empty_layout"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rcv_category_apps_uninstall"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:scrollbars="vertical"/>
<RelativeLayout
android:id="@+id/button_layout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:paddingBottom="@dimen/common_button_margin_bottom_normal"
android:visibility="gone">
<!--上面的 paddingBottom 和下面的 marginBottom 本可以同时省略,目前这种写法是为了
防止一部分低配手机如 4.2 版本 include RelativeLayout 时,子部件的 marginBottom 不起作用-->
<Button
android:id="@+id/btn_apps_delete"
style="@style/common_bottom_green_button_style"
android:layout_width="match_parent"
android:layout_height="@dimen/common_button_height"
android:layout_marginBottom="0dp"
android:background="@drawable/bg_common_button_red"
android:text="@string/delete"/>
</RelativeLayout>
</LinearLayout>
<include layout="@layout/svga_loading_layout"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview_vedioleft"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview_vedioright"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="2dp">
<ImageView
android:id="@+id/iv_item_album"
android:layout_width="match_parent"
android:layout_height="130dp" />
<com.mints.wisdomclean.ui.widgets.RoundCheckBox
android:id="@+id/cb_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|bottom" />
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center_vertical">
<ImageView
android:id="@+id/iv_item_multi"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginStart="10dp"
android:src="@mipmap/ic_launcher_main" />
<TextView
android:id="@+id/tv_item_multi_name"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="12dp"
android:layout_toEndOf="@id/iv_item_multi"
android:ellipsize="middle"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textColor="@color/black"
android:textSize="20sp" />
<TextView
android:id="@+id/tv_item_multi_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_item_multi_name"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_toEndOf="@id/iv_item_multi"
android:textColor="@color/gray"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_item_multi_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_item_multi_name"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_toEndOf="@id/tv_item_multi_size"
android:textColor="@color/gray"
android:textSize="14sp" />
<com.mints.wisdomclean.ui.widgets.RoundCheckBox
android:id="@+id/cb_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rv_item_vedio"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_margin="6dp"
android:gravity="center_vertical">
<ImageView
android:id="@+id/iv_item_multi"
android:layout_width="120dp"
android:layout_height="120dp"
android:scaleType="fitXY" />
<TextView
android:id="@+id/tv_item_multi_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="2dp"
android:layout_marginBottom="4dp"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_item_multi_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="2dp"
android:layout_marginBottom="4dp"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_item_multi_path"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:textSize="10sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_vedio_enter"
android:layout_centerInParent="true"/>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_app_item_install"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/click_gray_white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="@dimen/item_icon_width"
android:layout_height="@dimen/item_icon_height"
android:gravity="center">
<ImageView
android:id="@+id/iv_app_icon"
android:layout_width="@dimen/video_thumbnail"
android:layout_height="@dimen/video_thumbnail"
android:scaleType="centerCrop"/>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/tv_app_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/app_name"
android:textColor="@color/item_category_name_color"
android:textSize="@dimen/item_text_size" />
<TextView
android:id="@+id/tv_app_version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/version"
android:textColor="@color/item_category_desc_color"
android:textSize="@dimen/common_text_size" />
</LinearLayout>
<!--<FrameLayout
android:id="@+id/check_layout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:paddingLeft="@dimen/common_padding"
android:paddingRight="@dimen/common_padding">
<include layout="@layout/check_box_none"/>
</FrameLayout>-->
<ImageView
android:id="@+id/file_selected"
android:layout_width="46dp"
android:layout_height="46dp"
android:layout_gravity="center_vertical"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:src="@drawable/check_box_z2_04"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/ll_app_item_extension"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingEnd="@dimen/common_padding"
android:paddingRight="@dimen/common_padding"
android:paddingLeft="@dimen/item_icon_width"
android:paddingStart="@dimen/item_icon_width"
android:paddingTop="@dimen/common_padding2"
android:paddingBottom="@dimen/common_padding2"
android:visibility="gone">
<TextView
android:id="@+id/tv_app_space"
android:layout_width="match_parent"
android:layout_height="@dimen/apk_extension_item_h"
android:gravity="center_vertical"
android:textColor="@color/item_category_desc_color"
android:textSize="@dimen/common_text_size"
android:text="@string/space_usage" />
<TextView
android:id="@+id/tv_app_install_date"
android:layout_width="match_parent"
android:layout_height="@dimen/apk_extension_item_h"
android:gravity="center_vertical"
android:text="@string/install_date"
android:textColor="@color/item_category_desc_color"
android:textSize="@dimen/common_text_size" />
<LinearLayout
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="@dimen/apk_extension_item_h">
<TextView
android:id="@+id/tv_app_open"
android:text="@string/Open"
android:textSize="@dimen/common_text_size"
android:textColor="@color/tab_background"
android:gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
<TextView
android:id="@+id/tv_app_details"
android:text="@string/details"
android:textSize="@dimen/common_text_size"
android:textColor="@color/tab_background"
android:gravity="center_vertical"
android:layout_marginLeft="@dimen/apk_extension_item_margin"
android:layout_marginStart="@dimen/apk_extension_item_margin"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</LinearLayout>
</LinearLayout>
<View
android:background="@color/line_divider"
android:layout_marginLeft="@dimen/item_icon_width"
android:layout_width="match_parent"
android:layout_height="1px" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_apk_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/click_gray_white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="@dimen/item_icon_width"
android:layout_height="@dimen/item_icon_height"
android:gravity="center">
<ImageView
android:id="@+id/iv_apk_icon"
android:layout_width="@dimen/apk_icon"
android:layout_height="@dimen/apk_icon"
android:scaleType="centerCrop"/>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/tv_apk_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:text="xxx.apk"
android:textColor="@color/item_category_name_color"
android:textSize="@dimen/item_text_size" />
<TextView
android:id="@+id/tv_apk_desc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/already_installed"
android:textColor="@color/item_category_desc_color"
android:textSize="@dimen/common_text_size" />
</LinearLayout>
<ImageView
android:id="@+id/file_selected"
android:layout_width="46dp"
android:layout_height="46dp"
android:layout_gravity="center_vertical"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:src="@drawable/check_box_z2_04"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/ll_apk_item_extension"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingEnd="@dimen/common_padding"
android:paddingRight="@dimen/common_padding"
android:paddingLeft="@dimen/item_icon_width"
android:paddingStart="@dimen/item_icon_width"
android:paddingTop="@dimen/common_padding2"
android:paddingBottom="@dimen/common_padding2"
android:visibility="visible">
<TextView
android:id="@+id/tv_apk_version"
android:layout_width="match_parent"
android:layout_height="@dimen/apk_extension_item_h"
android:gravity="center_vertical"
android:textColor="@color/item_category_desc_color"
android:textSize="@dimen/common_text_size"
android:text="@string/version" />
<TextView
android:id="@+id/tv_apk_size"
android:layout_width="match_parent"
android:layout_height="@dimen/apk_extension_item_h"
android:gravity="center_vertical"
android:text="@string/size"
android:textColor="@color/item_category_desc_color"
android:textSize="@dimen/common_text_size" />
<LinearLayout
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="@dimen/apk_extension_item_h">
<TextView
android:id="@+id/tv_apk_open"
android:text="@string/open_app"
android:textSize="@dimen/common_text_size"
android:textColor="@color/tab_background"
android:gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
<TextView
android:id="@+id/tv_apk_folder"
android:visibility="gone"
android:text="@string/show_in_folder"
android:textSize="@dimen/common_text_size"
android:textColor="@color/tab_background"
android:gravity="center_vertical"
android:layout_marginLeft="@dimen/apk_extension_item_margin"
android:layout_marginStart="@dimen/apk_extension_item_margin"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</LinearLayout>
</LinearLayout>
<View
android:background="@color/line_divider"
android:layout_marginLeft="@dimen/item_icon_width"
android:layout_width="match_parent"
android:layout_height="1px" />
</LinearLayout>
\ No newline at end of file
<?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="wrap_content"
android:layout_margin="15dp"
android:background="@drawable/shape_gold_card"
android:elevation="2dip"
android:padding="10dp">
<ImageView
android:id="@+id/item_title_img"
android:layout_width="40dp"
android:layout_height="40dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_task_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="10dp"
android:layout_marginBottom="8dp"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/item_task_info"
app:layout_constraintStart_toEndOf="@+id/item_title_img"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_task_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="10dp"
android:layout_marginBottom="8dp"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/item_title_img"
app:layout_constraintTop_toBottomOf="@id/item_task_title" />
<TextView
android:id="@+id/item_task_click"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:background="@drawable/shape_btn_clean"
android:gravity="center"
android:paddingStart="15dp"
android:paddingTop="6dp"
android:paddingEnd="15dp"
android:paddingBottom="6dp"
android:textColor="@color/white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp">
<TextView
android:id="@+id/tv1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="@color/black" />
<ImageView
android:id="@+id/iv1"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignTop="@id/tv1"
android:layout_alignParentEnd="true"
android:src="@mipmap/ic_right_green" />
</RelativeLayout>
\ No newline at end of file
<?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="match_parent"
android:background="@color/theme">
<FrameLayout
android:id="@+id/fl_loading_root"
android:layout_width="200dp"
android:layout_height="200dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv_loading"
android:layout_width="200dp"
android:layout_height="200dp"
android:background="@mipmap/ic_clean_loading">
</ImageView>
<TextView
android:id="@+id/tv_loading_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="0%"
android:textColor="@color/white"
android:textSize="18sp" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:text="@string/clean_text"
android:textColor="@color/white"
android:textSize="18sp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/fl_loading_root" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ 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