This file contains hidden or 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.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools"> | |
| <ImageView | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" |
This file contains hidden or 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
| binding.splashImage.animate() | |
| .setDuration(1000) | |
| .translationY(-450f) | |
| .alpha(0f) | |
| .setStartDelay(2000) | |
| .setListener(object : Animator.AnimatorListener{ | |
| override fun onAnimationStart(p0: Animator?) { | |
| } | |
| override fun onAnimationEnd(p0: Animator?) { |
This file contains hidden or 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
| class MainActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| val binding = ActivityMainBinding.inflate(layoutInflater) | |
| setContentView(binding.root) | |
| } | |
| override fun onBackPressed() { |
This file contains hidden or 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.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".ui.activities.MainActivity"> | |
| <fragment | |
| android:id="@+id/nav_host_fragment" |
This file contains hidden or 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
| class CharacterDetailsFragment : Fragment() { | |
| private var _binding: FragmentCharacterDetailsBinding? = null | |
| private val binding get() = _binding!! | |
| private var viewModel = CharacterDetailsViewModel() | |
| private var comicCollectionAdapter: ComicCollectionAdapter? = null | |
| private var seriesCollectionAdapter: SeriesCollectionAdapter? = null |
This file contains hidden or 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.constraintlayout.widget.ConstraintLayout | |
| xmlns:tools="http://schemas.android.com/tools" | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="240dp" | |
| android:layout_height="wrap_content" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:layout_marginStart="12dp" | |
| android:layout_marginEnd="12dp" | |
| android:layout_marginTop="12dp"> |
This file contains hidden or 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.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| xmlns:app="http://schemas.android.com/apk/res-auto"> | |
| <ImageView | |
| android:id="@+id/background" | |
| android:layout_width="match_parent" |
This file contains hidden or 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
| class HomeFragment : Fragment(){ | |
| private var _binding: FragmentHomeBinding? = null | |
| private val binding get() = _binding!! | |
| override fun onCreateView( | |
| inflater: LayoutInflater, | |
| container: ViewGroup?, | |
| savedInstanceState: Bundle? | |
| ): View? { |
NewerOlder