Add UI skeleton for the search feature

This CL adds an UI skeleton of the search feature including:
- The search navigation icon in the NiaTopAppBar
- The text field to enter the search query
- Almost empty ViewModel

Bug: 216019540
Change-Id: Ic2355a7634e5c5c60f72276741175d9e637db5eb
search_screen
Takeshi Hagikura 2 years ago
parent d36fe8df59
commit 86fe3b2152

@ -29,6 +29,7 @@ import androidx.navigation.NavController
import androidx.navigation.NavDestination
import androidx.navigation.NavGraph.Companion.findStartDestination
import androidx.navigation.NavHostController
import androidx.navigation.NavOptionsBuilder
import androidx.navigation.compose.currentBackStackEntryAsState
import androidx.navigation.compose.rememberNavController
import androidx.navigation.navOptions

@ -21,7 +21,8 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class SearchViewModel @Inject constructor() : ViewModel() {
class SearchViewModel @Inject constructor(
) : ViewModel() {
fun onSearchQueryChanged(searchQuery: String) {
// TODO: Pass it to UseCase

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<<<<<<< HEAD
Copyright 2023 The Android Open Source Project
=======
Copyright 2022 The Android Open Source Project
>>>>>>> b23ba8b2 (Add UI skeleton for the search feature)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Loading…
Cancel
Save