Commit 01c820bc authored by yanglin's avatar yanglin

页面、显示逻辑等代码优化

parent e5ce5cb4
......@@ -26,10 +26,10 @@
android:name=".MyApplication"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@drawable/ic_app_icon"
android:icon="@mipmap/app_icon"
android:label="@string/app_name"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@mipmap/app_icon"
android:supportsRtl="true"
android:theme="@style/Theme.MyDemo3"
tools:targetApi="31">
......
......@@ -40,7 +40,7 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
private var mProgress: ProgressBar? = null
private lateinit var mListView: RecyclerView
private lateinit var mScaningView: View
private var mCleanSizeSuccessTv: String = ""
private var mCleanSizeSuccessTv: String = "Successfully cleaned up 0B of junk!"
// private var mCleanAdapter: CleanAdapter? = null
private var mCleanAdapter2: CleanAdapter2? = null
......
......@@ -107,8 +107,17 @@ class HomeActivity : AppCompatActivity() {
fun getPermission(){
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU){
isPermission = false
}else if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R && !isPermission){
isPermission = false
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && !isPermission){
PermissionX.init(this).permissions(
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
).request(RequestCallback { allGranted, grantedList, deniedList ->
if (allGranted){
isPermission = true
}else{
isPermission = false
}
})
} else {
PermissionX.init(this).permissions(
Manifest.permission.READ_EXTERNAL_STORAGE,
......
......@@ -136,8 +136,13 @@ class SimilarImagesActivity : AppCompatActivity(), OnClickListener{
mEditBtn.visibility = View.VISIBLE
// if (mDataBeans.size == 0) {
if (mSimilarDatas.size == 0) {
mRecycleView.visibility = View.GONE
findViewById<View>(R.id.not_file_found_layout).visibility = View.VISIBLE
mEditBtn.visibility = View.GONE
}else{
findViewById<View>(R.id.not_file_found_layout).visibility = View.GONE
mRecycleView.visibility = View.VISIBLE
mEditBtn.visibility = View.VISIBLE
// mImageItemAdapter?.setData(mDataBeans)
Log.e("yanglin", "onSmilarScanFinish: mSimilarDatas.size = ${mSimilarDatas.size}", )
mSimilarBeanAdapter?.setData(mSimilarDatas)
......
......@@ -126,7 +126,7 @@ class HomeFragment : Fragment(), OnClickListener{
}).show()
customDialog.isShowEditText(false)
customDialog.setsTitle("not permission")
customDialog.setsHint("Please grant file management permissions")
customDialog.setsHint("Please grant fileAll management permissions")
return false
}
return true
......
......@@ -20,15 +20,18 @@ object PermissionUtil {
var LOCATION_PERMISSION = false
fun requestPermission(context: Context?){
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU){
}else if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R) {
val intent = Intent().apply {
action = Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION
data = Uri.fromParts("package", context?.packageName, null)
flags = Intent.FLAG_ACTIVITY_NEW_TASK
}
context?.startActivity(intent)
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
val intent = Intent().apply {
action = Settings.ACTION_APPLICATION_DETAILS_SETTINGS
data = Uri.fromParts("package", context?.packageName, null)
}
context?.startActivity(intent)
}else{
val intent = Intent().apply {
action = Settings.ACTION_APPLICATION_DETAILS_SETTINGS
......@@ -43,8 +46,10 @@ object PermissionUtil {
//TODO android 14以上
HomeActivity.isPermission = Environment.isExternalStorageManager()
return HomeActivity.isPermission
}else if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R) {
}else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
HomeActivity.isPermission = Environment.isExternalStorageManager()
&&ActivityCompat.checkSelfPermission(activity!!,
Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED
return HomeActivity.isPermission
}else{
HomeActivity.isPermission = ActivityCompat.checkSelfPermission(activity!!, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED
......
......@@ -28,419 +28,438 @@
android:layout_centerHorizontal="true"
android:layout_marginTop="12dp"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<RelativeLayout
android:id="@+id/battery_info_layout"
android:layout_below="@+id/battery_quit_btn"
<ScrollView
android:layout_below="@id/battery_quit_btn"
android:layout_width="match_parent"
android:layout_height="200dp">
<ImageView
android:id="@+id/battery_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="12dp"
android:background="@mipmap/battery_image"/>
<TextView
android:id="@+id/battery_num_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="55dp"
android:textStyle="bold"
android:textColor="@color/white"
android:text="99"
android:layout_marginTop="44dp"
android:layout_toRightOf="@id/battery_image"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:textSize="24dp"
android:textStyle="bold"
android:text="%"
android:layout_toRightOf="@+id/battery_num_text"
android:layout_marginTop="75dp"/>
<TextView
android:id="@+id/battery_use_time_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textColor="@color/white"
android:layout_marginTop="18dp"
android:text="15 hours 24 min"
android:textSize="19dp"
android:layout_below="@+id/battery_num_text"
android:layout_toRightOf="@+id/battery_image"/>
</RelativeLayout>
<LinearLayout
android:layout_below="@+id/battery_info_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#F8F8F8">
<LinearLayout
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#FFFFFF"
android:paddingTop="12dp"
android:paddingBottom="12dp">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<RelativeLayout
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/battery_temperature"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="33dp"
android:textColor="@color/black"
android:text="33.5"/>
<TextView
android:layout_toRightOf="@id/battery_temperature"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="C"
android:layout_marginTop="18dp"
android:textSize="14dp"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="23dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="47dp">
<ImageView
android:layout_centerVertical="true"
android:id="@+id/battery_temperature_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/temperature"
tools:ignore="NotSibling" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="temperature"
android:layout_marginStart="2dp"
android:layout_toRightOf="@+id/battery_temperature_icon"/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<RelativeLayout
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/battery_voltage_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="33dp"
android:textColor="@color/black"
android:text="33.5"/>
<TextView
android:layout_toRightOf="@id/battery_voltage_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="V"
android:layout_marginTop="18dp"
android:textSize="14dp"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="23dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="47dp">
<ImageView
android:layout_centerVertical="true"
android:id="@+id/battery_voltage_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/voltage"
tools:ignore="NotSibling" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="voltage"
android:layout_marginStart="2dp"
android:layout_toRightOf="@+id/battery_voltage_icon"/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<RelativeLayout
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/battery_power_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="33dp"
android:textColor="@color/black"
android:text="33.5"/>
<TextView
android:layout_toRightOf="@id/battery_power_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="mAh"
android:layout_marginTop="18dp"
android:textSize="14dp"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="23dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="47dp">
<ImageView
android:layout_centerVertical="true"
android:id="@+id/battery_power_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/battery"
tools:ignore="NotSibling" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Battery power"
android:layout_marginStart="2dp"
android:layout_toRightOf="@+id/battery_power_icon"/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
android:scrollbars="none"
android:layout_above="@+id/battery_ad"
android:layout_height="wrap_content">
<LinearLayout
android:background="#FFFFFF"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/battery_info_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp">
android:layout_height="200dp">
<ImageView
android:id="@+id/hotspot_image"
android:id="@+id/battery_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/hotspot"/>
<LinearLayout
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@+id/hotspot_image">
android:layout_marginStart="12dp"
android:background="@mipmap/battery_image"/>
<TextView
android:id="@+id/hotspot_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/turn_off_the_hotspot"
android:textStyle="bold"
android:textSize="19dp"
android:textColor="@color/black"/>
<TextView
android:id="@+id/hotspot_hint_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#999999"
android:textSize="14dp"
android:text="+10 minutes"/>
</LinearLayout>
<TextView
android:id="@+id/hotspot_switch_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="19dp"
android:layout_alignParentEnd="true"
android:text="Off"
android:layout_centerVertical="true"
android:layout_marginEnd="6dp"
android:textColor="@color/style_grey"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp">
<ImageView
android:id="@+id/bluetooth_image"
android:id="@+id/battery_num_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/bluetooth"/>
<LinearLayout
android:layout_centerVertical="true"
android:textSize="55dp"
android:textStyle="bold"
android:textColor="@color/white"
android:text="99"
android:layout_marginTop="44dp"
android:layout_toRightOf="@id/battery_image"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@+id/bluetooth_image">
android:textColor="@color/white"
android:textSize="24dp"
android:textStyle="bold"
android:text="%"
android:layout_toRightOf="@+id/battery_num_text"
android:layout_marginTop="75dp"/>
<TextView
android:id="@+id/bluetooth_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/turn_off_bluetooth"
android:textStyle="bold"
android:textSize="19dp"
android:textColor="@color/black"/>
<TextView
android:id="@+id/bluetooth_hint_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#999999"
android:textSize="14dp"
android:text="+10 minutes"/>
</LinearLayout>
<TextView
android:id="@+id/bluetooth_switch_text"
android:id="@+id/battery_use_time_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textColor="@color/white"
android:layout_marginTop="18dp"
android:text="15 hours 24 min"
android:textSize="19dp"
android:layout_alignParentEnd="true"
android:text="Off"
android:layout_centerVertical="true"
android:layout_marginEnd="6dp"
android:textColor="@color/style_grey"/>
android:layout_below="@+id/battery_num_text"
android:layout_toRightOf="@+id/battery_image"/>
</RelativeLayout>
<RelativeLayout
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp">
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#F8F8F8">
<ImageView
android:id="@+id/auto_bright_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/auto_brightness"/>
<LinearLayout
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@+id/auto_bright_image">
<TextView
android:id="@+id/auto_bright_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/turn_on_auto_brightness"
android:textStyle="bold"
android:textSize="19dp"
android:textColor="@color/black"/>
<TextView
android:id="@+id/auto_bright_hint_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#999999"
android:textSize="14dp"
android:text="+10 minutes"/>
android:orientation="horizontal"
android:background="#FFFFFF"
android:paddingTop="12dp"
android:paddingBottom="12dp">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<RelativeLayout
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/battery_temperature"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="33dp"
android:textColor="@color/black"
android:text="33.5"/>
<TextView
android:layout_toRightOf="@id/battery_temperature"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="C"
android:layout_marginTop="18dp"
android:textSize="14dp"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="23dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="47dp">
<ImageView
android:layout_centerVertical="true"
android:id="@+id/battery_temperature_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/temperature"
tools:ignore="NotSibling" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="temperature"
android:layout_marginStart="2dp"
android:layout_toRightOf="@+id/battery_temperature_icon"/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<RelativeLayout
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/battery_voltage_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="33dp"
android:textColor="@color/black"
android:text="33.5"/>
<TextView
android:layout_toRightOf="@id/battery_voltage_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="V"
android:layout_marginTop="18dp"
android:textSize="14dp"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="23dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="47dp">
<ImageView
android:layout_centerVertical="true"
android:id="@+id/battery_voltage_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/voltage"
tools:ignore="NotSibling" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="voltage"
android:layout_marginStart="2dp"
android:layout_toRightOf="@+id/battery_voltage_icon"/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<RelativeLayout
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/battery_power_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="33dp"
android:textColor="@color/black"
android:text="33.5"/>
<TextView
android:layout_toRightOf="@id/battery_power_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="mAh"
android:layout_marginTop="18dp"
android:textSize="14dp"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="23dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="47dp">
<ImageView
android:layout_centerVertical="true"
android:id="@+id/battery_power_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/battery"
tools:ignore="NotSibling" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Battery power"
android:layout_marginStart="2dp"
android:layout_toRightOf="@+id/battery_power_icon"/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
<TextView
android:id="@+id/auto_bright_switch_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="19dp"
android:layout_alignParentEnd="true"
android:text="Off"
android:layout_centerVertical="true"
android:layout_marginEnd="6dp"
android:textColor="@color/style_grey"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp">
<ImageView
android:id="@+id/gps_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/gps"/>
<LinearLayout
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:orientation="vertical"
android:layout_toRightOf="@+id/gps_image">
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/gps_title_text"
android:layout_width="wrap_content"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp">
<ImageView
android:id="@+id/hotspot_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/hotspot"/>
<LinearLayout
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@+id/hotspot_image">
<TextView
android:id="@+id/hotspot_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/turn_off_the_hotspot"
android:textStyle="bold"
android:textSize="19dp"
android:textColor="@color/black"/>
<TextView
android:id="@+id/hotspot_hint_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#999999"
android:textSize="14dp"
android:text="+10 minutes"/>
</LinearLayout>
<TextView
android:id="@+id/hotspot_switch_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="19dp"
android:layout_alignParentEnd="true"
android:text="Off"
android:layout_centerVertical="true"
android:layout_marginEnd="6dp"
android:textColor="@color/style_grey"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp">
<ImageView
android:id="@+id/bluetooth_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/bluetooth"/>
<LinearLayout
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@+id/bluetooth_image">
<TextView
android:id="@+id/bluetooth_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/turn_off_bluetooth"
android:textStyle="bold"
android:textSize="19dp"
android:textColor="@color/black"/>
<TextView
android:id="@+id/bluetooth_hint_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#999999"
android:textSize="14dp"
android:text="+10 minutes"/>
</LinearLayout>
<TextView
android:id="@+id/bluetooth_switch_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="19dp"
android:layout_alignParentEnd="true"
android:text="Off"
android:layout_centerVertical="true"
android:layout_marginEnd="6dp"
android:textColor="@color/style_grey"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/turn_off_gps"
android:textStyle="bold"
android:textSize="19dp"
android:textColor="@color/black"/>
<TextView
android:id="@+id/gps_hint_text"
android:layout_width="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp">
<ImageView
android:id="@+id/auto_bright_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/auto_brightness"/>
<LinearLayout
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@+id/auto_bright_image">
<TextView
android:id="@+id/auto_bright_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/turn_on_auto_brightness"
android:textStyle="bold"
android:textSize="19dp"
android:textColor="@color/black"/>
<TextView
android:id="@+id/auto_bright_hint_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#999999"
android:textSize="14dp"
android:text="+10 minutes"/>
</LinearLayout>
<TextView
android:id="@+id/auto_bright_switch_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="19dp"
android:layout_alignParentEnd="true"
android:text="Off"
android:layout_centerVertical="true"
android:layout_marginEnd="6dp"
android:textColor="@color/style_grey"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#999999"
android:textSize="14dp"
android:text="+10 minutes"/>
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp">
<ImageView
android:id="@+id/gps_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/gps"/>
<LinearLayout
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@+id/gps_image">
<TextView
android:id="@+id/gps_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/turn_off_gps"
android:textStyle="bold"
android:textSize="19dp"
android:textColor="@color/black"/>
<TextView
android:id="@+id/gps_hint_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#999999"
android:textSize="14dp"
android:text="+10 minutes"/>
</LinearLayout>
<TextView
android:id="@+id/gps_switch_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="19dp"
android:layout_alignParentEnd="true"
android:text="Off"
android:layout_centerVertical="true"
android:layout_marginEnd="6dp"
android:textColor="@color/style_grey"/>
</RelativeLayout>
</LinearLayout>
<TextView
android:id="@+id/gps_switch_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="19dp"
android:layout_alignParentEnd="true"
android:text="Off"
android:layout_centerVertical="true"
android:layout_marginEnd="6dp"
android:textColor="@color/style_grey"/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
<LinearLayout
android:id="@+id/battery_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
......
......@@ -48,13 +48,7 @@
android:layout_height="100dp"
android:layout_above="@+id/clean_hint_text"
android:layout_below="@id/clean_quit_btn">
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/battery_animation_btn"
android:layout_width="match_parent"
android:layout_height="100dp"
app:lottie_autoPlay="true"
app:lottie_loop="true"
app:lottie_rawRes="@raw/qinglisaomiao" />
<!--1111-->
</RelativeLayout>
......@@ -96,6 +90,15 @@
</LinearLayout>
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/battery_animation_btn"
android:layout_width="match_parent"
android:layout_height="160dp"
android:layout_marginTop="20dp"
app:lottie_autoPlay="true"
app:lottie_loop="true"
app:lottie_rawRes="@raw/qinglisaomiao" />
<LinearLayout
android:id="@+id/ad_layout"
android:layout_width="match_parent"
......
......@@ -35,6 +35,13 @@
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:layout_height="match_parent"/>
<RelativeLayout
android:id="@+id/not_file_found_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/not_found_layout"/>
</RelativeLayout>
<include
......
......@@ -4,352 +4,362 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragment.FileManagerFragment">
<LinearLayout
<ScrollView
android:layout_above="@+id/file_manager_ad"
android:scrollbars="none"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/recent_file_view"
android:layout_marginTop="12dp"
android:layout_marginStart="12dp"
android:layout_marginEnd="12dp"
android:background="@drawable/bg_recent_layer"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginStart="16dp"
android:textSize="16dp"
android:text="Recent images"
android:textColor="#333333"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginStart="16dp"
android:src="@mipmap/join_to_image"
android:layout_alignParentEnd="true"/>
<GridView
android:id="@+id/recent_file_grid"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginTop="44dp"
android:layout_marginBottom="16dp"
android:layout_marginStart="16dp"
android:numColumns="4"
android:horizontalSpacing="2dp"
android:columnWidth="80dp"
android:paddingLeft="1dp"
android:scrollbars="none"
android:layout_marginEnd="16dp"/>
</RelativeLayout>
<TextView
android:layout_width="92dp"
android:layout_height="wrap_content"
android:text="@string/category"
android:layout_marginStart="16dp"
android:textColor="#8B8B8B"
android:textSize="18dp"/>
<LinearLayout
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/file_type_item_layer_list"
android:orientation="vertical">
<LinearLayout
android:orientation="vertical"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/recent_file_view"
android:layout_marginTop="12dp"
android:layout_marginStart="12dp"
android:layout_marginEnd="12dp"
android:background="@drawable/bg_recent_layer"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/btn_image"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1"
tools:ignore="NestedWeights">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/image"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/image"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/btn_video"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/video"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/video"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/btn_audio"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/audio"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/audio"/>
</RelativeLayout>
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginStart="16dp"
android:textSize="16dp"
android:text="Recent images"
android:textColor="#333333"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginStart="16dp"
android:src="@mipmap/join_to_image"
android:layout_alignParentEnd="true"/>
<GridView
android:id="@+id/recent_file_grid"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginTop="44dp"
android:layout_marginBottom="16dp"
android:layout_marginStart="16dp"
android:numColumns="4"
android:horizontalSpacing="2dp"
android:columnWidth="80dp"
android:paddingLeft="1dp"
android:scrollbars="none"
android:layout_marginEnd="16dp"/>
</RelativeLayout>
<TextView
android:layout_width="92dp"
android:layout_height="wrap_content"
android:text="@string/category"
android:layout_marginStart="16dp"
android:textColor="#8B8B8B"
android:textSize="18dp"/>
</LinearLayout>
<LinearLayout
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/btn_zip"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:id="@+id/image_zip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/zip"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/zip"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/btn_apk"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/apk"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/apk"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/btn_log_file"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/log_file"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/log_file"/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:textColor="#8B8B8B"
android:text="MY FILE"
android:textSize="18dp"/>
<LinearLayout
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_height="wrap_content"
android:background="@drawable/file_type_item_layer_list"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/btn_all"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_all_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_all"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#BC49FE"
android:text="All"/>
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/btn_image"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1"
tools:ignore="NestedWeights">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/image"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/image"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/btn_video"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/video"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/video"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/btn_audio"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/audio"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/audio"/>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/btn_word"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_wordl_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_word"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#4982FE"
android:text="Word"/>
</LinearLayout>
<LinearLayout
android:id="@+id/btn_excel"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_excell_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_excel"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#39CAB2"
android:text="Excel"/>
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/btn_zip"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:id="@+id/image_zip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/zip"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/zip"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/btn_apk"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/apk"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/apk"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/btn_log_file"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/log_file"/>
<TextView
android:layout_marginTop="52dp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/log_file"/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:textColor="#8B8B8B"
android:text="MY FILE"
android:textSize="18dp"/>
</LinearLayout>
<LinearLayout
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/btn_ppt"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_ppt_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_ppt"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FF7861"
android:text="PPT"/>
android:layout_height="wrap_content"
android:orientation="vertical">
</LinearLayout>
<LinearLayout
android:id="@+id/btn_pdf"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_pdf_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_pdf"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#DC2E1B"
android:text="PDF"/>
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/btn_all"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_all_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_all"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#BC49FE"
android:text="All"/>
</LinearLayout>
<LinearLayout
android:id="@+id/btn_word"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_wordl_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_word"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#4982FE"
android:text="Word"/>
</LinearLayout>
<LinearLayout
android:id="@+id/btn_excel"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_excell_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_excel"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#39CAB2"
android:text="Excel"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/btn_txt"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_txt_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_log_file"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FCCC5A"
android:text="TXT"/>
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/btn_ppt"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_ppt_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_ppt"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FF7861"
android:text="PPT"/>
</LinearLayout>
<LinearLayout
android:id="@+id/btn_pdf"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_pdf_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_pdf"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#DC2E1B"
android:text="PDF"/>
</LinearLayout>
<LinearLayout
android:id="@+id/btn_txt"
android:layout_width="0dp"
android:layout_height="82dp"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/bg_txt_layer"
android:layout_weight="1">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_log_file"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FCCC5A"
android:text="TXT"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<RelativeLayout
</ScrollView>
<FrameLayout
android:id="@+id/file_manager_ad"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:layout_height="wrap_content">
......@@ -357,9 +367,9 @@
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_gravity="center"
android:src="@mipmap/ad"/>
</RelativeLayout>
</FrameLayout>
</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:background="@drawable/bg_ad_shape"
android:layout_height="58dp">
<ImageView
android:layout_centerVertical="true"
android:id="@+id/notification_icon"
android:src="@mipmap/notification_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_marginEnd="50dp"
android:layout_toRightOf="@+id/notification_icon">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Battery"
android:textColor="@color/black"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Low"
android:textColor="@color/style_background"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Power"
android:textColor="@color/black"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="20%"
android:textColor="@color/style_background"/>
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/battery_btn"
android:layout_width="49dp"
android:layout_height="24dp"
android:text="View"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_marginEnd="12dp"
android:gravity="center"
android:textColor="@color/white"
android:background="@drawable/bg_btn_sure_shape"/>
</RelativeLayout>
\ No newline at end of file
......@@ -6,12 +6,14 @@
<ImageView
android:id="@+id/scan_app_icon"
android:layout_width="60dp"
android:padding="5dp"
android:layout_height="60dp"
android:src="@mipmap/scan_app_icon"/>
<LinearLayout
android:layout_toRightOf="@+id/scan_app_icon"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_marginStart="12dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
......
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