commit
f2e7e3dd02
@ -3,8 +3,20 @@
|
|||||||
<component name="DesignSurface">
|
<component name="DesignSurface">
|
||||||
<option name="filePathToZoomLevelMap">
|
<option name="filePathToZoomLevelMap">
|
||||||
<map>
|
<map>
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable-v24/ic_launcher_foreground.xml" value="0.174" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable/ic_download.xml" value="0.1935" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable/ic_folder.xml" value="0.1935" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable/ic_folderupdate.xml" value="0.2015" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable/ic_gear.xml" value="0.1935" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable/ic_gearsimplified.xml" value="0.1935" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable/ic_home_black_24dp.xml" value="0.178" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable/ic_launcher_background.xml" value="0.174" />
|
||||||
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/layout/activity_main.xml" value="0.33" />
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/layout/activity_main.xml" value="0.33" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/layout/fragment_completed.xml" value="0.1" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/layout/fragment_compressing.xml" value="0.1" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/layout/fragment_dashboard.xml" value="0.13360507246376813" />
|
||||||
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/layout/fragment_home.xml" value="0.1" />
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/layout/fragment_home.xml" value="0.1" />
|
||||||
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/layout/fragment_settings.xml" value="0.18342391304347827" />
|
||||||
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/menu/bottom_nav_menu.xml" value="0.30648148148148147" />
|
<entry key="..\:/Users/avera/AndroidStudioProjects/MyApplication3/app/src/main/res/menu/bottom_nav_menu.xml" value="0.30648148148148147" />
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
|
6
SVG/Download.svg
Normal file
6
SVG/Download.svg
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 1000 1000"
|
||||||
|
enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<path d="M924.3,700.4v222.3c0,37.3-30.2,67.4-67.4,67.4H143c-37.2,0-67.4-30.1-67.4-67.4V700.4c0-37.2,30.2-67.4,67.4-67.4c37.2,0,67.4,30.2,67.4,67.4v154.9h579.2V700.4c0-37.2,30.2-67.4,67.4-67.4C894.2,633,924.3,663.2,924.3,700.4z M452.4,758.1c13.2,13.2,30.4,19.7,47.6,19.7c17.3,0,34.5-6.6,47.7-19.7l202-202c26.4-26.3,26.4-68.9,0-95.2c-26.3-26.3-69-26.3-95.2,0l-87,87.1V77.4c0-37.2-30.1-67.4-67.4-67.4c-37.2,0-67.4,30.2-67.4,67.4v470.6l-87.1-87.1c-26.3-26.3-69-26.3-95.2,0c-26.3,26.3-26.3,69,0,95.2L452.4,758.1z" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 686 B |
12
SVG/Folder.svg
Normal file
12
SVG/Folder.svg
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"
|
||||||
|
stroke-miterlimit="10" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<clipPath id="p.0">
|
||||||
|
<path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" />
|
||||||
|
</clipPath>
|
||||||
|
<g clip-path="url(#p.0)">
|
||||||
|
<path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd" />
|
||||||
|
<path fill="#000000" d="m128.4252 181.58109l0 0c0 -23.300034 18.888412 -42.188446 42.188446 -42.188446l618.7727 0c11.189087 0 21.91986 4.4448395 29.831726 12.356705c7.911865 7.9118805 12.3567505 18.64267 12.3567505 29.831741l0 390.23727c0 23.300049 -18.888428 42.188477 -42.188477 42.188477l-618.7727 0c-23.300034 0 -42.188446 -18.888428 -42.188446 -42.188477z" fill-rule="evenodd" />
|
||||||
|
<path fill="#000000" d="m128.4252 142.56602l0 0c0 -20.199211 16.37468 -36.5739 36.5739 -36.5739l128.42702 0l0 0c9.699982 0 19.002686 3.8533096 25.861633 10.712242c6.8589478 6.85894 10.71225 16.16166 10.71225 25.861656l0 44.615982c0 20.199203 -16.374695 36.5739 -36.573883 36.5739l-128.42702 0c-20.199219 0 -36.5739 -16.374695 -36.5739 -36.5739z" fill-rule="evenodd" />
|
||||||
|
<path fill="#000000" d="m195.0 105.99213l122.349396 0l33.650604 33.65059l0 85.87697l-156.0 0z" fill-rule="evenodd" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
21
SVG/FolderUpdate.svg
Normal file
21
SVG/FolderUpdate.svg
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg version="1.1" viewBox="0 0 999.99995 999.99995" fill="none" stroke="none" stroke-linecap="square"
|
||||||
|
stroke-miterlimit="10" id="svg15" width="1000" height="1000" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs19" />
|
||||||
|
<clipPath
|
||||||
|
id="p.0">
|
||||||
|
<path
|
||||||
|
d="M 0,0 H 960 V 720 H 0 Z"
|
||||||
|
id="path2" />
|
||||||
|
</clipPath>
|
||||||
|
<g
|
||||||
|
clip-path="url(#p.0)"
|
||||||
|
id="g13"
|
||||||
|
transform="translate(29.590124,125.75803)">
|
||||||
|
<path
|
||||||
|
id="path7"
|
||||||
|
d="m 162.1582,70 v 0.191406 c -18.86704,1.943149 -33.73242,22.967536 -33.73242,48.673824 v 59.61133 c 0,0.60957 0.0479,1.20253 0.0644,1.80664 -0.0133,0.43516 -0.0644,0.86045 -0.0644,1.29883 v 390.23633 c 0,23.30003 18.88749,42.18945 42.1875,42.18945 h 618.77344 c 23.30002,0 42.1875,-18.88942 42.1875,-42.18945 V 181.58203 c 0,-11.18906 -4.44361,-21.92016 -12.35547,-29.83203 -7.91186,-7.91186 -18.64296,-12.35742 -29.83203,-12.35742 H 456.625 L 399.42578,70 h -106 H 165 Z"
|
||||||
|
style="fill:#000000;fill-opacity:1" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.0 KiB |
6
SVG/Gear.svg
Normal file
6
SVG/Gear.svg
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 1000 1000"
|
||||||
|
enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<path d="M931,399h-38.8c-31.7,0-58.2-27.3-58.2-59.8c0-16.4,6.9-31.2,19.2-42.2l25-24.5c24.8-24.5,24.8-64.6,0-89.2l-57-56.5c-11.2-11.2-27.8-17.9-44.7-17.9s-33.2,6.6-44.7,17.9l-24,24c-11.5,12.8-26.8,19.7-43.4,19.7c-32.7,0-60-26.6-60-58V73.5c0-34.5-27.8-64.1-62.6-64.1H464c-34.7,0-62.3,29.4-62.3,64.1v38.8c0,31.4-27.3,58-60,58c-16.3,0-31.4-6.9-42.4-18.9l-24.8-24.5c-11.2-11.5-27.8-17.9-44.7-17.9c-16.9,0-33.2,6.6-44.7,17.9l-57.5,56.2c-24.5,24.5-24.5,64.6,0,88.9l24,24c12.8,11.5,19.9,26.8,19.9,43.2c0,32.7-26.6,59.8-58.2,59.8H74.4C39.4,399,10,426.3,10,461v38.8v38.8c0,34.5,29.4,62.1,64.4,62.1h38.8c31.7,0,58.2,27.3,58.2,59.8c0,16.3-7.2,31.7-19.9,43.2l-24,23.8c-24.5,24.5-24.5,64.6,0,88.9l57,56.7c11.2,11.5,27.8,17.9,44.7,17.9c16.9,0,33.2-6.6,44.7-17.9l24.8-24.5c10.7-12,26.1-18.9,42.4-18.9c32.7,0,60,26.6,60,58v38.8c0,34.5,27.6,64.1,62.6,64.1h77.7c34.7,0,62.3-29.4,62.3-64.1v-38.8c0-31.4,27.3-58,60-58c16.3,0,31.7,7.2,43.4,19.7l24,24c11.5,11.2,27.8,17.9,44.7,17.9s33.2-6.6,44.7-17.9l57-56.7c24.5-24.5,24.5-64.6,0-89.2l-25-24.5c-12.3-11-19.2-26.1-19.2-42.2c0-32.7,26.6-59.8,58.2-59.8h38.8c34.7,0,59.5-27.3,59.5-62.1v-39.1V461C990.5,426.3,965.7,399,931,399z M706.9,499.9L706.9,499.9c0,112.7-91.2,204.4-204.4,204.4c-113.2,0-204.4-91.7-204.4-204.4l0,0l0,0c0-112.7,91.2-204.4,204.4-204.4C615.7,295.5,706.9,387.2,706.9,499.9L706.9,499.9z" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
9
SVG/GearSimplified.svg
Normal file
9
SVG/GearSimplified.svg
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg version="1.1" x="0px" y="0px" viewBox="0 0 1000000 1000000" enable-background="new 0 0 1000 1000"
|
||||||
|
xml:space="preserve" id="svg6" width="1000000" height="1000000" xmlns="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs10" />
|
||||||
|
|
||||||
|
<path
|
||||||
|
id="path1428"
|
||||||
|
style="display:inline;opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.88976;stroke-linecap:round;stroke-linejoin:round"
|
||||||
|
d="M 707.93381,501.17743 A 205.10233,205.10233 0 0 1 502.83148,706.27975 205.10233,205.10233 0 0 1 297.72916,501.17743 205.10233,205.10233 0 0 1 502.83148,296.0751 205.10233,205.10233 0 0 1 707.93381,501.17743 Z M 165.3407,634.12713 c 47.50592,84.21304 -132.586975,73.32966 -14.05943,204.27528 118.52755,130.94562 127.0091,-41.00385 211.8513,-7.58208 84.8422,33.42177 -29.28154,152.91638 137.4246,156.17504 166.70614,3.25866 57.07257,-116.17991 137.90649,-153.3172 80.83392,-37.13729 102.78765,132.91831 215.02663,7.44323 C 965.72927,715.64632 796.86025,714.30127 841.08491,631.88397 885.30957,549.46667 992.62262,666.91878 989.11332,497.90588 985.60402,328.89298 884.93856,448.28879 841.08491,363.8912 797.23126,279.49361 967.38332,285.091 855.14434,159.61592 742.90536,34.140841 720.95163,204.19644 640.11771,167.05915 559.28379,129.92186 667.26187,5.5203127 499.64342,9.3645941 332.02497,13.208876 447.97477,132.99506 363.13257,166.41683 278.29037,199.8386 270.54996,37.08129 151.28127,158.83475 32.012578,280.58821 207.5766,277.396 165.3407,363.11003 123.1048,448.82406 13.764982,329.17807 10.686947,496.17443 7.6089117,663.17078 117.83478,549.91409 165.3407,634.12713 Z" /></svg>
|
After Width: | Height: | Size: 1.6 KiB |
@ -25,7 +25,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
// Passing each menu ID as a set of Ids because each
|
// Passing each menu ID as a set of Ids because each
|
||||||
// menu should be considered as top level destinations.
|
// menu should be considered as top level destinations.
|
||||||
val appBarConfiguration = AppBarConfiguration(setOf(
|
val appBarConfiguration = AppBarConfiguration(setOf(
|
||||||
R.id.navigation_home, R.id.navigation_dashboard, R.id.navigation_notifications))
|
R.id.navigation_compressing, R.id.navigation_completed,R.id.navigation_settings))
|
||||||
setupActionBarWithNavController(navController, appBarConfiguration)
|
setupActionBarWithNavController(navController, appBarConfiguration)
|
||||||
navView.setupWithNavController(navController)
|
navView.setupWithNavController(navController)
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.example.myapplication.ui.dashboard
|
package com.example.myapplication.ui.completed
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -7,11 +7,11 @@ import android.view.ViewGroup
|
|||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
import com.example.myapplication.databinding.FragmentDashboardBinding
|
import com.example.myapplication.databinding.FragmentCompletedBinding
|
||||||
|
|
||||||
class DashboardFragment : Fragment() {
|
class CompletedFragment : Fragment() {
|
||||||
|
|
||||||
private var _binding: FragmentDashboardBinding? = null
|
private var _binding: FragmentCompletedBinding? = null
|
||||||
|
|
||||||
// This property is only valid between onCreateView and
|
// This property is only valid between onCreateView and
|
||||||
// onDestroyView.
|
// onDestroyView.
|
||||||
@ -23,12 +23,12 @@ class DashboardFragment : Fragment() {
|
|||||||
savedInstanceState: Bundle?
|
savedInstanceState: Bundle?
|
||||||
): View {
|
): View {
|
||||||
val dashboardViewModel =
|
val dashboardViewModel =
|
||||||
ViewModelProvider(this).get(DashboardViewModel::class.java)
|
ViewModelProvider(this).get(CompletedViewModel::class.java)
|
||||||
|
|
||||||
_binding = FragmentDashboardBinding.inflate(inflater, container, false)
|
_binding = FragmentCompletedBinding.inflate(inflater, container, false)
|
||||||
val root: View = binding.root
|
val root: View = binding.root
|
||||||
|
|
||||||
val textView: TextView = binding.textDashboard
|
val textView: TextView = binding.textCompleted
|
||||||
dashboardViewModel.text.observe(viewLifecycleOwner) {
|
dashboardViewModel.text.observe(viewLifecycleOwner) {
|
||||||
textView.text = it
|
textView.text = it
|
||||||
}
|
}
|
@ -1,13 +1,13 @@
|
|||||||
package com.example.myapplication.ui.dashboard
|
package com.example.myapplication.ui.completed
|
||||||
|
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
|
|
||||||
class DashboardViewModel : ViewModel() {
|
class CompletedViewModel : ViewModel() {
|
||||||
|
|
||||||
private val _text = MutableLiveData<String>().apply {
|
private val _text = MutableLiveData<String>().apply {
|
||||||
value = "This is dashboard Fragment"
|
value = "This is completed Fragment"
|
||||||
}
|
}
|
||||||
val text: LiveData<String> = _text
|
val text: LiveData<String> = _text
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
package com.example.myapplication.ui.notifications
|
package com.example.myapplication.ui.compressing
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -7,11 +7,11 @@ import android.view.ViewGroup
|
|||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
import com.example.myapplication.databinding.FragmentNotificationsBinding
|
import com.example.myapplication.databinding.FragmentCompressingBinding
|
||||||
|
|
||||||
class NotificationsFragment : Fragment() {
|
class CompressingFragment : Fragment() {
|
||||||
|
|
||||||
private var _binding: FragmentNotificationsBinding? = null
|
private var _binding: FragmentCompressingBinding? = null
|
||||||
|
|
||||||
// This property is only valid between onCreateView and
|
// This property is only valid between onCreateView and
|
||||||
// onDestroyView.
|
// onDestroyView.
|
||||||
@ -22,14 +22,14 @@ class NotificationsFragment : Fragment() {
|
|||||||
container: ViewGroup?,
|
container: ViewGroup?,
|
||||||
savedInstanceState: Bundle?
|
savedInstanceState: Bundle?
|
||||||
): View {
|
): View {
|
||||||
val notificationsViewModel =
|
val homeViewModel =
|
||||||
ViewModelProvider(this).get(NotificationsViewModel::class.java)
|
ViewModelProvider(this).get(CompressingViewModel::class.java)
|
||||||
|
|
||||||
_binding = FragmentNotificationsBinding.inflate(inflater, container, false)
|
_binding = FragmentCompressingBinding.inflate(inflater, container, false)
|
||||||
val root: View = binding.root
|
val root: View = binding.root
|
||||||
|
|
||||||
val textView: TextView = binding.textNotifications
|
val textView: TextView = binding.textCompressing
|
||||||
notificationsViewModel.text.observe(viewLifecycleOwner) {
|
homeViewModel.text.observe(viewLifecycleOwner) {
|
||||||
textView.text = it
|
textView.text = it
|
||||||
}
|
}
|
||||||
return root
|
return root
|
@ -1,13 +1,13 @@
|
|||||||
package com.example.myapplication.ui.notifications
|
package com.example.myapplication.ui.compressing
|
||||||
|
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
|
|
||||||
class NotificationsViewModel : ViewModel() {
|
class CompressingViewModel : ViewModel() {
|
||||||
|
|
||||||
private val _text = MutableLiveData<String>().apply {
|
private val _text = MutableLiveData<String>().apply {
|
||||||
value = "This is notifications Fragment"
|
value = "This is compressing Fragment"
|
||||||
}
|
}
|
||||||
val text: LiveData<String> = _text
|
val text: LiveData<String> = _text
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
package com.example.myapplication.ui.home
|
package com.example.myapplication.ui.settings
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
@ -7,11 +7,12 @@ import android.view.ViewGroup
|
|||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
import com.example.myapplication.databinding.FragmentHomeBinding
|
import com.example.myapplication.databinding.FragmentSettingsBinding
|
||||||
|
|
||||||
class HomeFragment : Fragment() {
|
|
||||||
|
|
||||||
private var _binding: FragmentHomeBinding? = null
|
class SettingsFragment : Fragment() {
|
||||||
|
|
||||||
|
private var _binding: FragmentSettingsBinding? = null
|
||||||
|
|
||||||
// This property is only valid between onCreateView and
|
// This property is only valid between onCreateView and
|
||||||
// onDestroyView.
|
// onDestroyView.
|
||||||
@ -23,12 +24,12 @@ class HomeFragment : Fragment() {
|
|||||||
savedInstanceState: Bundle?
|
savedInstanceState: Bundle?
|
||||||
): View {
|
): View {
|
||||||
val homeViewModel =
|
val homeViewModel =
|
||||||
ViewModelProvider(this).get(HomeViewModel::class.java)
|
ViewModelProvider(this).get(SettingsViewModel::class.java)
|
||||||
|
|
||||||
_binding = FragmentHomeBinding.inflate(inflater, container, false)
|
_binding = FragmentSettingsBinding.inflate(inflater, container, false)
|
||||||
val root: View = binding.root
|
val root: View = binding.root
|
||||||
|
|
||||||
val textView: TextView = binding.textHome
|
val textView: TextView = binding.textSettings
|
||||||
homeViewModel.text.observe(viewLifecycleOwner) {
|
homeViewModel.text.observe(viewLifecycleOwner) {
|
||||||
textView.text = it
|
textView.text = it
|
||||||
}
|
}
|
@ -1,13 +1,13 @@
|
|||||||
package com.example.myapplication.ui.home
|
package com.example.myapplication.ui.settings
|
||||||
|
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
|
|
||||||
class HomeViewModel : ViewModel() {
|
class SettingsViewModel : ViewModel() {
|
||||||
|
|
||||||
private val _text = MutableLiveData<String>().apply {
|
private val _text = MutableLiveData<String>().apply {
|
||||||
value = "This is home Fragment"
|
value = "This is settings Fragment"
|
||||||
}
|
}
|
||||||
val text: LiveData<String> = _text
|
val text: LiveData<String> = _text
|
||||||
}
|
}
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
android:pathData="M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM13,3v6h8L21,3h-8z" />
|
|
||||||
</vector>
|
|
9
app/src/main/res/drawable/ic_download.xml
Normal file
9
app/src/main/res/drawable/ic_download.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="1000"
|
||||||
|
android:viewportHeight="1000">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M924.3,700.4v222.3c0,37.3 -30.2,67.4 -67.4,67.4H143c-37.2,0 -67.4,-30.1 -67.4,-67.4V700.4c0,-37.2 30.2,-67.4 67.4,-67.4c37.2,0 67.4,30.2 67.4,67.4v154.9h579.2V700.4c0,-37.2 30.2,-67.4 67.4,-67.4C894.2,633 924.3,663.2 924.3,700.4zM452.4,758.1c13.2,13.2 30.4,19.7 47.6,19.7c17.3,0 34.5,-6.6 47.7,-19.7l202,-202c26.4,-26.3 26.4,-68.9 0,-95.2c-26.3,-26.3 -69,-26.3 -95.2,0l-87,87.1V77.4c0,-37.2 -30.1,-67.4 -67.4,-67.4c-37.2,0 -67.4,30.2 -67.4,67.4v470.6l-87.1,-87.1c-26.3,-26.3 -69,-26.3 -95.2,0c-26.3,26.3 -26.3,69 0,95.2L452.4,758.1z"/>
|
||||||
|
</vector>
|
15
app/src/main/res/drawable/ic_folderupdate.xml
Normal file
15
app/src/main/res/drawable/ic_folderupdate.xml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="18dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="720">
|
||||||
|
<group>
|
||||||
|
<clip-path
|
||||||
|
android:pathData="m0,0l960,0l0,720l-960,0l0,-720z"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M162.16,70L162.16,70.19C143.29,72.13 128.43,93.16 128.43,118.87L128.43,178.48C128.43,179.09 128.47,179.68 128.49,180.28C128.48,180.72 128.43,181.14 128.43,181.58L128.43,571.82C128.43,595.12 147.31,614.01 170.61,614.01L789.39,614.01C812.69,614.01 831.57,595.12 831.57,571.82L831.57,181.58C831.57,170.39 827.13,159.66 819.22,151.75C811.31,143.84 800.58,139.39 789.39,139.39L456.63,139.39L399.43,70L293.43,70L165,70L162.16,70z"
|
||||||
|
android:fillColor="#000000"
|
||||||
|
android:strokeColor="#00000000"
|
||||||
|
android:strokeLineCap="square"/>
|
||||||
|
</group>
|
||||||
|
</vector>
|
7
app/src/main/res/drawable/ic_gearsimplified.xml
Normal file
7
app/src/main/res/drawable/ic_gearsimplified.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<vector android:height="24dp" android:viewportHeight="1000"
|
||||||
|
android:viewportWidth="1000" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="#000000"
|
||||||
|
android:pathData="M707.9,501.2A205.1,205.1 0,0 1,502.8 706.3,205.1 205.1,0 0,1 297.7,501.2 205.1,205.1 0,0 1,502.8 296.1,205.1 205.1,0 0,1 707.9,501.2ZM165.3,634.1c47.5,84.2 -132.6,73.3 -14.1,204.3 118.5,130.9 127,-41 211.9,-7.6 84.8,33.4 -29.3,152.9 137.4,156.2 166.7,3.3 57.1,-116.2 137.9,-153.3 80.8,-37.1 102.8,132.9 215,7.4C965.7,715.6 796.9,714.3 841.1,631.9 885.3,549.5 992.6,666.9 989.1,497.9 985.6,328.9 884.9,448.3 841.1,363.9 797.2,279.5 967.4,285.1 855.1,159.6 742.9,34.1 721,204.2 640.1,167.1 559.3,129.9 667.3,5.5 499.6,9.4 332,13.2 448,133 363.1,166.4 278.3,199.8 270.5,37.1 151.3,158.8 32,280.6 207.6,277.4 165.3,363.1 123.1,448.8 13.8,329.2 10.7,496.2 7.6,663.2 117.8,549.9 165.3,634.1Z"
|
||||||
|
android:strokeColor="#000000" android:strokeLineCap="round"
|
||||||
|
android:strokeLineJoin="round" android:strokeWidth="1.88976"/>
|
||||||
|
</vector>
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />
|
|
||||||
</vector>
|
|
@ -1,9 +0,0 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:viewportWidth="24.0"
|
|
||||||
android:viewportHeight="24.0">
|
|
||||||
<path
|
|
||||||
android:fillColor="#FF000000"
|
|
||||||
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z" />
|
|
||||||
</vector>
|
|
@ -4,10 +4,10 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context=".ui.dashboard.DashboardFragment">
|
tools:context=".ui.completed.CompletedFragment">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/text_dashboard"
|
android:id="@+id/text_completed"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
@ -4,10 +4,10 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context=".ui.notifications.NotificationsFragment">
|
tools:context=".ui.settings.SettingsFragment">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/text_notifications"
|
android:id="@+id/text_compressing"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
@ -4,10 +4,10 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context=".ui.home.HomeFragment">
|
tools:context=".ui.settings.SettingsFragment">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/text_home"
|
android:id="@+id/text_settings"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
@ -2,18 +2,20 @@
|
|||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/navigation_home"
|
android:id="@+id/navigation_compressing"
|
||||||
android:icon="@drawable/ic_home_black_24dp"
|
android:icon="@drawable/ic_download"
|
||||||
android:title="@string/title_home" />
|
android:title="@string/title_compressing" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/navigation_dashboard"
|
android:id="@+id/navigation_completed"
|
||||||
android:icon="@drawable/ic_dashboard_black_24dp"
|
android:icon="@drawable/ic_folderupdate"
|
||||||
android:title="@string/title_dashboard" />
|
android:title="@string/title_completed" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/navigation_notifications"
|
android:id="@+id/navigation_settings"
|
||||||
android:icon="@drawable/ic_notifications_black_24dp"
|
android:icon="@drawable/ic_gearsimplified"
|
||||||
android:title="@string/title_notifications" />
|
android:title="@string/title_settings" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</menu>
|
</menu>
|
@ -3,23 +3,25 @@
|
|||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/mobile_navigation"
|
android:id="@+id/mobile_navigation"
|
||||||
app:startDestination="@+id/navigation_home">
|
app:startDestination="@+id/navigation_completed">
|
||||||
|
|
||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
android:id="@+id/navigation_home"
|
android:id="@+id/navigation_completed"
|
||||||
android:name="com.example.myapplication.ui.home.HomeFragment"
|
android:name="com.example.myapplication.ui.completed.CompletedFragment"
|
||||||
android:label="@string/title_home"
|
android:label="@string/title_completed"
|
||||||
tools:layout="@layout/fragment_home" />
|
tools:layout="@layout/fragment_completed" />
|
||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
android:id="@+id/navigation_dashboard"
|
android:id="@+id/navigation_compressing"
|
||||||
android:name="com.example.myapplication.ui.dashboard.DashboardFragment"
|
android:name="com.example.myapplication.ui.compressing.CompressingFragment"
|
||||||
android:label="@string/title_dashboard"
|
android:label="@string/title_compressing"
|
||||||
tools:layout="@layout/fragment_dashboard" />
|
tools:layout="@layout/fragment_compressing" />
|
||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
android:id="@+id/navigation_notifications"
|
android:id="@+id/navigation_settings"
|
||||||
android:name="com.example.myapplication.ui.notifications.NotificationsFragment"
|
android:name="com.example.myapplication.ui.settings.SettingsFragment"
|
||||||
android:label="@string/title_notifications"
|
android:label="@string/title_settings"
|
||||||
tools:layout="@layout/fragment_notifications" />
|
tools:layout="@layout/fragment_settings" />
|
||||||
|
|
||||||
</navigation>
|
</navigation>
|
@ -1,6 +1,6 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">My Application</string>
|
<string name="app_name">My Application</string>
|
||||||
<string name="title_files">Files</string>
|
<string name="title_compressing">Compressing</string>
|
||||||
<string name="title_youtube">Dashboard</string>
|
<string name="title_completed">Completed</string>
|
||||||
<string name="title_notifications">Notifications</string>
|
<string name="title_settings">Settings</string>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue
Block a user