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
package br.com.samuelnunes.valorantpassbattle.ui.view.viewsCustom | |
import android.content.Context | |
import android.graphics.Bitmap | |
import android.graphics.Canvas | |
import android.graphics.Rect | |
import android.renderscript.* | |
import android.util.AttributeSet | |
import android.util.TypedValue |
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
@HiltAndroidApp | |
class RickAndMortyApp : Application() { | |
override fun onCreate() { | |
super.onCreate() | |
if (BuildConfig.DEBUG) { | |
Timber.plant(Timber.DebugTree()) | |
} | |
} | |
} |
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
package br.com.samuelnunes.rickandmortyapp.di | |
import dagger.Module | |
import dagger.hilt.InstallIn | |
import dagger.hilt.components.SingletonComponent | |
/** | |
* @author Samuel da Costa Araujo Nunes | |
* Created 30/07/2021 at 10:35 | |
*/ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.fragment.app.FragmentContainerView 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:id="@+id/nav_host_fragment" | |
android:name="androidx.navigation.fragment.NavHostFragment" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/colorBackground" | |
app:defaultNavHost="true" |
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
package br.com.samuelnunes.rickandmortyapp.ui.charactersFragment | |
import android.os.Bundle | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.fragment.app.Fragment | |
import androidx.fragment.app.viewModels | |
import br.com.samuelnunes.rickandmortyapp.databinding.CharactersFragmentBinding | |
import dagger.hilt.android.AndroidEntryPoint |
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
package br.com.samuelnunes.rickandmortyapp.ui.charactersFragment | |
import androidx.lifecycle.ViewModel | |
import dagger.hilt.android.lifecycle.HiltViewModel | |
import javax.inject.Inject | |
@HiltViewModel | |
class CharactersViewModel @Inject constructor() : ViewModel() |
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
package br.com.samuelnunes.rickandmortyapp.ui | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import android.view.Menu | |
import androidx.activity.viewModels | |
import androidx.appcompat.widget.SearchView | |
import androidx.navigation.NavController | |
import androidx.navigation.fragment.NavHostFragment | |
import androidx.navigation.ui.AppBarConfiguration |
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
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.recyclerview.widget.RecyclerView 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:id="@+id/characters_rv" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:nestedScrollingEnabled="false" | |
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" | |
app:spanCount="1" |
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
package br.com.samuelnunes.rickandmortyapp.data.entities | |
data class Character( | |
val id: Int, | |
val name: String, | |
val status: String, | |
val species: String, | |
val type: String, | |
val gender: String, | |
val image: String |
OlderNewer