Commit d8cf82d1 authored by wanglei's avatar wanglei

add ui

parent 80187db9
...@@ -45,6 +45,8 @@ dependencies { ...@@ -45,6 +45,8 @@ dependencies {
implementation(libs.material) implementation(libs.material)
implementation(libs.androidx.activity) implementation(libs.androidx.activity)
implementation(libs.androidx.constraintlayout) implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.navigation.fragment.ktx)
implementation(libs.androidx.navigation.ui.ktx)
testImplementation(libs.junit) testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core) androidTestImplementation(libs.androidx.espresso.core)
......
package com.zxhy.hfilemanagermaster
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.hfilemanagermaster.R
import com.example.hfilemanagermaster.databinding.FragmentManagerBinding
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"
/**
* A simple [Fragment] subclass.
* Use the [ManagerFragment.newInstance] factory method to
* create an instance of this fragment.
*/
class ManagerFragment : Fragment() {
private lateinit var binding: FragmentManagerBinding
private var param1: String? = null
private var param2: String? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
param1 = it.getString(ARG_PARAM1)
param2 = it.getString(ARG_PARAM2)
}
}
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val view = inflater.inflate(R.layout.fragment_manager, container, false)
binding = FragmentManagerBinding.bind(view.rootView)
return view
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
binding.tvUse.text = "25%"
binding.tvFree.text = "75GB"
binding.cardView1.setOnClickListener { }
binding.cardView2.setOnClickListener { }
binding.cardView3.setOnClickListener { }
binding.ivFile.setOnClickListener { }
binding.ivWord.setOnClickListener { }
binding.ivExcel.setOnClickListener { }
binding.ivPdf.setOnClickListener { }
binding.ivPpt.setOnClickListener { }
}
companion object {
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment ManageFragment.
*/
// TODO: Rename and change types and number of parameters
@JvmStatic
fun newInstance(param1: String, param2: String) =
ManagerFragment().apply {
arguments = Bundle().apply {
putString(ARG_PARAM1, param1)
putString(ARG_PARAM2, param2)
}
}
}
}
\ No newline at end of file
...@@ -28,23 +28,14 @@ class OverviewActivity : AppCompatActivity() { ...@@ -28,23 +28,14 @@ class OverviewActivity : AppCompatActivity() {
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom) v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
insets insets
} }
binding.tvUse.text = "25%"
binding.tvFree.text = "75GB"
binding.ivManager.isSelected = true binding.ivManager.isSelected = true
binding.cardView1.setOnClickListener { }
binding.cardView2.setOnClickListener { }
binding.cardView3.setOnClickListener { }
binding.ivFile.setOnClickListener { }
binding.ivWord.setOnClickListener { }
binding.ivExcel.setOnClickListener { }
binding.ivPdf.setOnClickListener { }
binding.ivPpt.setOnClickListener { }
binding.ivTools.setOnClickListener { binding.ivTools.setOnClickListener {
val intent = Intent(this@OverviewActivity, ToolsActivity::class.java) // val intent = Intent(this@OverviewActivity, ToolsActivity::class.java)
startActivity(intent) // startActivity(intent)
window.statusBarColor = ContextCompat.getColor(this, R.color.white)
} }
} }
......
package com.zxhy.hfilemanagermaster
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.hfilemanagermaster.R
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"
/**
* A simple [Fragment] subclass.
* Use the [ToolsFragment.newInstance] factory method to
* create an instance of this fragment.
*/
class ToolsFragment : Fragment() {
// TODO: Rename and change types of parameters
private var param1: String? = null
private var param2: String? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
param1 = it.getString(ARG_PARAM1)
param2 = it.getString(ARG_PARAM2)
}
}
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_tools, container, false)
}
companion object {
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment ToolsFragment.
*/
// TODO: Rename and change types and number of parameters
@JvmStatic
fun newInstance(param1: String, param2: String) =
ToolsFragment().apply {
arguments = Bundle().apply {
putString(ARG_PARAM1, param1)
putString(ARG_PARAM2, param2)
}
}
}
}
\ No newline at end of file
...@@ -7,371 +7,14 @@ ...@@ -7,371 +7,14 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context="com.zxhy.hfilemanagermaster.OverviewActivity"> tools:context="com.zxhy.hfilemanagermaster.OverviewActivity">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.fragment.app.FragmentContainerView
android:id="@+id/cl_top" android:id="@+id/fragment_container_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="299dp" android:layout_height="0dp"
android:background="@mipmap/dda_88985" app:defaultNavHost="true"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintBottom_toTopOf="@id/iv_manager"
<TextView
android:id="@+id/tv_l"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="60dp"
android:text="Use storage"
android:textAllCaps="false"
android:textSize="15sp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:ignore="HardcodedText" /> app:navGraph="@navigation/home" />
<TextView
android:id="@+id/tv_use"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="#333333"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="@id/tv_l"
app:layout_constraintRight_toRightOf="@id/tv_l"
app:layout_constraintTop_toBottomOf="@+id/tv_l" />
<TextView
android:id="@+id/tv_r"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:layout_marginEnd="20dp"
android:text="Free Storage"
android:textAllCaps="false"
android:textSize="15sp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/tv_free"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="#333333"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="@id/tv_r"
app:layout_constraintRight_toRightOf="@id/tv_r"
app:layout_constraintTop_toBottomOf="@+id/tv_r" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/tv_tool"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:text="Tool"
android:textColor="#333333"
android:textSize="17sp"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@id/cl_top"
tools:ignore="HardcodedText" />
<androidx.cardview.widget.CardView
android:id="@+id/cardView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/cardView2"
app:layout_constraintTop_toBottomOf="@id/tv_tool">
<ImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginHorizontal="32dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="26dp"
android:importantForAccessibility="no"
android:src="@mipmap/ff_96532"
tools:ignore="RtlHardcoded" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="8dp"
android:text="Duplicate picture"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
app:layout_constraintLeft_toRightOf="@id/cardView1"
app:layout_constraintRight_toLeftOf="@id/cardView3"
app:layout_constraintTop_toBottomOf="@id/tv_tool">
<ImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginHorizontal="32dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="26dp"
android:importantForAccessibility="no"
android:src="@mipmap/dd_8989"
tools:ignore="RtlHardcoded" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="8dp"
android:text="Scan large files"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
app:layout_constraintLeft_toRightOf="@id/cardView2"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_tool">
<ImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginHorizontal="32dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="26dp"
android:importantForAccessibility="no"
android:src="@mipmap/rt_859"
tools:ignore="RtlHardcoded" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="8dp"
android:text="Scan empty files"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/tv_document"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:text="Document"
android:textAllCaps="false"
android:textSize="17sp"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardView1"
tools:ignore="HardcodedText" />
<androidx.cardview.widget.CardView
android:id="@+id/cardView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="12dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_document">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/ll_file"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:layout_marginStart="16dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_chainStyle="spread_inside"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/ll_word"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="All Files"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_file"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/tt_695"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_word"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:orientation="vertical"
app:layout_constraintLeft_toRightOf="@id/ll_file"
app:layout_constraintRight_toLeftOf="@id/ll_excel"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Word"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_word"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/io_002"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_excel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:orientation="vertical"
app:layout_constraintLeft_toRightOf="@id/ll_word"
app:layout_constraintRight_toLeftOf="@id/ll_pdf"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Excel"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_excel"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/as_85230"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_pdf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:orientation="vertical"
app:layout_constraintLeft_toRightOf="@id/ll_excel"
app:layout_constraintRight_toLeftOf="@id/ll_ppt"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="PDF"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_pdf"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/io_0012"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_ppt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:layout_marginEnd="16dp"
android:orientation="vertical"
app:layout_constraintLeft_toRightOf="@id/ll_pdf"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="PPT"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_ppt"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/io_002223"
tools:ignore="ContentDescription" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<ImageView <ImageView
android:id="@+id/iv_manager" android:id="@+id/iv_manager"
......
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.zxhy.hfilemanagermaster.ManagerFragment">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_top"
android:layout_width="match_parent"
android:layout_height="299dp"
android:background="@mipmap/dda_88985"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/tv_l"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="60dp"
android:text="Use storage"
android:textAllCaps="false"
android:textSize="15sp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/tv_use"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="#333333"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="@id/tv_l"
app:layout_constraintRight_toRightOf="@id/tv_l"
app:layout_constraintTop_toBottomOf="@+id/tv_l" />
<TextView
android:id="@+id/tv_r"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:layout_marginEnd="20dp"
android:text="Free Storage"
android:textAllCaps="false"
android:textSize="15sp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/tv_free"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="#333333"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="@id/tv_r"
app:layout_constraintRight_toRightOf="@id/tv_r"
app:layout_constraintTop_toBottomOf="@+id/tv_r" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/tv_tool"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:text="Tool"
android:textColor="#333333"
android:textSize="17sp"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@id/cl_top"
tools:ignore="HardcodedText" />
<androidx.cardview.widget.CardView
android:id="@+id/cardView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/cardView2"
app:layout_constraintTop_toBottomOf="@id/tv_tool">
<ImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginHorizontal="32dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="26dp"
android:importantForAccessibility="no"
android:src="@mipmap/ff_96532"
tools:ignore="RtlHardcoded" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="8dp"
android:text="Duplicate picture"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
app:layout_constraintLeft_toRightOf="@id/cardView1"
app:layout_constraintRight_toLeftOf="@id/cardView3"
app:layout_constraintTop_toBottomOf="@id/tv_tool">
<ImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginHorizontal="32dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="26dp"
android:importantForAccessibility="no"
android:src="@mipmap/dd_8989"
tools:ignore="RtlHardcoded" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="8dp"
android:text="Scan large files"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/cardView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
app:cardCornerRadius="8dp"
app:layout_constraintLeft_toRightOf="@id/cardView2"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_tool">
<ImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginHorizontal="32dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="26dp"
android:importantForAccessibility="no"
android:src="@mipmap/rt_859"
tools:ignore="RtlHardcoded" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="8dp"
android:text="Scan empty files"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/tv_document"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:text="Document"
android:textAllCaps="false"
android:textSize="17sp"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardView1"
tools:ignore="HardcodedText" />
<androidx.cardview.widget.CardView
android:id="@+id/cardView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="12dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_document">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/ll_file"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:layout_marginStart="16dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_chainStyle="spread_inside"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/ll_word"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="All Files"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_file"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/tt_695"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_word"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:orientation="vertical"
app:layout_constraintLeft_toRightOf="@id/ll_file"
app:layout_constraintRight_toLeftOf="@id/ll_excel"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Word"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_word"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/io_002"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_excel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:orientation="vertical"
app:layout_constraintLeft_toRightOf="@id/ll_word"
app:layout_constraintRight_toLeftOf="@id/ll_pdf"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Excel"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_excel"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/as_85230"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_pdf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:orientation="vertical"
app:layout_constraintLeft_toRightOf="@id/ll_excel"
app:layout_constraintRight_toLeftOf="@id/ll_ppt"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="PDF"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_pdf"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/io_0012"
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_ppt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="12dp"
android:layout_marginEnd="16dp"
android:orientation="vertical"
app:layout_constraintLeft_toRightOf="@id/ll_pdf"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="PPT"
android:textAllCaps="false"
android:textColor="#333333"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/iv_ppt"
android:layout_width="40dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:layout_marginTop="8dp"
android:src="@mipmap/io_002223"
tools:ignore="ContentDescription" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<FrameLayout 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"
tools:context="com.zxhy.hfilemanagermaster.ToolsFragment">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/nav">
</navigation>
\ No newline at end of file
<resources> <resources>
<string name="app_name">HFileManagerMaster</string> <string name="app_name">HFileManagerMaster</string>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources> </resources>
\ No newline at end of file
...@@ -9,6 +9,8 @@ appcompat = "1.6.1" ...@@ -9,6 +9,8 @@ appcompat = "1.6.1"
material = "1.10.0" material = "1.10.0"
activity = "1.8.0" activity = "1.8.0"
constraintlayout = "2.1.4" constraintlayout = "2.1.4"
navigationFragmentKtx = "2.7.7"
navigationUiKtx = "2.7.7"
[libraries] [libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
...@@ -19,6 +21,8 @@ androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version ...@@ -19,6 +21,8 @@ androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version
material = { group = "com.google.android.material", name = "material", version.ref = "material" } material = { group = "com.google.android.material", name = "material", version.ref = "material" }
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
androidx-navigation-fragment-ktx = { group = "androidx.navigation", name = "navigation-fragment-ktx", version.ref = "navigationFragmentKtx" }
androidx-navigation-ui-ktx = { group = "androidx.navigation", name = "navigation-ui-ktx", version.ref = "navigationUiKtx" }
[plugins] [plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" } androidApplication = { id = "com.android.application", version.ref = "agp" }
......
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