-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc351d8
commit 9988343
Showing
9 changed files
with
360 additions
and
62 deletions.
There are no files selected for viewing
60 changes: 8 additions & 52 deletions
60
...d/ARchive/app/src/main/java/com/droidblossom/archive/presentation/ui/home/HomeFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,16 @@ | ||
package com.droidblossom.archive.presentation.ui.home | ||
|
||
import android.os.Bundle | ||
import androidx.fragment.app.Fragment | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.fragment.app.viewModels | ||
import com.droidblossom.archive.R | ||
import com.droidblossom.archive.databinding.FragmentHomeBinding | ||
import com.droidblossom.archive.presentation.base.BaseFragment | ||
import dagger.hilt.android.AndroidEntryPoint | ||
|
||
// 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" | ||
@AndroidEntryPoint | ||
class HomeFragment : BaseFragment<HomeViewModelImpl, FragmentHomeBinding>(R.layout.fragment_home) { | ||
|
||
/** | ||
* A simple [Fragment] subclass. | ||
* Use the [HomeFragment.newInstance] factory method to | ||
* create an instance of this fragment. | ||
*/ | ||
class HomeFragment : Fragment() { | ||
// TODO: Rename and change types of parameters | ||
private var param1: String? = null | ||
private var param2: String? = null | ||
override val viewModel: HomeViewModelImpl by viewModels() | ||
|
||
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_home, 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 HomeFragment. | ||
*/ | ||
// TODO: Rename and change types and number of parameters | ||
@JvmStatic | ||
fun newInstance(param1: String, param2: String) = | ||
HomeFragment().apply { | ||
arguments = Bundle().apply { | ||
putString(ARG_PARAM1, param1) | ||
putString(ARG_PARAM2, param2) | ||
} | ||
} | ||
override fun observeData() { | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.../ARchive/app/src/main/java/com/droidblossom/archive/presentation/ui/home/HomeViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.droidblossom.archive.presentation.ui.home | ||
|
||
interface HomeViewModel { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...hive/app/src/main/java/com/droidblossom/archive/presentation/ui/home/HomeViewModelImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.droidblossom.archive.presentation.ui.home | ||
|
||
import com.droidblossom.archive.presentation.base.BaseViewModel | ||
import dagger.hilt.android.lifecycle.HiltViewModel | ||
import javax.inject.Inject | ||
|
||
@HiltViewModel | ||
class HomeViewModelImpl @Inject constructor( | ||
|
||
) : BaseViewModel(), HomeViewModel { | ||
|
||
|
||
} |
5 changes: 5 additions & 0 deletions
5
frontend/ARchive/app/src/main/res/drawable/corner_radius_18.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<corners android:radius="18dp"/> | ||
<solid android:color="@color/white"/> | ||
</shape> |
5 changes: 5 additions & 0 deletions
5
frontend/ARchive/app/src/main/res/drawable/corner_radius_22.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<corners android:radius="22dp"/> | ||
<solid android:color="@color/white"/> | ||
</shape> |
30 changes: 30 additions & 0 deletions
30
frontend/ARchive/app/src/main/res/drawable/ic_alarm_main_24.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M11.999,3.812C13.68,3.812 15.292,4.479 16.481,5.668C17.67,6.857 18.338,8.469 18.338,10.15V18.3H5.66V10.15C5.66,8.469 6.328,6.857 7.517,5.668C8.706,4.479 10.318,3.812 11.999,3.812Z" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="1.8" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#4263F7" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:pathData="M3.852,18.3H20.152" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="1.8" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#4263F7" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:pathData="M12,3.811V2" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="1.8" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#4263F7" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:pathData="M14.719,20C14.719,20.721 14.432,21.412 13.923,21.921C13.413,22.43 12.722,22.717 12.002,22.717C11.281,22.717 10.59,22.43 10.081,21.921C9.571,21.412 9.285,20.721 9.285,20" | ||
android:fillColor="#4263F7"/> | ||
</vector> |
33 changes: 33 additions & 0 deletions
33
frontend/ARchive/app/src/main/res/drawable/ic_alarm_on_main_24.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M20.5,3.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0" | ||
android:fillColor="#FF5C5C"/> | ||
<path | ||
android:pathData="M11.999,3.812C13.68,3.812 15.292,4.479 16.481,5.668C17.67,6.857 18.338,8.469 18.338,10.15V18.3H5.66V10.15C5.66,8.469 6.328,6.857 7.517,5.668C8.706,4.479 10.318,3.812 11.999,3.812Z" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="1.8" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#4263F7" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:pathData="M3.852,18.3H20.152" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="1.8" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#4263F7" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:pathData="M12,3.811V2" | ||
android:strokeLineJoin="round" | ||
android:strokeWidth="1.8" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#4263F7" | ||
android:strokeLineCap="round"/> | ||
<path | ||
android:pathData="M14.719,20C14.719,20.721 14.432,21.412 13.923,21.921C13.413,22.43 12.722,22.717 12.002,22.717C11.281,22.717 10.59,22.43 10.081,21.921C9.571,21.412 9.285,20.721 9.285,20" | ||
android:fillColor="#4263F7"/> | ||
</vector> |
Oops, something went wrong.