Skip to content
Permalink
Browse files

Move adapters to ui package

  • Loading branch information
zsmb13 committed Jan 7, 2020
1 parent 0746438 commit 03a41df92a087c98b34ecd75da2c16e2ab69e9c8
@@ -11,7 +11,6 @@ import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import com.bumptech.glide.Glide
import dev.marcosfarias.pokedex.R
import dev.marcosfarias.pokedex.adapter.ViewPagerAdapter
import dev.marcosfarias.pokedex.ui.dashboard.about.AboutFragment
import dev.marcosfarias.pokedex.ui.dashboard.evolution.EvolutionFragment
import dev.marcosfarias.pokedex.ui.dashboard.moves.MovesFragment
@@ -1,4 +1,4 @@
package dev.marcosfarias.pokedex.adapter
package dev.marcosfarias.pokedex.ui.dashboard

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
@@ -1,4 +1,4 @@
package dev.marcosfarias.pokedex.adapter
package dev.marcosfarias.pokedex.ui.generation

import android.content.Context
import android.view.LayoutInflater
@@ -4,13 +4,11 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.recyclerview.widget.GridLayoutManager
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import dev.marcosfarias.pokedex.R
import dev.marcosfarias.pokedex.adapter.GenerationAdapter
import dev.marcosfarias.pokedex.model.Generation
import kotlinx.android.synthetic.main.fragment_generation.view.*

@@ -4,17 +4,12 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.Window
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.navigation.findNavController
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.GridLayoutManager
import dev.marcosfarias.pokedex.App
import dev.marcosfarias.pokedex.R
import dev.marcosfarias.pokedex.adapter.MenuAdapter
import dev.marcosfarias.pokedex.adapter.NewsAdapter
import dev.marcosfarias.pokedex.model.Menu
import dev.marcosfarias.pokedex.model.News
import dev.marcosfarias.pokedex.utils.PokemonColorUtil
@@ -1,19 +1,15 @@
package dev.marcosfarias.pokedex.adapter
package dev.marcosfarias.pokedex.ui.home

import android.content.Context
import android.content.res.Resources
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.res.TypedArrayUtils.getString
import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import dev.marcosfarias.pokedex.R
import dev.marcosfarias.pokedex.model.Menu
import dev.marcosfarias.pokedex.model.Pokemon
import dev.marcosfarias.pokedex.utils.PokemonColorUtil
import kotlinx.android.synthetic.main.item_pokemon.view.*

@@ -1,19 +1,13 @@
package dev.marcosfarias.pokedex.adapter
package dev.marcosfarias.pokedex.ui.home

import android.content.Context
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import dev.marcosfarias.pokedex.R
import dev.marcosfarias.pokedex.model.News
import dev.marcosfarias.pokedex.model.Pokemon
import dev.marcosfarias.pokedex.utils.PokemonColorUtil
import kotlinx.android.synthetic.main.item_pokemon.view.*

class NewsAdapter(
private val list: List<News>,
@@ -10,7 +10,6 @@ import androidx.lifecycle.ViewModelProviders
import androidx.recyclerview.widget.GridLayoutManager
import com.leinardi.android.speeddial.SpeedDialView
import dev.marcosfarias.pokedex.R
import dev.marcosfarias.pokedex.adapter.PokemonAdapter
import dev.marcosfarias.pokedex.model.Pokemon
import dev.marcosfarias.pokedex.ui.generation.GenerationFragment
import dev.marcosfarias.pokedex.ui.search.SearchFragment
@@ -1,4 +1,4 @@
package dev.marcosfarias.pokedex.adapter
package dev.marcosfarias.pokedex.ui.pokedex

import android.content.Context
import android.graphics.PorterDuff

0 comments on commit 03a41df

Please sign in to comment.
You can’t perform that action at this time.