Add AndroidTriviaNavigation, AndroidTriviaFragment, AndroidTrivia solution apps
50
AndroidTrivia/README.md
Normal file
@ -0,0 +1,50 @@
|
||||
AndroidTrivia - final solution code
|
||||
===================================
|
||||
|
||||
This app is the solution code for Android Kotlin Fundamentals codelab 3.3:
|
||||
Invoke an external activity.
|
||||
|
||||
Introduction
|
||||
------------
|
||||
|
||||
The AndroidTrivia app asks the user trivia questions about Android development.
|
||||
It makes use of the navigation component within Jetpack to move the user between
|
||||
screens. Each screen is implemented as a fragment.
|
||||
|
||||
The app navigates using buttons, the app bar, and a navigation drawer. Because
|
||||
students haven't yet learned about saving data or the Android lifecycle, the app
|
||||
tries to eliminate bugs caused by configuration changes.
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
|
||||
You need to know:
|
||||
- The fundamentals of Kotlin.
|
||||
- How to create basic Android apps in Kotlin.
|
||||
- How to open, build, and run apps with Android Studio.
|
||||
- How to work with layouts.
|
||||
|
||||
Getting started
|
||||
---------------
|
||||
|
||||
1. Download and run the app.
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
Copyright 2019 Google, Inc.
|
||||
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
license agreements. See the NOTICE file distributed with this work for
|
||||
additional information regarding copyright ownership. The ASF licenses this
|
||||
file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
use this file except in compliance with the License. You may obtain a copy of
|
||||
the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
License for the specific language governing permissions and limitations under
|
||||
the License.
|
||||
1
AndroidTrivia/app/.gitignore
vendored
Executable file
@ -0,0 +1 @@
|
||||
/build
|
||||
63
AndroidTrivia/app/build.gradle
Executable file
@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'androidx.navigation.safeargs'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
dataBinding {
|
||||
enabled = true
|
||||
}
|
||||
defaultConfig {
|
||||
applicationId 'com.example.android.navigation'
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
productFlavors {
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
implementation "androidx.appcompat:appcompat:$supportlibVersion"
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha1'
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0-beta01'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
|
||||
implementation "com.google.android.material:material:1.0.0-rc01"
|
||||
implementation"android.arch.navigation:navigation-fragment-ktx:$navigationVersion"
|
||||
implementation "android.arch.navigation:navigation-ui-ktx:$navigationVersion"
|
||||
implementation "com.google.android.material:material:$supportlibVersion"
|
||||
}
|
||||
21
AndroidTrivia/app/proguard-rules.pro
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
38
AndroidTrivia/app/src/main/AndroidManifest.xml
Executable file
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.android.navigation">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
|
||||
class AboutFragment : Fragment() {
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_about, container, false)
|
||||
}
|
||||
}
|
||||
134
AndroidTrivia/app/src/main/java/com/example/android/navigation/GameFragment.kt
Executable file
@ -0,0 +1,134 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.navigation.findNavController
|
||||
import com.example.android.navigation.databinding.FragmentGameBinding
|
||||
|
||||
class GameFragment : Fragment() {
|
||||
data class Question(
|
||||
val text: String,
|
||||
val answers: List<String>)
|
||||
|
||||
// The first answer is the correct one. We randomize the answers before showing the text.
|
||||
// All questions must have four answers. We'd want these to contain references to string
|
||||
// resources so we could internationalize. (Or better yet, don't define the questions in code...)
|
||||
private val questions: MutableList<Question> = mutableListOf(
|
||||
Question(text = "What is Android Jetpack?",
|
||||
answers = listOf("All of these", "Tools", "Documentation", "Libraries")),
|
||||
Question(text = "What is the base class for layouts?",
|
||||
answers = listOf("ViewGroup", "ViewSet", "ViewCollection", "ViewRoot")),
|
||||
Question(text = "What layout do you use for complex screens?",
|
||||
answers = listOf("ConstraintLayout", "GridLayout", "LinearLayout", "FrameLayout")),
|
||||
Question(text = "What do you use to push structured data into a layout?",
|
||||
answers = listOf("Data binding", "Data pushing", "Set text", "An OnClick method")),
|
||||
Question(text = "What method do you use to inflate layouts in fragments?",
|
||||
answers = listOf("onCreateView()", "onActivityCreated()", "onCreateLayout()", "onInflateLayout()")),
|
||||
Question(text = "What's the build system for Android?",
|
||||
answers = listOf("Gradle", "Graddle", "Grodle", "Groyle")),
|
||||
Question(text = "Which class do you use to create a vector drawable?",
|
||||
answers = listOf("VectorDrawable", "AndroidVectorDrawable", "DrawableVector", "AndroidVector")),
|
||||
Question(text = "Which one of these is an Android navigation component?",
|
||||
answers = listOf("NavController", "NavCentral", "NavMaster", "NavSwitcher")),
|
||||
Question(text = "Which XML element lets you register an activity with the launcher activity?",
|
||||
answers = listOf("intent-filter", "app-registry", "launcher-registry", "app-launcher")),
|
||||
Question(text = "What do you use to mark a layout for data binding?",
|
||||
answers = listOf("<layout>", "<binding>", "<data-binding>", "<dbinding>"))
|
||||
)
|
||||
|
||||
|
||||
|
||||
lateinit var currentQuestion: Question
|
||||
lateinit var answers: MutableList<String>
|
||||
private var questionIndex = 0
|
||||
private val numQuestions = Math.min((questions.size + 1) / 2, 3)
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
|
||||
// Inflate the layout for this fragment
|
||||
val binding = DataBindingUtil.inflate<FragmentGameBinding>(
|
||||
inflater, R.layout.fragment_game, container, false)
|
||||
|
||||
// Shuffles the questions and sets the question index to the first question.
|
||||
randomizeQuestions()
|
||||
|
||||
// Bind this fragment class to the layout
|
||||
binding.game = this
|
||||
|
||||
// Set the onClickListener for the submitButton
|
||||
binding.submitButton.setOnClickListener @Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
||||
{ view: View ->
|
||||
val checkedId = binding.questionRadioGroup.checkedRadioButtonId
|
||||
// Do nothing if nothing is checked (id == -1)
|
||||
if (-1 != checkedId) {
|
||||
var answerIndex = 0
|
||||
when (checkedId) {
|
||||
R.id.secondAnswerRadioButton -> answerIndex = 1
|
||||
R.id.thirdAnswerRadioButton -> answerIndex = 2
|
||||
R.id.fourthAnswerRadioButton -> answerIndex = 3
|
||||
}
|
||||
// The first answer in the original question is always the correct one, so if our
|
||||
// answer matches, we have the correct answer.
|
||||
if (answers[answerIndex] == currentQuestion.answers[0]) {
|
||||
questionIndex++
|
||||
// Advance to the next question
|
||||
if (questionIndex < numQuestions) {
|
||||
currentQuestion = questions[questionIndex]
|
||||
setQuestion()
|
||||
binding.invalidateAll()
|
||||
} else {
|
||||
// We've won! Navigate to the gameWonFragment.
|
||||
view.findNavController()
|
||||
.navigate(GameFragmentDirections
|
||||
.actionGameFragmentToGameWonFragment(numQuestions, questionIndex))
|
||||
}
|
||||
} else {
|
||||
// Game over! A wrong answer sends us to the gameOverFragment.
|
||||
view.findNavController()
|
||||
.navigate(GameFragmentDirections.actionGameFragmentToGameOverFragment())
|
||||
}
|
||||
}
|
||||
}
|
||||
return binding.root
|
||||
}
|
||||
|
||||
// randomize the questions and set the first question
|
||||
private fun randomizeQuestions() {
|
||||
questions.shuffle()
|
||||
questionIndex = 0
|
||||
setQuestion()
|
||||
}
|
||||
|
||||
// Sets the question and randomizes the answers. This only changes the data, not the UI.
|
||||
// Calling invalidateAll on the FragmentGameBinding updates the data.
|
||||
private fun setQuestion() {
|
||||
currentQuestion = questions[questionIndex]
|
||||
// randomize the answers into a copy of the array
|
||||
answers = currentQuestion.answers.toMutableList()
|
||||
// and shuffle them
|
||||
answers.shuffle()
|
||||
(activity as AppCompatActivity).supportActionBar?.title = getString(R.string.title_android_trivia_question, questionIndex + 1, numQuestions)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.navigation.findNavController
|
||||
import com.example.android.navigation.databinding.FragmentGameOverBinding
|
||||
|
||||
class GameOverFragment : Fragment() {
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
// Inflate the layout for this fragment
|
||||
val binding: FragmentGameOverBinding = DataBindingUtil.inflate(
|
||||
inflater, R.layout.fragment_game_over, container, false)
|
||||
|
||||
binding.tryAgainButton.setOnClickListener { view: View ->
|
||||
view.findNavController().navigate(GameOverFragmentDirections.actionGameOverFragmentToGameFragment())
|
||||
}
|
||||
return binding.root
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.view.*
|
||||
import android.widget.Toast
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.navigation.findNavController
|
||||
import com.example.android.navigation.databinding.FragmentGameWonBinding
|
||||
|
||||
|
||||
class GameWonFragment : Fragment() {
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
// Inflate the layout for this fragment
|
||||
val binding: FragmentGameWonBinding = DataBindingUtil.inflate(
|
||||
inflater, R.layout.fragment_game_won, container, false)
|
||||
|
||||
binding.nextMatchButton.setOnClickListener { view: View ->
|
||||
view.findNavController().navigate(GameWonFragmentDirections.actionGameWonFragmentToGameFragment())
|
||||
}
|
||||
val args = GameWonFragmentArgs.fromBundle(arguments!!)
|
||||
Toast.makeText(context, "NumCorrect: ${args.numCorrect}, NumQuestions: ${args.numQuestions}", Toast.LENGTH_LONG).show()
|
||||
|
||||
setHasOptionsMenu(true)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
// Creating our Share Intent
|
||||
private fun getShareIntent() : Intent {
|
||||
val args = GameWonFragmentArgs.fromBundle(arguments!!)
|
||||
val shareIntent = Intent(Intent.ACTION_SEND)
|
||||
shareIntent.setType("text/plain")
|
||||
.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_success_text, args.numCorrect, args.numQuestions))
|
||||
return shareIntent
|
||||
}
|
||||
|
||||
// Starting an Activity with our new Intent
|
||||
private fun shareSuccess() {
|
||||
startActivity(getShareIntent())
|
||||
}
|
||||
|
||||
// Showing the Share Menu Item Dynamically
|
||||
override fun onCreateOptionsMenu(menu: Menu?, inflater: MenuInflater?) {
|
||||
super.onCreateOptionsMenu(menu, inflater)
|
||||
inflater?.inflate(R.menu.winner_menu, menu)
|
||||
// check if the activity resolves
|
||||
if (null == getShareIntent().resolveActivity(activity!!.packageManager)) {
|
||||
// hide the menu item if it doesn't resolve
|
||||
menu?.findItem(R.id.share)?.setVisible(false)
|
||||
}
|
||||
}
|
||||
|
||||
// Sharing from the Menu
|
||||
override fun onOptionsItemSelected(item: MenuItem?): Boolean {
|
||||
when (item!!.itemId) {
|
||||
R.id.share -> shareSuccess()
|
||||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.drawerlayout.widget.DrawerLayout
|
||||
import androidx.navigation.findNavController
|
||||
import androidx.navigation.ui.NavigationUI
|
||||
import com.example.android.navigation.databinding.ActivityMainBinding
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
private lateinit var drawerLayout: DrawerLayout
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
val binding = DataBindingUtil.setContentView<ActivityMainBinding>(this, R.layout.activity_main)
|
||||
|
||||
drawerLayout = binding.drawerLayout
|
||||
|
||||
val navController = this.findNavController(R.id.myNavHostFragment)
|
||||
|
||||
NavigationUI.setupActionBarWithNavController(this,navController, drawerLayout)
|
||||
|
||||
NavigationUI.setupWithNavController(binding.navView, navController)
|
||||
|
||||
}
|
||||
|
||||
override fun onSupportNavigateUp(): Boolean {
|
||||
val navController = this.findNavController(R.id.myNavHostFragment)
|
||||
return NavigationUI.navigateUp(navController, drawerLayout)
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
|
||||
class RulesFragment : Fragment() {
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_rules, container, false)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.*
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.navigation.findNavController
|
||||
import androidx.navigation.ui.NavigationUI
|
||||
import com.example.android.navigation.databinding.FragmentTitleBinding
|
||||
|
||||
|
||||
// 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"
|
||||
|
||||
/**
|
||||
* A simple [Fragment] subclass.
|
||||
*
|
||||
*/
|
||||
class TitleFragment : Fragment() {
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
val binding = DataBindingUtil.inflate<FragmentTitleBinding>(inflater,
|
||||
R.layout.fragment_title,container,false)
|
||||
|
||||
binding.playButton.setOnClickListener { view : View ->
|
||||
view.findNavController().navigate(TitleFragmentDirections.actionTitleFragmentToGameFragment())
|
||||
}
|
||||
setHasOptionsMenu(true)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu?, inflater: MenuInflater?) {
|
||||
super.onCreateOptionsMenu(menu, inflater)
|
||||
inflater?.inflate(R.menu.options_menu,menu)
|
||||
}
|
||||
|
||||
override fun onOptionsItemSelected(item: MenuItem?): Boolean {
|
||||
return NavigationUI.onNavDestinationSelected(item!!,view!!.findNavController())
|
||||
||super.onOptionsItemSelected(item)
|
||||
}
|
||||
|
||||
}
|
||||
22
AndroidTrivia/app/src/main/res/anim/fade_out.xml
Executable file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<alpha
|
||||
android:duration="@android:integer/config_mediumAnimTime"
|
||||
android:fromAlpha="1.0"
|
||||
android:toAlpha="0.0" />
|
||||
</set>
|
||||
25
AndroidTrivia/app/src/main/res/anim/slide_in_right.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:duration="@android:integer/config_shortAnimTime"
|
||||
android:fromXDelta="100%"
|
||||
android:fromYDelta="0%"
|
||||
android:toXDelta="0%"
|
||||
android:toYDelta="0%" />
|
||||
</set>
|
||||
25
AndroidTrivia/app/src/main/res/anim/slide_out_left.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:duration="@android:integer/config_shortAnimTime"
|
||||
android:fromXDelta="0%"
|
||||
android:fromYDelta="0%"
|
||||
android:toXDelta="-100%"
|
||||
android:toYDelta="0%" />
|
||||
</set>
|
||||
25
AndroidTrivia/app/src/main/res/anim/slide_out_right.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:duration="@android:integer/config_shortAnimTime"
|
||||
android:fromXDelta="0%"
|
||||
android:fromYDelta="0%"
|
||||
android:toXDelta="100%"
|
||||
android:toYDelta="0%" />
|
||||
</set>
|
||||
28
AndroidTrivia/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Executable file
@ -0,0 +1,28 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:pathData="M53.6,72.9c-2,0 -3.6,0.7 -5,2c-1.4,1.4 -2,3 -2,5c0,2 0.7,3.6 2,5c1.4,1.4 3,2.1 5,2.1c2,0 3.6,-0.7 5,-2.1c1.4,-1.4 2.1,-3.1 2.1,-5c0,-2 -0.7,-3.6 -2.1,-5C57.2,73.6 55.5,72.9 53.6,72.9z"
|
||||
android:fillColor="#6AB343"/>
|
||||
<path
|
||||
android:pathData="M68.8,35c-1.3,-2 -3,-3.7 -5.2,-5l2.8,-5.1c0.2,-0.4 0.3,-0.8 0.1,-1.3c-0.1,-0.4 -0.4,-0.8 -0.8,-1l0,0c-0.8,-0.4 -1.8,-0.1 -2.3,0.7l-2.9,5.2c-2.2,-0.8 -4.6,-1.2 -7.2,-1.2c-2.5,0 -4.8,0.4 -6.9,1.2l-2.9,-5.2c-0.2,-0.4 -0.6,-0.7 -1,-0.8c-0.4,-0.1 -0.9,-0.1 -1.3,0.1c-0.4,0.2 -0.7,0.6 -0.8,1c-0.1,0.4 -0.1,0.9 0.1,1.3l2.8,5.1c-0.5,0.3 -1,0.7 -1.4,1.1c-3,2.5 -5,5.5 -6,9l9.4,3.9c0.5,-1.9 1.5,-3.5 2.9,-4.8c1.4,-1.3 3.2,-1.9 5.4,-1.9c2.1,0 3.7,0.6 5,1.8c1.2,1.2 1.9,2.6 1.9,4.3c0,1.4 -0.4,2.7 -1.1,3.7c-0.7,1.1 -1.9,2.4 -3.5,3.8c-2.8,2.4 -4.8,4.6 -5.9,6.5c-1.1,1.9 -1.6,4.2 -1.6,6.8V67H59v-1.3c0,-1.9 0.3,-3.5 1,-4.7c0.7,-1.2 1.9,-2.7 3.8,-4.5c2.4,-2.3 4.2,-4.4 5.4,-6.4c1.2,-2 1.8,-4.4 1.8,-7.2C71,40 70.3,37.4 68.8,35z"
|
||||
android:fillColor="#6AB343"/>
|
||||
</vector>
|
||||
23
AndroidTrivia/app/src/main/res/drawable/about_android_trivia.xml
Executable file
@ -0,0 +1,23 @@
|
||||
<vector android:height="535dp" android:viewportHeight="535"
|
||||
android:viewportWidth="507" android:width="507dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M255.6,256.5c-9.9,0 -18.4,3.5 -25.3,10.3c-6.9,6.9 -10.3,15.3 -10.3,25.3s3.4,18.4 10.3,25.5c6.9,7 15.3,10.6 25.3,10.6c9.9,0 18.4,-3.5 25.5,-10.6c7,-7 10.6,-15.5 10.6,-25.5s-3.5,-18.4 -10.6,-25.3C274.1,260 265.6,256.5 255.6,256.5z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M332.8,63.8c-6.6,-10.4 -15.4,-18.8 -26.4,-25.4l14.1,-25.7c1.1,-2 1.4,-4.3 0.7,-6.5c-0.6,-2.2 -2.1,-4.1 -4.1,-5.2L317,1c-4.2,-2.2 -9.4,-0.7 -11.6,3.5l-14.6,26.6c-11.1,-4 -23.2,-6 -36.4,-6c-12.8,0 -24.5,2 -34.9,5.9L205,4.5c-1.1,-2 -2.9,-3.5 -5.1,-4.1c-2.2,-0.6 -4.5,-0.4 -6.5,0.7c-2,1.1 -3.5,2.9 -4.2,5.2c-0.6,2.2 -0.4,4.5 0.7,6.5l14.3,26.1c-2.5,1.7 -5,3.5 -7.3,5.5c-15.2,12.8 -25.4,28.1 -30.6,45.7l47.6,19.9c2.8,-9.7 7.7,-17.7 14.9,-24.2C235.9,79.3 245,76 256,76c10.5,0 18.9,3 25.3,8.9c6.3,5.9 9.5,13.2 9.5,21.7c0,7.2 -1.9,13.5 -5.6,19c-3.7,5.5 -9.7,12 -18,19.5c-14.4,12.4 -24.3,23.5 -29.8,33.1c-5.5,9.7 -8.3,21.1 -8.3,34.4v13.7h54.2v-6.6c0,-9.7 1.7,-17.7 5.2,-24c3.4,-6.3 9.9,-13.9 19.2,-22.8c12.1,-11.6 21.2,-22.4 27.3,-32.5c6.1,-10.1 9.1,-22.3 9.1,-36.6C344.2,89.2 340.4,75.8 332.8,63.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M23.1,366.2h8.2l23.1,60.9h-8l-6,-16.8H14.1L8,427.2H0L23.1,366.2zM37.9,403.6l-8.1,-22l-2.4,-6.6h-0.3l-2.5,6.6l-8,22H37.9z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M60.9,385h6.9v6.3h0.3c1.2,-2.2 3.1,-4 5.6,-5.4c2.6,-1.5 5.3,-2.2 8.2,-2.2c5.2,0 9.1,1.5 11.8,4.5c2.7,3 4,7.1 4,12.3v26.7h-7.1v-25.6c0,-7.6 -3.5,-11.4 -10.6,-11.4c-2.3,0 -4.3,0.7 -6.1,2c-1.8,1.3 -3.2,3 -4.2,5.1c-1,2.1 -1.5,4.3 -1.5,6.6v23.3h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M115.7,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C122.1,428.5 118.8,427.6 115.7,425.6zM133.8,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5c-2.1,-1.3 -4.4,-1.9 -6.9,-1.9c-2.5,0 -4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2C129.4,422 131.7,421.3 133.8,420.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M158.3,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M194.9,425.6c-3.3,-2 -5.9,-4.7 -7.7,-8.1c-1.8,-3.4 -2.8,-7.2 -2.8,-11.4c0,-4.2 0.9,-8 2.8,-11.4c1.8,-3.4 4.4,-6.1 7.7,-8.1c3.3,-2 7,-2.9 11.1,-2.9c4.1,0 7.9,1 11.2,2.9c3.3,2 5.9,4.7 7.7,8.1c1.8,3.4 2.8,7.2 2.8,11.4c0,4.2 -0.9,8 -2.8,11.4c-1.8,3.4 -4.4,6.1 -7.7,8.1c-3.3,2 -7,2.9 -11.2,2.9C201.9,428.5 198.2,427.5 194.9,425.6zM213.2,420c2.2,-1.3 4,-3.2 5.3,-5.6c1.3,-2.4 2,-5.2 2,-8.4s-0.7,-6 -2,-8.4c-1.3,-2.4 -3.1,-4.3 -5.3,-5.6c-2.2,-1.3 -4.6,-2 -7.1,-2c-2.5,0 -4.9,0.7 -7.1,2c-2.2,1.3 -4,3.2 -5.3,5.6c-1.3,2.4 -2,5.2 -2,8.4s0.7,6 2,8.4c1.3,2.4 3.1,4.3 5.3,5.6c2.2,1.3 4.6,2 7.1,2C208.6,422 211,421.3 213.2,420z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M235.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C237.9,375.9 236.7,375.4 235.7,374.4zM235.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M261.4,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C267.8,428.5 264.5,427.6 261.4,425.6zM279.5,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5s-4.4,-1.9 -6.9,-1.9s-4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2S277.3,421.3 279.5,420.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M334.3,373.1h-17.1v-6.9h41.4v6.9h-17.1v54h-7.1V373.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M360.9,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M392.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C394.9,375.9 393.7,375.4 392.7,374.4zM392.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M406.4,385h7.8l12.9,33.7h0.2l13.1,-33.7h7.7l-17.3,42.2h-7.3L406.4,385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M454.5,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C456.7,375.9 455.5,375.4 454.5,374.4zM454.5,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M477.9,426.7c-2.5,-1.2 -4.4,-2.9 -5.8,-5.1c-1.4,-2.2 -2.1,-4.6 -2.1,-7.4c0,-4.5 1.7,-8 5.1,-10.5c3.4,-2.5 7.7,-3.7 13,-3.7c2.6,0 5,0.3 7.1,0.9c2.1,0.6 3.8,1.2 5,1.9v-2.2c0,-2 -0.5,-3.9 -1.6,-5.5c-1.1,-1.6 -2.5,-2.9 -4.2,-3.7c-1.8,-0.9 -3.7,-1.3 -5.7,-1.3c-4.8,0 -8.5,2 -11.1,5.9l-6,-4c1.8,-2.6 4.1,-4.6 7,-6.1c2.9,-1.4 6.2,-2.2 9.8,-2.2c5.8,0 10.4,1.6 13.7,4.7c3.3,3.1 5,7.3 5,12.6v26.3h-6.9V421h-0.3c-1.4,2.2 -3.2,4 -5.5,5.4c-2.3,1.4 -5,2.2 -8.1,2.2S480.4,427.9 477.9,426.7zM493.3,420.4c2,-1.2 3.7,-2.8 5,-4.9s1.9,-4.3 1.9,-6.6c-3.2,-2 -6.8,-3.1 -11,-3.1c-3.6,0 -6.4,0.8 -8.6,2.4c-2.1,1.6 -3.2,3.7 -3.2,6.2c0,2.3 0.9,4.1 2.8,5.6c1.9,1.4 4.1,2.2 6.6,2.2C489.1,422.1 491.2,421.6 493.3,420.4z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M162.7,472.7h8.2l23.1,60.9h-8l-6,-16.8h-26.3l-6.1,16.8h-8L162.7,472.7zM177.4,510.1l-8.1,-22l-2.4,-6.6h-0.3l-2.5,6.6l-8,22H177.4z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M213.5,532.9c-2.6,-1.4 -4.5,-3.3 -5.8,-5.5h-0.3v6.3h-6.9v-60.9h7.2v19.1l-0.3,5.8h0.3c1.4,-2.2 3.3,-4 5.9,-5.4c2.6,-1.4 5.5,-2.2 8.8,-2.2c3.6,0 7,1 10,2.9c3.1,2 5.5,4.6 7.3,8c1.8,3.4 2.7,7.2 2.7,11.5c0,4.3 -0.9,8.1 -2.7,11.5c-1.8,3.4 -4.3,6.1 -7.3,8c-3.1,2 -6.4,2.9 -10,2.9C219.1,535 216.1,534.3 213.5,532.9zM228.2,526.5c2.1,-1.3 3.8,-3.2 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6 -1.9,-8.4c-1.3,-2.4 -3,-4.3 -5.1,-5.6c-2.1,-1.3 -4.4,-2 -6.9,-2c-2.5,0 -4.8,0.6 -6.9,1.9c-2.1,1.3 -3.8,3.1 -5.1,5.5c-1.3,2.4 -1.9,5.2 -1.9,8.5c0,3.2 0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,1.9 6.9,1.9C223.8,528.5 226.1,527.8 228.2,526.5z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M258.8,532.1c-3.3,-2 -5.9,-4.7 -7.7,-8.1c-1.8,-3.4 -2.8,-7.2 -2.8,-11.4c0,-4.2 0.9,-8 2.8,-11.4c1.8,-3.4 4.4,-6.1 7.7,-8.1c3.3,-2 7,-2.9 11.1,-2.9c4.1,0 7.9,1 11.2,2.9s5.9,4.7 7.7,8.1c1.8,3.4 2.8,7.2 2.8,11.4c0,4.2 -0.9,8 -2.8,11.4c-1.8,3.4 -4.4,6.1 -7.7,8.1s-7,2.9 -11.2,2.9C265.8,535 262,534 258.8,532.1zM277,526.5c2.2,-1.3 4,-3.2 5.3,-5.6c1.3,-2.4 2,-5.2 2,-8.4c0,-3.2 -0.7,-6 -2,-8.4c-1.3,-2.4 -3.1,-4.3 -5.3,-5.6c-2.2,-1.3 -4.6,-2 -7.1,-2c-2.5,0 -4.9,0.7 -7.1,2c-2.2,1.3 -4,3.2 -5.3,5.6c-1.3,2.4 -2,5.2 -2,8.4c0,3.2 0.7,6 2,8.4c1.3,2.4 3.1,4.3 5.3,5.6c2.2,1.3 4.6,2 7.1,2C272.5,528.5 274.8,527.8 277,526.5z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M303,530.5c-2.7,-3 -4,-7.2 -4,-12.5v-26.5h7.2v25.4c0,7.8 3.5,11.7 10.5,11.7c2.3,0 4.4,-0.7 6.3,-2c1.8,-1.3 3.3,-3 4.3,-5.1c1,-2.1 1.5,-4.3 1.5,-6.6v-23.3h7.1v42.2H329v-6.3h-0.3c-1.2,2.2 -3.1,4 -5.7,5.4c-2.5,1.5 -5.2,2.2 -8.1,2.2C309.7,535 305.7,533.5 303,530.5z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M358.4,534.2c-1.4,-0.6 -2.7,-1.4 -3.7,-2.3c-1.1,-1.1 -2,-2.4 -2.5,-3.9c-0.5,-1.5 -0.8,-3.2 -0.8,-5.2V498h-7.5v-6.6h7.5v-12.6h7.1v12.6h10.4v6.6h-10.4v23c0,2.4 0.5,4.2 1.4,5.4c1,1.3 2.4,1.9 4.4,1.9c1.8,0 3.3,-0.4 4.6,-1.2v7c-0.9,0.3 -1.8,0.6 -2.6,0.7c-0.8,0.1 -1.9,0.2 -3.3,0.2C361.5,535 359.9,534.7 358.4,534.2z"/>
|
||||
</vector>
|
||||
25
AndroidTrivia/app/src/main/res/drawable/android.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M6,18c0,0.55 0.45,1 1,1h1v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5L11,19h2v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5L16,19h1c0.55,0 1,-0.45 1,-1L18,8L6,8v10zM3.5,8C2.67,8 2,8.67 2,9.5v7c0,0.83 0.67,1.5 1.5,1.5S5,17.33 5,16.5v-7C5,8.67 4.33,8 3.5,8zM20.5,8c-0.83,0 -1.5,0.67 -1.5,1.5v7c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5v-7c0,-0.83 -0.67,-1.5 -1.5,-1.5zM15.53,2.16l1.3,-1.3c0.2,-0.2 0.2,-0.51 0,-0.71 -0.2,-0.2 -0.51,-0.2 -0.71,0l-1.48,1.48C13.85,1.23 12.95,1 12,1c-0.96,0 -1.86,0.23 -2.66,0.63L7.85,0.15c-0.2,-0.2 -0.51,-0.2 -0.71,0 -0.2,0.2 -0.2,0.51 0,0.71l1.31,1.31C6.97,3.26 6,5.01 6,7h12c0,-1.99 -0.97,-3.75 -2.47,-4.84zM10,5L9,5L9,4h1v1zM15,5h-1L14,4h1v1z" />
|
||||
</vector>
|
||||
7
AndroidTrivia/app/src/main/res/drawable/android_category_simple.xml
Executable file
@ -0,0 +1,7 @@
|
||||
<vector android:height="411.3dp" android:viewportHeight="411.3"
|
||||
android:viewportWidth="473.8" android:width="473.8dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M353.1,221.9l36.7,-67c2,-3.5 0.7,-8 -2.9,-9.9c-3.6,-1.9 -8,-0.6 -9.9,2.9l-37.1,67.7c-31.2,-13.9 -66.1,-21.7 -103.1,-21.6c-36.8,0 -71.7,7.7 -102.8,21.5l-37.1,-67.6c-1.9,-3.6 -6.4,-4.9 -9.9,-2.9c-3.6,1.9 -4.9,6.4 -2.9,9.9l36.7,67C48.7,259.1 0,330 0,411.3l473.8,0C473.8,330 425.1,259.2 353.1,221.9M129.1,325.5c-10.9,0 -19.8,-8.9 -19.8,-19.8c0,-10.9 8.9,-19.9 19.8,-19.9c11,0 19.9,9 19.9,19.9C149,316.6 140.1,325.5 129.1,325.5M344.8,325.5c-11,0 -19.9,-8.9 -19.9,-19.9c0,-10.9 8.9,-19.9 19.9,-19.9c10.9,0 19.8,9 19.8,19.9C364.7,316.6 355.8,325.5 344.8,325.5"/>
|
||||
<path android:fillColor="#424242" android:pathData="M226.8,93.1c0,-6.6 1.2,-12 3.6,-16.4c2.4,-4.4 6.9,-9.5 13.5,-15.5c5.1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6.9,3.5c-1.7,1.3 -3,3.1 -4,5.4l-1.6,4l-8.2,-3.4L330.2,104.7z"/>
|
||||
</vector>
|
||||
18
AndroidTrivia/app/src/main/res/drawable/android_trivia.xml
Executable file
@ -0,0 +1,18 @@
|
||||
<vector android:height="428.5dp" android:viewportHeight="428.5"
|
||||
android:viewportWidth="507" android:width="507dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M255.6,256.5c-9.9,0 -18.4,3.5 -25.3,10.3c-6.9,6.9 -10.3,15.3 -10.3,25.3s3.4,18.4 10.3,25.5c6.9,7 15.3,10.6 25.3,10.6c9.9,0 18.4,-3.5 25.5,-10.6c7,-7 10.6,-15.5 10.6,-25.5s-3.5,-18.4 -10.6,-25.3C274.1,260 265.6,256.5 255.6,256.5z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M332.8,63.8c-6.6,-10.4 -15.4,-18.8 -26.4,-25.4l14.1,-25.7c1.1,-2 1.4,-4.3 0.7,-6.5c-0.6,-2.2 -2.1,-4.1 -4.1,-5.2L317,1c-4.2,-2.2 -9.4,-0.7 -11.6,3.5l-14.6,26.6c-11.1,-4 -23.2,-6 -36.4,-6c-12.8,0 -24.5,2 -34.9,5.9L205,4.5c-1.1,-2 -2.9,-3.5 -5.1,-4.1c-2.2,-0.6 -4.5,-0.4 -6.5,0.7c-2,1.1 -3.5,2.9 -4.2,5.2c-0.6,2.2 -0.4,4.5 0.7,6.5l14.3,26.1c-2.5,1.7 -5,3.5 -7.3,5.5c-15.2,12.8 -25.4,28.1 -30.6,45.7l47.6,19.9c2.8,-9.7 7.7,-17.7 14.9,-24.2C235.9,79.3 245,76 256,76c10.5,0 18.9,3 25.3,8.9c6.3,5.9 9.5,13.2 9.5,21.7c0,7.2 -1.9,13.5 -5.6,19c-3.7,5.5 -9.7,12 -18,19.5c-14.4,12.4 -24.3,23.5 -29.8,33.1c-5.5,9.7 -8.3,21.1 -8.3,34.4v13.7h54.2v-6.6c0,-9.7 1.7,-17.7 5.2,-24c3.4,-6.3 9.9,-13.9 19.2,-22.8c12.1,-11.6 21.2,-22.4 27.3,-32.5c6.1,-10.1 9.1,-22.3 9.1,-36.6C344.2,89.2 340.4,75.8 332.8,63.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M23.1,366.2h8.2l23.1,60.9h-8l-6,-16.8H14.1L8,427.2H0L23.1,366.2zM37.9,403.6l-8.1,-22l-2.4,-6.6h-0.3l-2.5,6.6l-8,22H37.9z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M60.9,385h6.9v6.3h0.3c1.2,-2.2 3.1,-4 5.6,-5.4c2.6,-1.5 5.3,-2.2 8.2,-2.2c5.2,0 9.1,1.5 11.8,4.5c2.7,3 4,7.1 4,12.3v26.7h-7.1v-25.6c0,-7.6 -3.5,-11.4 -10.6,-11.4c-2.3,0 -4.3,0.7 -6.1,2c-1.8,1.3 -3.2,3 -4.2,5.1c-1,2.1 -1.5,4.3 -1.5,6.6v23.3h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M115.7,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C122.1,428.5 118.8,427.6 115.7,425.6zM133.8,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5c-2.1,-1.3 -4.4,-1.9 -6.9,-1.9c-2.5,0 -4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2C129.4,422 131.7,421.3 133.8,420.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M158.3,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M194.9,425.6c-3.3,-2 -5.9,-4.7 -7.7,-8.1c-1.8,-3.4 -2.8,-7.2 -2.8,-11.4c0,-4.2 0.9,-8 2.8,-11.4c1.8,-3.4 4.4,-6.1 7.7,-8.1c3.3,-2 7,-2.9 11.1,-2.9c4.1,0 7.9,1 11.2,2.9c3.3,2 5.9,4.7 7.7,8.1c1.8,3.4 2.8,7.2 2.8,11.4c0,4.2 -0.9,8 -2.8,11.4c-1.8,3.4 -4.4,6.1 -7.7,8.1c-3.3,2 -7,2.9 -11.2,2.9C201.9,428.5 198.2,427.6 194.9,425.6zM213.2,420c2.2,-1.3 4,-3.2 5.3,-5.6c1.3,-2.4 2,-5.2 2,-8.4s-0.7,-6 -2,-8.4c-1.3,-2.4 -3.1,-4.3 -5.3,-5.6c-2.2,-1.3 -4.6,-2 -7.1,-2c-2.5,0 -4.9,0.7 -7.1,2c-2.2,1.3 -4,3.2 -5.3,5.6c-1.3,2.4 -2,5.2 -2,8.4s0.7,6 2,8.4c1.3,2.4 3.1,4.3 5.3,5.6c2.2,1.3 4.6,2 7.1,2C208.6,422 211,421.3 213.2,420z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M235.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C237.9,375.9 236.7,375.4 235.7,374.4zM235.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M261.4,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C267.8,428.5 264.5,427.6 261.4,425.6zM279.5,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5s-4.4,-1.9 -6.9,-1.9c-2.5,0 -4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2C275,422 277.3,421.3 279.5,420.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M334.3,373.1h-17.1v-6.9h41.4v6.9h-17.1v54h-7.1V373.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M360.9,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M392.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C394.9,375.9 393.7,375.4 392.7,374.4zM392.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M406.4,385h7.8l12.9,33.7h0.2l13.1,-33.7h7.7l-17.3,42.2h-7.3L406.4,385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M454.5,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C456.7,375.9 455.5,375.4 454.5,374.4zM454.5,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M477.9,426.7c-2.5,-1.2 -4.4,-2.9 -5.8,-5.1c-1.4,-2.2 -2.1,-4.6 -2.1,-7.4c0,-4.5 1.7,-8 5.1,-10.5c3.4,-2.5 7.7,-3.7 13,-3.7c2.6,0 5,0.3 7.1,0.9c2.1,0.6 3.8,1.2 5,1.9v-2.2c0,-2 -0.5,-3.9 -1.6,-5.5c-1.1,-1.6 -2.5,-2.9 -4.2,-3.7c-1.8,-0.9 -3.7,-1.3 -5.7,-1.3c-4.8,0 -8.5,2 -11.1,5.9l-6,-4c1.8,-2.6 4.1,-4.6 7,-6.1c2.9,-1.4 6.2,-2.2 9.8,-2.2c5.8,0 10.4,1.6 13.7,4.7c3.3,3.1 5,7.3 5,12.6v26.3h-6.9V421h-0.3c-1.4,2.2 -3.2,4 -5.5,5.4c-2.3,1.4 -5,2.2 -8.1,2.2S480.4,427.9 477.9,426.7zM493.3,420.4c2,-1.2 3.7,-2.8 5,-4.9s1.9,-4.3 1.9,-6.6c-3.2,-2 -6.8,-3.1 -11,-3.1c-3.6,0 -6.4,0.8 -8.6,2.4c-2.1,1.6 -3.2,3.7 -3.2,6.2c0,2.3 0.9,4.1 2.8,5.6c1.9,1.4 4.1,2.2 6.6,2.2C489.1,422.1 491.2,421.6 493.3,420.4z"/>
|
||||
</vector>
|
||||
91
AndroidTrivia/app/src/main/res/drawable/ic_launcher_background.xml
Executable file
@ -0,0 +1,91 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:pathData="M0,0h108v108h-108z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
<path
|
||||
android:pathData="M17.7,50.3c-0.5,0 -1,0.2 -1.3,0.5c-0.4,0.4 -0.5,0.8 -0.5,1.3c0,0.5 0.2,1 0.5,1.3c0.4,0.4 0.8,0.6 1.3,0.6c0.5,0 1,-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
|
||||
android:fillColor="#B3D89F"/>
|
||||
<path
|
||||
android:pathData="M32.7,12.8c-0.2,0 -0.3,0.1 -0.4,0.2l-0.8,1.4c-0.6,-0.2 -1.2,-0.3 -1.9,-0.3c-0.7,0 -1.3,0.1 -1.8,0.3L27,13.1c-0.1,-0.1 -0.2,-0.2 -0.3,-0.2l-0.1,0l-0.2,0.1c-0.1,0.1 -0.2,0.2 -0.2,0.3c0,0.1 0,0.2 0,0.3l0.7,1.4c-0.1,0.1 -0.3,0.2 -0.4,0.3c-0.8,0.7 -1.3,1.5 -1.6,2.4l2.5,1c0.1,-0.5 0.4,-0.9 0.8,-1.3c0.4,-0.3 0.9,-0.5 1.4,-0.5c0.5,0 1,0.2 1.3,0.5s0.5,0.7 0.5,1.1c0,0.4 -0.1,0.7 -0.3,1c-0.2,0.3 -0.5,0.6 -0.9,1c-0.8,0.6 -1.3,1.2 -1.6,1.7s-0.4,1.1 -0.4,1.8v0.7h2.8v-0.3c0,-0.5 0.1,-0.9 0.3,-1.3c0.2,-0.3 0.5,-0.7 1,-1.2c0.6,-0.6 1.1,-1.2 1.4,-1.7c0.3,-0.5 0.5,-1.2 0.5,-1.9c0,-0.8 -0.2,-1.5 -0.6,-2.1c-0.3,-0.5 -0.8,-1 -1.4,-1.3l0.7,-1.3c0.1,-0.1 0.1,-0.2 0,-0.3c0,-0.1 -0.1,-0.2 -0.2,-0.3l0,0L32.7,12.8"
|
||||
android:fillColor="#B3D89F"/>
|
||||
<path
|
||||
android:pathData="M27.7,78.3c-0.5,0 -1,0.2 -1.3,0.5c-0.4,0.4 -0.5,0.8 -0.5,1.3c0,0.5 0.2,1 0.5,1.3c0.4,0.4 0.8,0.6 1.3,0.6s1,-0.2 1.3,-0.6c0.4,-0.4 0.6,-0.8 0.6,-1.3c0,-0.5 -0.2,-1 -0.6,-1.3S28.2,78.3 27.7,78.3"
|
||||
android:fillColor="#B3D89F"/>
|
||||
<path
|
||||
android:pathData="M30.7,64.8c-0.2,0 -0.3,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-0.7 1,-1.2c0.6,-0.6 1.1,-1.2 1.4,-1.7c0.3,-0.5 0.5,-1.2 0.5,-1.9c0,-0.8 -0.2,-1.5 -0.6,-2.1c-0.3,-0.5 -0.8,-1 -1.4,-1.3l0.7,-1.3c0.1,-0.1 0.1,-0.2 0,-0.3c0,-0.1 -0.1,-0.2 -0.2,-0.3l0,0L93.7,15.8"
|
||||
android:fillColor="#B3D89F"/>
|
||||
</vector>
|
||||
34
AndroidTrivia/app/src/main/res/drawable/nav_header.xml
Executable file
@ -0,0 +1,34 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector android:height="898.4dp" android:viewportHeight="898.4"
|
||||
android:viewportWidth="1063" android:width="1063dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M536,537.8c-20.8,0 -38.5,7.2 -52.9,21.7c-14.5,14.5 -21.7,32.1 -21.7,52.9c0,20.8 7.2,38.6 21.7,53.4c14.5,14.8 32.1,22.1 52.9,22.1c20.8,0 38.6,-7.4 53.4,-22.1c14.8,-14.8 22.1,-32.5 22.1,-53.4c0,-20.8 -7.4,-38.5 -22.1,-52.9C574.6,545.1 556.8,537.8 536,537.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M697.8,133.8c-13.7,-21.7 -32.2,-39.4 -55.4,-53.2l29.5,-53.9c2.3,-4.2 2.9,-9 1.6,-13.6c-1.3,-4.7 -4.4,-8.5 -8.6,-10.9l-0.2,-0.1c-8.8,-4.6 -19.7,-1.4 -24.4,7.3l-30.6,55.8c-23.2,-8.4 -48.7,-12.6 -76.4,-12.6c-26.9,0 -51.3,4.1 -73.1,12.4L429.7,9.4c-2.3,-4.2 -6.1,-7.3 -10.8,-8.7c-4.6,-1.3 -9.5,-0.8 -13.7,1.5c-4.3,2.3 -7.4,6.2 -8.7,10.8c-1.3,4.6 -0.8,9.5 1.6,13.7l30,54.7c-5.3,3.5 -10.5,7.4 -15.4,11.5c-31.8,26.9 -53.2,58.9 -64.2,95.9l99.8,41.7c5.8,-20.2 16.2,-37.2 31.2,-50.8c15,-13.6 34.1,-20.4 57.3,-20.4c22,0 39.6,6.2 52.9,18.7c13.3,12.5 20,27.6 20,45.6c0,15.1 -3.9,28.4 -11.7,39.9c-7.8,11.6 -20.4,25.2 -37.8,40.8c-30.1,26 -50.9,49.2 -62.5,69.4c-11.6,20.3 -17.4,44.3 -17.4,72v28.6h113.7v-13.9c0,-20.2 3.6,-37 10.8,-50.3c7.2,-13.3 20.7,-29.2 40.4,-47.7c25.5,-24.3 44.5,-47 57.3,-68.1c12.7,-21.1 19.1,-46.7 19.1,-76.8C721.7,186.9 713.7,159 697.8,133.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M48.5,767.9h17.1l48.5,127.7H97.4l-12.7,-35.1H29.6l-12.8,35.1H0L48.5,767.9zM79.4,846.2l-16.9,-46l-5,-13.7h-0.7l-5.2,13.7l-16.8,46H79.4z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M127.7,807.1h14.4v13.2h0.7c2.5,-4.5 6.4,-8.3 11.8,-11.4c5.4,-3.1 11.1,-4.6 17.1,-4.6c10.8,0 19.1,3.2 24.7,9.5c5.6,6.3 8.5,14.9 8.5,25.9v56h-15v-53.7c0,-15.9 -7.4,-23.9 -22.3,-23.9c-4.8,0 -9,1.4 -12.8,4.1c-3.8,2.7 -6.8,6.3 -8.8,10.7c-2.1,4.4 -3.1,9 -3.1,13.9v48.9h-15.2V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M242.6,892.4c-6.4,-4 -11.5,-9.7 -15.3,-16.9c-3.8,-7.2 -5.7,-15.3 -5.7,-24.2c0,-8.9 1.9,-17 5.7,-24.2c3.8,-7.2 8.9,-12.8 15.3,-16.9c6.4,-4 13.4,-6.1 21.1,-6.1c6.9,0 13.1,1.5 18.6,4.5c5.5,3 9.6,6.8 12.3,11.3h0.7l-0.7,-12.1v-40.1h15v127.7h-14.3v-13.2h-0.7c-2.7,4.6 -6.8,8.5 -12.3,11.5c-5.5,3 -11.7,4.5 -18.6,4.5C256,898.4 249,896.4 242.6,892.4zM280.5,880.7c4.5,-2.7 8,-6.6 10.7,-11.7c2.7,-5.1 4,-11 4,-17.7c0,-6.8 -1.3,-12.7 -4,-17.8c-2.7,-5.1 -6.2,-8.9 -10.7,-11.6s-9.3,-4 -14.5,-4c-5.2,0 -10.1,1.4 -14.5,4.1c-4.5,2.7 -8,6.6 -10.7,11.7c-2.7,5.1 -4,10.9 -4,17.6c0,6.7 1.3,12.5 4,17.6c2.7,5.1 6.2,9 10.7,11.7c4.5,2.7 9.3,4.1 14.5,4.1C271.2,884.7 276.1,883.4 280.5,880.7z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M331.8,807.1h14.4v14.4h0.7c1.7,-4.9 5.1,-9 10.3,-12.3c5.2,-3.3 10.3,-5 15.4,-5c3.7,0 7.1,0.6 10.3,1.8v16.2c-3.2,-1.8 -7.4,-2.7 -12.5,-2.7c-4.2,0 -8.1,1.2 -11.7,3.7c-3.6,2.4 -6.5,5.7 -8.7,9.7s-3.2,8.5 -3.2,13.2v49.4h-15.2V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M408.7,892.3c-6.9,-4.1 -12.3,-9.8 -16.1,-16.9c-3.9,-7.2 -5.8,-15.2 -5.8,-24c0,-8.8 1.9,-16.8 5.8,-24c3.9,-7.2 9.2,-12.8 16.1,-16.9c6.9,-4.1 14.7,-6.2 23.4,-6.2c8.7,0 16.5,2.1 23.5,6.2c7,4.1 12.4,9.8 16.2,16.9c3.9,7.2 5.8,15.2 5.8,24c0,8.8 -1.9,16.8 -5.8,24c-3.9,7.2 -9.3,12.8 -16.2,16.9c-7,4.1 -14.8,6.2 -23.5,6.2C423.4,898.4 415.6,896.4 408.7,892.3zM447,880.6c4.6,-2.7 8.4,-6.6 11.1,-11.7c2.8,-5.1 4.2,-10.9 4.2,-17.6c0,-6.7 -1.4,-12.5 -4.2,-17.6c-2.8,-5.1 -6.5,-8.9 -11.1,-11.7c-4.6,-2.7 -9.6,-4.1 -15,-4.1c-5.2,0 -10.2,1.4 -14.8,4.1c-4.6,2.7 -8.4,6.6 -11.1,11.7c-2.8,5.1 -4.2,10.9 -4.2,17.6c0,6.7 1.4,12.5 4.2,17.6c2.8,5.1 6.5,9 11.1,11.7c4.6,2.7 9.6,4.1 14.8,4.1C437.4,884.7 442.4,883.3 447,880.6z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M494.1,785c-2.1,-2.1 -3.2,-4.7 -3.2,-7.7c0,-3 1.1,-5.5 3.2,-7.7c2.1,-2.1 4.7,-3.2 7.7,-3.2c3,0 5.5,1.1 7.7,3.2s3.2,4.7 3.2,7.7c0,3 -1,5.5 -3.1,7.7c-2.1,2.1 -4.7,3.2 -7.8,3.2C498.8,788.2 496.3,787.1 494.1,785zM494.3,807.1h15v88.5h-15V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M548,892.4c-6.4,-4 -11.5,-9.7 -15.3,-16.9c-3.8,-7.2 -5.7,-15.3 -5.7,-24.2c0,-8.9 1.9,-17 5.7,-24.2c3.8,-7.2 8.9,-12.8 15.3,-16.9c6.4,-4 13.4,-6.1 21.1,-6.1c6.9,0 13.1,1.5 18.6,4.5c5.5,3 9.6,6.8 12.3,11.3h0.7l-0.7,-12.1v-40.1h15v127.7h-14.3v-13.2h-0.7c-2.7,4.6 -6.8,8.5 -12.3,11.5c-5.5,3 -11.7,4.5 -18.6,4.5C561.5,898.4 554.4,896.4 548,892.4zM585.9,880.7c4.5,-2.7 8,-6.6 10.7,-11.7c2.7,-5.1 4,-11 4,-17.7c0,-6.8 -1.3,-12.7 -4,-17.8c-2.7,-5.1 -6.2,-8.9 -10.7,-11.6c-4.5,-2.7 -9.3,-4 -14.5,-4c-5.2,0 -10.1,1.4 -14.5,4.1c-4.5,2.7 -8,6.6 -10.7,11.7c-2.7,5.1 -4,10.9 -4,17.6c0,6.7 1.3,12.5 4,17.6c2.7,5.1 6.2,9 10.7,11.7c4.5,2.7 9.3,4.1 14.5,4.1C576.6,884.7 581.5,883.4 585.9,880.7z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M700.9,782.3H665v-14.5h86.7v14.5h-35.9v113.3h-15V782.3z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M756.7,807.1h14.4v14.4h0.7c1.7,-4.9 5.1,-9 10.3,-12.3c5.2,-3.3 10.3,-5 15.4,-5c3.7,0 7.1,0.6 10.3,1.8v16.2c-3.2,-1.8 -7.4,-2.7 -12.5,-2.7c-4.2,0 -8.1,1.2 -11.7,3.7c-3.6,2.4 -6.5,5.7 -8.7,9.7s-3.2,8.5 -3.2,13.2v49.4h-15.2V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M823.3,785c-2.1,-2.1 -3.2,-4.7 -3.2,-7.7c0,-3 1.1,-5.5 3.2,-7.7c2.1,-2.1 4.7,-3.2 7.7,-3.2c3,0 5.5,1.1 7.7,3.2s3.2,4.7 3.2,7.7c0,3 -1,5.5 -3.1,7.7c-2.1,2.1 -4.7,3.2 -7.8,3.2C828,788.2 825.4,787.1 823.3,785zM823.5,807.1h15v88.5h-15V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M852,807.1h16.4l27.1,70.6h0.4l27.5,-70.6h16.1l-36.2,88.5h-15.3L852,807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M952.8,785c-2.1,-2.1 -3.2,-4.7 -3.2,-7.7c0,-3 1.1,-5.5 3.2,-7.7c2.1,-2.1 4.7,-3.2 7.7,-3.2c3,0 5.5,1.1 7.7,3.2s3.2,4.7 3.2,7.7c0,3 -1,5.5 -3.1,7.7c-2.1,2.1 -4.7,3.2 -7.8,3.2C957.5,788.2 954.9,787.1 952.8,785zM953,807.1h15v88.5h-15V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M1001.9,894.6c-5.2,-2.6 -9.2,-6.1 -12.1,-10.7c-2.9,-4.6 -4.4,-9.7 -4.4,-15.4c0,-9.4 3.5,-16.7 10.6,-21.9c7.1,-5.2 16.1,-7.8 27.2,-7.8c5.5,0 10.4,0.6 14.8,1.8c4.4,1.2 7.9,2.5 10.5,3.9v-4.6c0,-4.3 -1.1,-8.1 -3.3,-11.5c-2.2,-3.4 -5.1,-6 -8.8,-7.8c-3.7,-1.8 -7.7,-2.8 -12,-2.8c-10.1,0 -17.8,4.1 -23.2,12.3l-12.7,-8.4c3.7,-5.5 8.6,-9.7 14.6,-12.8c6.1,-3 12.9,-4.5 20.5,-4.5c12.1,0 21.7,3.3 28.7,9.8c7,6.5 10.5,15.3 10.5,26.4v55.1h-14.4v-13h-0.7c-2.9,4.5 -6.7,8.3 -11.6,11.3c-4.9,3 -10.5,4.5 -16.9,4.5C1012.9,898.4 1007.1,897.2 1001.9,894.6zM1034.1,881.3c4.3,-2.5 7.8,-5.9 10.4,-10.2c2.7,-4.3 4,-8.9 4,-13.9c-6.7,-4.3 -14.3,-6.4 -23,-6.4c-7.5,0 -13.5,1.7 -17.9,5.1c-4.5,3.4 -6.7,7.7 -6.7,12.9c0,4.8 2,8.7 5.9,11.7c3.9,3 8.5,4.5 13.7,4.5C1025.3,885.1 1029.9,883.8 1034.1,881.3z"/>
|
||||
</vector>
|
||||
25
AndroidTrivia/app/src/main/res/drawable/rules.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M15,15L3,15v2h12v-2zM15,7L3,7v2h12L15,7zM3,13h18v-2L3,11v2zM3,21h18v-2L3,19v2zM3,3v2h18L21,3L3,3z" />
|
||||
</vector>
|
||||
25
AndroidTrivia/app/src/main/res/drawable/settings.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M19.43,12.98c0.04,-0.32 0.07,-0.64 0.07,-0.98s-0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.12,-0.22 -0.39,-0.3 -0.61,-0.22l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.23,-0.09 -0.49,0 -0.61,0.22l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98s0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.12,0.22 0.39,0.3 0.61,0.22l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.23,0.09 0.49,0 0.61,-0.22l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64l-2.11,-1.65zM12,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5s1.57,-3.5 3.5,-3.5 3.5,1.57 3.5,3.5 -1.57,3.5 -3.5,3.5z" />
|
||||
</vector>
|
||||
21
AndroidTrivia/app/src/main/res/drawable/share.xml
Executable file
@ -0,0 +1,21 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FF000000" android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
|
||||
</vector>
|
||||
23
AndroidTrivia/app/src/main/res/drawable/trivia_rules.xml
Executable file
@ -0,0 +1,23 @@
|
||||
<vector android:height="535dp" android:viewportHeight="535"
|
||||
android:viewportWidth="507" android:width="507dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M255.6,256.5c-9.9,0 -18.4,3.5 -25.3,10.3c-6.9,6.9 -10.3,15.3 -10.3,25.3s3.4,18.4 10.3,25.5c6.9,7 15.3,10.6 25.3,10.6c9.9,0 18.4,-3.5 25.5,-10.6c7,-7 10.6,-15.5 10.6,-25.5s-3.5,-18.4 -10.6,-25.3C274.1,260 265.6,256.5 255.6,256.5z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M332.8,63.8c-6.6,-10.4 -15.4,-18.8 -26.4,-25.4l14.1,-25.7c1.1,-2 1.4,-4.3 0.7,-6.5c-0.6,-2.2 -2.1,-4.1 -4.1,-5.2L317,1c-4.2,-2.2 -9.4,-0.7 -11.6,3.5l-14.6,26.6c-11.1,-4 -23.2,-6 -36.4,-6c-12.8,0 -24.5,2 -34.9,5.9L205,4.5c-1.1,-2 -2.9,-3.5 -5.1,-4.1c-2.2,-0.6 -4.5,-0.4 -6.5,0.7c-2,1.1 -3.5,2.9 -4.2,5.2c-0.6,2.2 -0.4,4.5 0.7,6.5l14.3,26.1c-2.5,1.7 -5,3.5 -7.3,5.5c-15.2,12.8 -25.4,28.1 -30.6,45.7l47.6,19.9c2.8,-9.7 7.7,-17.7 14.9,-24.2C235.9,79.3 245,76 256,76c10.5,0 18.9,3 25.3,8.9c6.3,5.9 9.5,13.2 9.5,21.7c0,7.2 -1.9,13.5 -5.6,19c-3.7,5.5 -9.7,12 -18,19.5c-14.4,12.4 -24.3,23.5 -29.8,33.1c-5.5,9.7 -8.3,21.1 -8.3,34.4v13.7h54.2v-6.6c0,-9.7 1.7,-17.7 5.2,-24c3.4,-6.3 9.9,-13.9 19.2,-22.8c12.1,-11.6 21.2,-22.4 27.3,-32.5c6.1,-10.1 9.1,-22.3 9.1,-36.6C344.2,89.2 340.4,75.8 332.8,63.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M23.1,366.2h8.2l23.1,60.9h-8l-6,-16.8H14.1L8,427.2H0L23.1,366.2zM37.9,403.6l-8.1,-22l-2.4,-6.6h-0.3l-2.5,6.6l-8,22H37.9z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M60.9,385h6.9v6.3h0.3c1.2,-2.2 3.1,-4 5.6,-5.4c2.6,-1.5 5.3,-2.2 8.2,-2.2c5.2,0 9.1,1.5 11.8,4.5c2.7,3 4,7.1 4,12.3v26.7h-7.1v-25.6c0,-7.6 -3.5,-11.4 -10.6,-11.4c-2.3,0 -4.3,0.7 -6.1,2c-1.8,1.3 -3.2,3 -4.2,5.1c-1,2.1 -1.5,4.3 -1.5,6.6v23.3h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M115.7,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C122.1,428.5 118.8,427.6 115.7,425.6zM133.8,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5c-2.1,-1.3 -4.4,-1.9 -6.9,-1.9c-2.5,0 -4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2C129.4,422 131.7,421.3 133.8,420.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M158.3,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M194.9,425.6c-3.3,-2 -5.9,-4.7 -7.7,-8.1c-1.8,-3.4 -2.8,-7.2 -2.8,-11.4c0,-4.2 0.9,-8 2.8,-11.4c1.8,-3.4 4.4,-6.1 7.7,-8.1c3.3,-2 7,-2.9 11.1,-2.9c4.1,0 7.9,1 11.2,2.9c3.3,2 5.9,4.7 7.7,8.1c1.8,3.4 2.8,7.2 2.8,11.4c0,4.2 -0.9,8 -2.8,11.4c-1.8,3.4 -4.4,6.1 -7.7,8.1c-3.3,2 -7,2.9 -11.2,2.9C201.9,428.5 198.2,427.5 194.9,425.6zM213.2,420c2.2,-1.3 4,-3.2 5.3,-5.6c1.3,-2.4 2,-5.2 2,-8.4s-0.7,-6 -2,-8.4c-1.3,-2.4 -3.1,-4.3 -5.3,-5.6c-2.2,-1.3 -4.6,-2 -7.1,-2c-2.5,0 -4.9,0.7 -7.1,2c-2.2,1.3 -4,3.2 -5.3,5.6c-1.3,2.4 -2,5.2 -2,8.4s0.7,6 2,8.4c1.3,2.4 3.1,4.3 5.3,5.6c2.2,1.3 4.6,2 7.1,2C208.6,422 211,421.3 213.2,420z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M235.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C237.9,375.9 236.7,375.4 235.7,374.4zM235.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M261.4,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C267.8,428.5 264.5,427.6 261.4,425.6zM279.5,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5s-4.4,-1.9 -6.9,-1.9s-4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2S277.3,421.3 279.5,420.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M334.3,373.1h-17.1v-6.9h41.4v6.9h-17.1v54h-7.1V373.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M360.9,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M392.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C394.9,375.9 393.7,375.4 392.7,374.4zM392.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M406.4,385h7.8l12.9,33.7h0.2l13.1,-33.7h7.7l-17.3,42.2h-7.3L406.4,385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M454.5,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C456.7,375.9 455.5,375.4 454.5,374.4zM454.5,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M477.9,426.7c-2.5,-1.2 -4.4,-2.9 -5.8,-5.1c-1.4,-2.2 -2.1,-4.6 -2.1,-7.4c0,-4.5 1.7,-8 5.1,-10.5c3.4,-2.5 7.7,-3.7 13,-3.7c2.6,0 5,0.3 7.1,0.9c2.1,0.6 3.8,1.2 5,1.9v-2.2c0,-2 -0.5,-3.9 -1.6,-5.5c-1.1,-1.6 -2.5,-2.9 -4.2,-3.7c-1.8,-0.9 -3.7,-1.3 -5.7,-1.3c-4.8,0 -8.5,2 -11.1,5.9l-6,-4c1.8,-2.6 4.1,-4.6 7,-6.1c2.9,-1.4 6.2,-2.2 9.8,-2.2c5.8,0 10.4,1.6 13.7,4.7c3.3,3.1 5,7.3 5,12.6v26.3h-6.9V421h-0.3c-1.4,2.2 -3.2,4 -5.5,5.4c-2.3,1.4 -5,2.2 -8.1,2.2S480.4,427.9 477.9,426.7zM493.3,420.4c2,-1.2 3.7,-2.8 5,-4.9s1.9,-4.3 1.9,-6.6c-3.2,-2 -6.8,-3.1 -11,-3.1c-3.6,0 -6.4,0.8 -8.6,2.4c-2.1,1.6 -3.2,3.7 -3.2,6.2c0,2.3 0.9,4.1 2.8,5.6c1.9,1.4 4.1,2.2 6.6,2.2C489.1,422.1 491.2,421.6 493.3,420.4z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M161.9,472.7h20.7c3.3,0 6.5,0.8 9.4,2.3s5.2,3.7 6.9,6.4c1.7,2.8 2.6,5.9 2.6,9.3c0,2.8 -0.7,5.5 -2,7.9c-1.3,2.4 -3.1,4.5 -5.3,6.1c-2.2,1.6 -4.7,2.8 -7.4,3.3l-0.2,0.3l17.1,24.9v0.3h-8.4l-16.6,-24.8h-9.6v24.8h-7.2V472.7zM182.1,502.1c2.2,0 4.1,-0.5 6,-1.4c1.8,-1 3.3,-2.3 4.4,-4c1.1,-1.7 1.7,-3.7 1.7,-5.8c0,-1.9 -0.5,-3.7 -1.4,-5.4s-2.3,-3.1 -4,-4.2c-1.7,-1.1 -3.7,-1.6 -6,-1.6h-13.5v22.5H182.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M213.1,530.5c-2.7,-3 -4,-7.2 -4,-12.5v-26.5h7.2v25.4c0,7.8 3.5,11.7 10.5,11.7c2.3,0 4.4,-0.7 6.3,-2c1.8,-1.3 3.3,-3 4.3,-5.1c1,-2.1 1.5,-4.3 1.5,-6.6v-23.3h7.1v42.2h-6.8v-6.3h-0.3c-1.2,2.2 -3.1,4 -5.7,5.4c-2.5,1.5 -5.2,2.2 -8.1,2.2C219.8,535 215.8,533.5 213.1,530.5z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M256.5,472.7h7.2v60.9h-7.2V472.7z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M281.8,532.1c-3.2,-1.9 -5.7,-4.6 -7.5,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.6c0,-4.1 0.9,-7.8 2.6,-11.3c1.7,-3.4 4.1,-6.2 7.3,-8.2c3.1,-2 6.8,-3 10.8,-3s7.7,0.9 10.8,2.8c3.1,1.8 5.5,4.4 7.1,7.8c1.6,3.3 2.5,7.2 2.5,11.6c0,0.8 -0.1,1.4 -0.2,1.7h-33.5c0.1,3.2 0.9,5.9 2.3,8c1.4,2.2 3.2,3.8 5.3,4.9c2.1,1.1 4.3,1.6 6.6,1.6c5.3,0 9.4,-2.6 12.3,-7.8l6.4,3.1c-1.8,3.4 -4.3,6.1 -7.5,8.2c-3.2,2.1 -7,3.1 -11.5,3.1C288.6,535 285,534.1 281.8,532.1zM304.9,507.9c-0.1,-1.7 -0.6,-3.4 -1.4,-5.1c-0.9,-1.7 -2.2,-3.1 -4.1,-4.3c-1.9,-1.2 -4.3,-1.8 -7.3,-1.8c-3.2,0 -5.9,1 -8.3,3.1c-2.3,2 -3.8,4.8 -4.4,8.2H304.9z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M324.6,531.6c-3.1,-2.3 -5.3,-5.1 -6.6,-8.4l6.4,-2.8c1.1,2.7 2.7,4.7 4.8,6.1c2.1,1.4 4.3,2.1 6.8,2.1c2.7,0 5,-0.6 6.8,-1.8c1.8,-1.2 2.7,-2.6 2.7,-4.3c0,-1.6 -0.7,-3 -2,-4.1c-1.3,-1.1 -3.6,-2 -6.8,-2.8l-5.8,-1.4c-3.2,-0.7 -5.9,-2.1 -8.1,-4c-2.2,-1.9 -3.4,-4.5 -3.4,-7.7c0,-2.6 0.8,-4.8 2.3,-6.7s3.5,-3.3 6,-4.3c2.5,-1 5.2,-1.4 8.2,-1.4c3.6,0 6.9,0.8 9.9,2.5c3,1.7 5.1,4 6.3,7.1l-6.4,2.7c-0.9,-2 -2.3,-3.5 -4.1,-4.5c-1.8,-1 -3.9,-1.4 -6.2,-1.4c-2.2,0 -4.2,0.5 -6,1.6c-1.8,1.1 -2.7,2.5 -2.7,4.2c0,1.5 0.6,2.6 1.7,3.5c1.2,0.9 3,1.6 5.6,2.3l6.3,1.5c4.2,1.1 7.3,2.7 9.4,4.8c2.1,2.1 3.1,4.7 3.1,7.6c0,2.4 -0.7,4.7 -2.1,6.6c-1.4,2 -3.4,3.5 -6,4.7c-2.6,1.1 -5.4,1.7 -8.7,1.7C331.5,535 327.7,533.9 324.6,531.6z"/>
|
||||
</vector>
|
||||
12
AndroidTrivia/app/src/main/res/drawable/try_again.xml
Executable file
@ -0,0 +1,12 @@
|
||||
<vector android:height="806.5dp" android:viewportHeight="806.5"
|
||||
android:viewportWidth="534.4" android:width="534.4dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M39,230.3c-21.5,0 -39,16.8 -39,37.4l0,156.8C0,445.3 17.5,462 39,462c21.5,0 39,-16.7 39,-37.5l0,-156.8C78,247.1 60.5,230.3 39,230.3M352.7,55.4l27.2,-47.7c1.5,-2.5 0.5,-5.7 -2.1,-7.1c-2.7,-1.3 -5.9,-0.4 -7.3,2.1l-27.5,48.2c-23.1,-9.9 -49,-15.4 -76.4,-15.4c-27.3,0 -53.2,5.5 -76.2,15.3L162.9,2.8c-1.4,-2.5 -4.7,-3.5 -7.3,-2.1c-2.6,1.4 -3.6,4.5 -2.1,7l27.2,47.7c-53.5,26.5 -89.6,76.9 -89.6,134.9l351,0C442.1,132.3 406.1,82 352.7,55.4M186.7,166.5c-8.1,0 -14.7,-6.3 -14.7,-14.1c0,-7.8 6.6,-14.2 14.7,-14.2c8.1,0 14.7,6.4 14.7,14.2C201.5,160.2 194.9,166.5 186.7,166.5M346.6,166.5c-8.1,0 -14.7,-6.3 -14.7,-14.1c0,-7.7 6.6,-14.1 14.7,-14.2c8.1,0 14.7,6.4 14.7,14.2C361.3,160.1 354.7,166.5 346.6,166.5M93.1,202.8l0.1,243c0,22.1 18.6,39.9 41.6,40l28.3,0l0,83c0,20.7 17.5,37.4 38.9,37.4c21.5,0 39,-16.8 39,-37.5l0,-83l52.6,0l0,83c0,20.6 17.5,37.5 39,37.4c21.5,0 39,-16.8 39,-37.5l0,-82.9l28.4,0c22.9,0 41.6,-17.9 41.6,-40l0,-243L93.1,202.8zM534.4,267.7c0,-20.7 -17.4,-37.4 -39,-37.4c-21.5,0 -39,16.8 -39,37.5l0,156.8c0,20.7 17.4,37.4 39,37.4c21.5,0 39,-16.7 39,-37.5L534.4,267.7z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M28.8,698.2H2.7v-10.1h63.2v10.1H39.8v79.3H28.8V698.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M69.5,715.5h10.5v10.1h0.5c1.2,-3.4 3.7,-6.3 7.5,-8.6c3.8,-2.3 7.5,-3.5 11.2,-3.5c2.7,0 5.2,0.4 7.5,1.2v11.4c-2.3,-1.2 -5.4,-1.9 -9.1,-1.9c-3,0 -5.9,0.9 -8.5,2.6c-2.6,1.7 -4.7,4 -6.3,6.8c-1.6,2.8 -2.3,5.9 -2.3,9.3v34.6H69.5V715.5z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M139.6,773.5l-26.8,-58h12l20,45.6h0.3l19.4,-45.6h12l-40.3,88.9h-11.3L139.6,773.5z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M240.7,688.1h12.5l35.4,89.4h-12.2l-9.2,-24.6H227l-9.4,24.6h-12.2L240.7,688.1zM263.2,742.9l-12.3,-32.2l-3.6,-9.6h-0.5l-3.8,9.6l-12.2,32.2H263.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M306.4,801.1c-4.9,-3.6 -8.3,-7.7 -10,-12.5l10.3,-4.1c1.3,3.7 3.6,6.6 7,8.9c3.3,2.3 7.3,3.4 11.9,3.4c6.8,0 12.1,-1.9 15.8,-5.7c3.7,-3.8 5.5,-9.2 5.5,-16v-6.6h-0.5c-2.1,3.2 -5.1,5.8 -9,7.9c-3.9,2.1 -8.3,3.1 -13.3,3.1c-5.5,0 -10.5,-1.4 -15.2,-4.3c-4.7,-2.8 -8.4,-6.8 -11.2,-11.8c-2.8,-5 -4.2,-10.7 -4.2,-16.9s1.4,-11.9 4.2,-16.9c2.8,-5 6.5,-8.9 11.2,-11.8c4.7,-2.8 9.8,-4.3 15.2,-4.3c4.9,0 9.4,1 13.3,3.1c3.9,2.1 6.9,4.7 9,7.9h0.5v-9h10.5V775c0,6.8 -1.4,12.6 -4.2,17.4c-2.8,4.7 -6.6,8.3 -11.4,10.6c-4.8,2.3 -10.2,3.5 -16.3,3.5C317.7,806.5 311.3,804.7 306.4,801.1zM336.3,767.1c3.2,-1.9 5.8,-4.6 7.7,-8.1c2,-3.5 2.9,-7.7 2.9,-12.4s-1,-8.9 -2.9,-12.5c-2,-3.6 -4.5,-6.3 -7.7,-8.1c-3.2,-1.8 -6.7,-2.8 -10.5,-2.8c-3.8,0 -7.3,0.9 -10.5,2.8c-3.2,1.9 -5.8,4.6 -7.7,8.1c-1.9,3.5 -2.9,7.7 -2.9,12.4s1,8.9 2.9,12.4c2,3.5 4.5,6.2 7.7,8.1c3.2,1.9 6.7,2.8 10.5,2.8C329.6,769.9 333.1,768.9 336.3,767.1z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M381.2,776.8c-3.8,-1.8 -6.7,-4.3 -8.8,-7.5c-2.1,-3.2 -3.2,-6.8 -3.2,-10.8c0,-6.6 2.6,-11.7 7.7,-15.4c5.2,-3.7 11.8,-5.5 19.8,-5.5c4,0 7.6,0.4 10.8,1.2c3.2,0.8 5.8,1.7 7.7,2.7v-3.2c0,-3 -0.8,-5.7 -2.4,-8.1c-1.6,-2.4 -3.8,-4.2 -6.4,-5.5c-2.7,-1.3 -5.6,-1.9 -8.7,-1.9c-7.4,0 -13,2.9 -16.9,8.6l-9.2,-5.9c2.7,-3.8 6.2,-6.8 10.7,-8.9c4.4,-2.1 9.4,-3.2 15,-3.2c8.8,0 15.8,2.3 20.9,6.9c5.1,4.6 7.7,10.7 7.7,18.5v38.6h-10.5v-9.1h-0.5c-2.1,3.2 -4.9,5.8 -8.5,7.9c-3.6,2.1 -7.7,3.2 -12.3,3.2C389.2,779.5 385,778.6 381.2,776.8zM404.7,767.5c3.1,-1.7 5.7,-4.1 7.6,-7.1s2.9,-6.2 2.9,-9.7c-4.9,-3 -10.4,-4.5 -16.8,-4.5c-5.5,0 -9.8,1.2 -13.1,3.6c-3.2,2.4 -4.9,5.4 -4.9,9.1c0,3.3 1.4,6.1 4.3,8.2c2.9,2.1 6.2,3.2 10,3.2C398.2,770.1 401.5,769.3 404.7,767.5z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M441.7,700c-1.6,-1.5 -2.3,-3.3 -2.3,-5.4c0,-2.1 0.8,-3.9 2.3,-5.4c1.6,-1.5 3.4,-2.2 5.6,-2.2c2.2,0 4,0.7 5.6,2.2c1.6,1.5 2.3,3.3 2.3,5.4c0,2.1 -0.8,3.9 -2.3,5.4c-1.5,1.5 -3.4,2.2 -5.7,2.2C445.1,702.3 443.3,701.5 441.7,700zM441.8,715.5h10.9v62h-10.9V715.5z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M469.9,715.5h10.5v9.2h0.5c1.8,-3.2 4.7,-5.8 8.6,-8c3.9,-2.2 8.1,-3.2 12.5,-3.2c7.9,0 13.9,2.2 18,6.6c4.1,4.4 6.2,10.5 6.2,18.1v39.2h-10.9v-37.6c0,-11.2 -5.4,-16.7 -16.2,-16.7c-3.5,0 -6.6,1 -9.4,2.9c-2.8,1.9 -4.9,4.4 -6.4,7.5c-1.5,3.1 -2.3,6.3 -2.3,9.7v34.2h-11.1V715.5z"/>
|
||||
</vector>
|
||||
20
AndroidTrivia/app/src/main/res/drawable/you_win.xml
Executable file
@ -0,0 +1,20 @@
|
||||
<vector android:height="839.3dp" android:viewportHeight="839.3"
|
||||
android:viewportWidth="936.8" android:width="936.8dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M269.6,269.7c15.2,-15.2 15.2,-39.9 0,-55.1L154.2,99.2C139,84 114.3,84 99.1,99.2c-15.2,15.2 -15.2,39.9 0,55.1l115.4,115.4C229.7,284.9 254.4,284.9 269.6,269.7M554.5,57.7L581.7,8c1.5,-2.6 0.5,-5.9 -2.1,-7.4c-2.7,-1.4 -5.9,-0.5 -7.3,2.2L544.8,53c-23.1,-10.3 -49,-16.1 -76.4,-16c-27.3,0 -53.2,5.7 -76.2,16L364.7,2.9c-1.4,-2.6 -4.7,-3.6 -7.3,-2.2c-2.6,1.4 -3.6,4.7 -2.1,7.3l27.2,49.6C329,85.2 292.9,137.7 292.9,198l351,0C644,137.7 607.9,85.3 554.5,57.7M388.6,134.4c-8.1,0 -14.7,-6.6 -14.7,-14.7c0,-8.1 6.6,-14.7 14.7,-14.7c8.1,0 14.7,6.6 14.7,14.7C403.3,127.8 396.7,134.4 388.6,134.4M548.4,134.4c-8.1,0 -14.7,-6.6 -14.7,-14.7c0,-8.1 6.6,-14.7 14.7,-14.7c8.1,0 14.7,6.7 14.7,14.8C563.1,127.8 556.5,134.4 548.4,134.4M294.9,211l0.1,252.9c0,23 18.6,41.6 41.6,41.6l28.3,0l0,86.3c0,21.5 17.5,39 38.9,39c21.5,0 39,-17.5 39,-39l0,-86.3l52.6,0l0,86.3c0,21.5 17.5,39 39,39c21.5,0 39,-17.5 39,-39l0,-86.3l28.4,0c22.9,0 41.6,-18.6 41.6,-41.6l0,-252.9L294.9,211zM669.7,269.7c15.2,15.2 39.9,15.2 55.1,0l115.4,-115.4c15.3,-15.2 15.2,-39.9 0,-55.1C825,84 800.4,84 785.1,99.2L669.7,214.6C654.5,229.8 654.5,254.5 669.7,269.7"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M23.7,804.8c-7.4,-4.2 -13.2,-10.1 -17.4,-17.5C2.1,779.8 0,771.6 0,762.6c0,-9 2.1,-17.2 6.3,-24.7c4.2,-7.5 10,-13.3 17.4,-17.5c7.4,-4.2 15.5,-6.4 24.4,-6.4c7,0 13.4,1.3 19.2,4c5.8,2.6 10.7,6.4 14.9,11.2l-7.8,7.7c-3.5,-4.2 -7.3,-7.4 -11.6,-9.4c-4.3,-2 -9.2,-3 -14.6,-3c-6.7,0 -12.8,1.6 -18.5,4.7c-5.6,3.2 -10.1,7.6 -13.5,13.4c-3.3,5.8 -5,12.4 -5,20s1.7,14.2 5,20c3.3,5.8 7.8,10.2 13.5,13.4c5.6,3.2 11.8,4.7 18.5,4.7c11.4,0 21,-4.6 28.9,-13.9l7.9,7.8c-4.2,5.1 -9.5,9.2 -15.9,12.2c-6.3,3 -13.3,4.5 -20.9,4.5C39.2,811.2 31,809.1 23.7,804.8z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M108,806.7c-5,-3 -9,-7.1 -11.8,-12.3c-2.8,-5.2 -4.2,-11.1 -4.2,-17.5c0,-6.4 1.4,-12.2 4.2,-17.5c2.8,-5.2 6.7,-9.4 11.8,-12.4c5,-3 10.7,-4.5 17,-4.5c6.3,0 12,1.5 17.1,4.5c5.1,3 9,7.1 11.8,12.4c2.8,5.2 4.2,11.1 4.2,17.5c0,6.4 -1.4,12.2 -4.2,17.5c-2.8,5.2 -6.8,9.4 -11.8,12.3c-5.1,3 -10.8,4.5 -17.1,4.5C118.7,811.2 113.1,809.7 108,806.7zM136,798.2c3.4,-2 6.1,-4.8 8.1,-8.5c2,-3.7 3.1,-8 3.1,-12.8c0,-4.9 -1,-9.1 -3.1,-12.8c-2,-3.7 -4.7,-6.5 -8.1,-8.5c-3.4,-2 -7,-3 -10.9,-3c-3.8,0 -7.4,1 -10.8,3c-3.4,2 -6.1,4.8 -8.1,8.5c-2,3.7 -3.1,8 -3.1,12.8c0,4.9 1,9.1 3.1,12.8c2,3.7 4.7,6.5 8.1,8.5c3.4,2 7,3 10.8,3C129,801.2 132.6,800.2 136,798.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M169.4,744.6h10.5v9.6h0.5c1.8,-3.3 4.7,-6.1 8.6,-8.3c3.9,-2.3 8.1,-3.4 12.5,-3.4c7.9,0 13.9,2.3 18,6.9c4.1,4.6 6.2,10.9 6.2,18.8v40.8h-10.9V770c0,-11.6 -5.4,-17.4 -16.2,-17.4c-3.5,0 -6.6,1 -9.4,3c-2.8,2 -4.9,4.6 -6.4,7.8c-1.5,3.2 -2.3,6.6 -2.3,10.1v35.6h-11V744.6z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M250,833.7c-4.9,-3.7 -8.3,-8.1 -10,-13l10.3,-4.3c1.3,3.8 3.6,6.9 7,9.3c3.3,2.4 7.3,3.6 11.9,3.6c6.8,0 12.1,-2 15.8,-6c3.7,-4 5.5,-9.5 5.5,-16.7v-6.9h-0.5c-2.1,3.3 -5.1,6 -9,8.2c-3.9,2.2 -8.3,3.2 -13.3,3.2c-5.5,0 -10.5,-1.5 -15.2,-4.4c-4.7,-3 -8.4,-7 -11.2,-12.3c-2.8,-5.2 -4.2,-11.1 -4.2,-17.6s1.4,-12.4 4.2,-17.6c2.8,-5.2 6.5,-9.3 11.2,-12.3c4.7,-3 9.8,-4.4 15.2,-4.4c4.9,0 9.4,1.1 13.3,3.2c3.9,2.2 6.9,4.9 9,8.2h0.5v-9.4H301v61.9c0,7.1 -1.4,13.1 -4.2,18.1c-2.8,4.9 -6.6,8.6 -11.4,11c-4.8,2.4 -10.2,3.6 -16.3,3.6C261.3,839.3 254.9,837.4 250,833.7zM279.9,798.2c3.2,-2 5.8,-4.8 7.7,-8.4c2,-3.7 2.9,-8 2.9,-12.9c0,-5 -1,-9.3 -2.9,-13c-1.9,-3.7 -4.5,-6.5 -7.7,-8.4c-3.2,-1.9 -6.7,-2.9 -10.5,-2.9c-3.8,0 -7.3,1 -10.5,2.9c-3.2,2 -5.8,4.8 -7.7,8.4c-2,3.7 -2.9,8 -2.9,12.9c0,5 1,9.3 2.9,12.9c1.9,3.7 4.5,6.5 7.7,8.4c3.2,2 6.7,2.9 10.5,2.9C273.2,801.2 276.7,800.2 279.9,798.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M317.2,744.6h10.5v10.5h0.5c1.2,-3.6 3.7,-6.5 7.5,-9c3.8,-2.4 7.5,-3.6 11.2,-3.6c2.7,0 5.2,0.4 7.5,1.3v11.8c-2.3,-1.3 -5.4,-2 -9.1,-2c-3,0 -5.9,0.9 -8.5,2.7c-2.6,1.8 -4.7,4.1 -6.3,7.1c-1.6,3 -2.3,6.2 -2.3,9.6v36h-11.1V744.6z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M370.4,808.4c-3.8,-1.9 -6.7,-4.5 -8.8,-7.8c-2.1,-3.3 -3.2,-7.1 -3.2,-11.2c0,-6.8 2.6,-12.2 7.7,-16c5.2,-3.8 11.8,-5.7 19.8,-5.7c4,0 7.6,0.4 10.8,1.3c3.2,0.9 5.8,1.8 7.7,2.9v-3.4c0,-3.1 -0.8,-5.9 -2.4,-8.4c-1.6,-2.5 -3.8,-4.4 -6.4,-5.7c-2.7,-1.3 -5.6,-2 -8.7,-2c-7.4,0 -13,3 -16.9,9l-9.2,-6.1c2.7,-4 6.2,-7.1 10.7,-9.3s9.4,-3.3 15,-3.3c8.8,0 15.8,2.4 20.9,7.1c5.1,4.8 7.7,11.2 7.7,19.2v40.2h-10.5v-9.5h-0.5c-2.1,3.3 -4.9,6 -8.4,8.3c-3.6,2.2 -7.7,3.3 -12.3,3.3C378.4,811.2 374.2,810.3 370.4,808.4zM393.9,798.7c3.1,-1.8 5.7,-4.3 7.6,-7.4c1.9,-3.1 2.9,-6.5 2.9,-10.1c-4.9,-3.1 -10.4,-4.7 -16.8,-4.7c-5.5,0 -9.8,1.2 -13.1,3.7s-4.9,5.6 -4.9,9.4c0,3.5 1.4,6.3 4.3,8.5s6.2,3.3 10,3.3C387.5,801.4 390.8,800.5 393.9,798.7z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M446.4,809.9c-2.2,-0.9 -4.1,-2.1 -5.7,-3.6c-1.7,-1.7 -3,-3.6 -3.8,-5.9c-0.8,-2.3 -1.2,-4.9 -1.2,-8v-37.7h-11.4v-10h11.4v-19.2h10.9v19.2h15.9v10h-15.9v35.1c0,3.7 0.7,6.5 2.2,8.2c1.5,2 3.7,2.9 6.8,2.9c2.7,0 5,-0.6 7,-1.8v10.7c-1.4,0.5 -2.7,0.9 -4,1.1c-1.3,0.2 -2.9,0.3 -5,0.3C451,811.2 448.6,810.7 446.4,809.9z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M480.9,804.3c-4.1,-4.6 -6.2,-11 -6.2,-19.1v-40.6h11v38.7c0,11.9 5.3,17.8 16,17.8c3.6,0 6.7,-1 9.6,-3c2.8,-2 5,-4.6 6.5,-7.8c1.5,-3.2 2.3,-6.6 2.3,-10.1v-35.6H531v64.5h-10.4v-9.6h-0.5c-1.9,3.3 -4.8,6.1 -8.6,8.3c-3.9,2.3 -8,3.4 -12.4,3.4C491.1,811.2 485,808.9 480.9,804.3z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M547.3,716h11.1v93.1h-11.1V716z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M582.1,808.4c-3.8,-1.9 -6.7,-4.5 -8.8,-7.8c-2.1,-3.3 -3.2,-7.1 -3.2,-11.2c0,-6.8 2.6,-12.2 7.7,-16c5.2,-3.8 11.8,-5.7 19.8,-5.7c4,0 7.6,0.4 10.8,1.3c3.2,0.9 5.8,1.8 7.7,2.9v-3.4c0,-3.1 -0.8,-5.9 -2.4,-8.4c-1.6,-2.5 -3.8,-4.4 -6.4,-5.7c-2.7,-1.3 -5.6,-2 -8.7,-2c-7.4,0 -13,3 -16.9,9l-9.2,-6.1c2.7,-4 6.2,-7.1 10.7,-9.3s9.4,-3.3 15,-3.3c8.8,0 15.8,2.4 20.9,7.1c5.1,4.8 7.7,11.2 7.7,19.2v40.2h-10.5v-9.5h-0.5c-2.1,3.3 -4.9,6 -8.5,8.3c-3.6,2.2 -7.7,3.3 -12.3,3.3C590.1,811.2 585.8,810.3 582.1,808.4zM605.5,798.7c3.1,-1.8 5.7,-4.3 7.6,-7.4c2,-3.1 2.9,-6.5 2.9,-10.1c-4.9,-3.1 -10.4,-4.7 -16.8,-4.7c-5.5,0 -9.8,1.2 -13.1,3.7s-4.9,5.6 -4.9,9.4c0,3.5 1.4,6.3 4.3,8.5c2.9,2.2 6.2,3.3 10,3.3C599.1,801.4 602.4,800.5 605.5,798.7z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M658,809.9c-2.2,-0.9 -4.1,-2.1 -5.7,-3.6c-1.7,-1.7 -3,-3.6 -3.8,-5.9c-0.8,-2.3 -1.2,-4.9 -1.2,-8v-37.7h-11.4v-10h11.4v-19.2h10.9v19.2H674v10h-15.9v35.1c0,3.7 0.7,6.5 2.2,8.2c1.5,2 3.7,2.9 6.8,2.9c2.7,0 5,-0.6 7,-1.8v10.7c-1.4,0.5 -2.7,0.9 -4,1.1c-1.3,0.2 -2.9,0.3 -5,0.3C662.6,811.2 660.2,810.7 658,809.9z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M688.5,728.5c-1.6,-1.6 -2.3,-3.4 -2.3,-5.6c0,-2.2 0.8,-4 2.3,-5.6c1.6,-1.6 3.4,-2.3 5.6,-2.3c2.2,0 4,0.8 5.6,2.3c1.6,1.6 2.3,3.4 2.3,5.6c0,2.2 -0.8,4 -2.3,5.6c-1.5,1.6 -3.4,2.3 -5.7,2.3C691.9,730.8 690,730.1 688.5,728.5zM688.6,744.6h10.9v64.5h-10.9V744.6z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M728.4,806.7c-5,-3 -9,-7.1 -11.8,-12.3c-2.8,-5.2 -4.2,-11.1 -4.2,-17.5c0,-6.4 1.4,-12.2 4.2,-17.5c2.8,-5.2 6.7,-9.4 11.8,-12.4c5,-3 10.7,-4.5 17,-4.5c6.3,0 12,1.5 17.1,4.5s9,7.1 11.8,12.4c2.8,5.2 4.2,11.1 4.2,17.5c0,6.4 -1.4,12.2 -4.2,17.5c-2.8,5.2 -6.8,9.4 -11.8,12.3c-5.1,3 -10.8,4.5 -17.1,4.5C739.1,811.2 733.4,809.7 728.4,806.7zM756.3,798.2c3.4,-2 6.1,-4.8 8.1,-8.5c2,-3.7 3.1,-8 3.1,-12.8c0,-4.9 -1,-9.1 -3.1,-12.8c-2,-3.7 -4.7,-6.5 -8.1,-8.5c-3.4,-2 -7,-3 -10.9,-3c-3.8,0 -7.4,1 -10.8,3c-3.4,2 -6.1,4.8 -8.1,8.5c-2,3.7 -3.1,8 -3.1,12.8c0,4.9 1,9.1 3.1,12.8c2,3.7 4.7,6.5 8.1,8.5c3.4,2 7,3 10.8,3C749.3,801.2 753,800.2 756.3,798.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M789.7,744.6h10.5v9.6h0.5c1.8,-3.3 4.7,-6.1 8.6,-8.3c3.9,-2.3 8.1,-3.4 12.5,-3.4c7.9,0 13.9,2.3 18,6.9c4.1,4.6 6.2,10.9 6.2,18.8v40.8h-10.9V770c0,-11.6 -5.4,-17.4 -16.2,-17.4c-3.5,0 -6.6,1 -9.4,3c-2.8,2 -4.9,4.6 -6.4,7.8c-1.5,3.2 -2.3,6.6 -2.3,10.1v35.6h-11.1V744.6z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M866.4,806c-4.8,-3.5 -8.1,-7.8 -10,-12.9l9.8,-4.3c1.7,4.1 4.2,7.2 7.3,9.4c3.2,2.2 6.6,3.2 10.3,3.2c4.2,0 7.6,-0.9 10.3,-2.7c2.7,-1.8 4.1,-4 4.1,-6.6c0,-2.5 -1,-4.6 -3.1,-6.2c-2,-1.6 -5.5,-3.1 -10.5,-4.3l-8.8,-2.2c-4.9,-1.1 -9,-3.2 -12.4,-6.1c-3.4,-2.9 -5.1,-6.8 -5.1,-11.7c0,-4 1.1,-7.4 3.4,-10.3c2.3,-2.9 5.3,-5 9.2,-6.5c3.8,-1.5 8,-2.2 12.5,-2.2c5.5,0 10.6,1.3 15.1,3.8c4.5,2.6 7.8,6.2 9.7,10.9l-9.8,4.2c-1.4,-3.1 -3.5,-5.4 -6.3,-6.9c-2.8,-1.5 -6,-2.2 -9.4,-2.2c-3.4,0 -6.4,0.8 -9.2,2.5c-2.7,1.6 -4.1,3.8 -4.1,6.4c0,2.3 0.9,4 2.7,5.3c1.8,1.3 4.6,2.5 8.5,3.5l9.6,2.3c6.4,1.6 11.2,4.1 14.4,7.3c3.2,3.2 4.7,7.1 4.7,11.6c0,3.7 -1.1,7.1 -3.2,10.1c-2.2,3 -5.2,5.4 -9.1,7.2c-3.9,1.7 -8.3,2.6 -13.3,2.6C877,811.2 871.2,809.4 866.4,806z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M922.7,806.7c-1.6,-1.6 -2.4,-3.6 -2.4,-5.9c0,-2.3 0.8,-4.2 2.4,-5.8c1.6,-1.6 3.6,-2.4 5.9,-2.4c2.3,0 4.2,0.8 5.8,2.4c1.6,1.6 2.4,3.5 2.4,5.8c0,2.3 -0.8,4.3 -2.4,5.9c-1.6,1.6 -3.5,2.4 -5.8,2.4C926.2,809.1 924.3,808.3 922.7,806.7zM923.1,747.6V716H934v31.6l-1.3,34.1h-8.5L923.1,747.6z"/>
|
||||
</vector>
|
||||
47
AndroidTrivia/app/src/main/res/layout/activity_main.xml
Executable file
@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<androidx.drawerlayout.widget.DrawerLayout
|
||||
android:id="@+id/drawerLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/myNavHostFragment"
|
||||
android:name="androidx.navigation.fragment.NavHostFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:navGraph="@navigation/navigation"
|
||||
app:defaultNavHost="true"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<com.google.android.material.navigation.NavigationView
|
||||
android:id="@+id/navView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
app:headerLayout="@layout/nav_header"
|
||||
app:menu="@menu/navdrawer_menu" />
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
||||
</layout>
|
||||
55
AndroidTrivia/app/src/main/res/layout/fragment_about.xml
Executable file
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<ScrollView 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"
|
||||
android:fillViewport="true"
|
||||
tools:context="com.example.android.navigation.AboutFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/aboutImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/image_header_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/about_android_trivia" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/rulesText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:text="@string/about_text"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/aboutImage" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
137
AndroidTrivia/app/src/main/res/layout/fragment_game.xml
Executable file
@ -0,0 +1,137 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout 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"
|
||||
tools:context="com.example.android.navigation.InGame">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="game"
|
||||
type="com.example.android.navigation.GameFragment" />
|
||||
</data>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/frameLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/questionImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/image_header_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:layout_marginBottom="@dimen/vertical_margin"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toTopOf="@+id/questionText"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:srcCompat="@drawable/android_category_simple" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/questionText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/question_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/question_horizontal_margin"
|
||||
android:layout_marginBottom="@dimen/vertical_margin"
|
||||
android:fontFamily="sans-serif"
|
||||
android:text="@{game.currentQuestion.text}"
|
||||
android:textSize="@dimen/question_text_size"
|
||||
android:textStyle="bold"
|
||||
android:typeface="normal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/questionImage"
|
||||
tools:text="What color is the Android mascot?" />
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/questionRadioGroup"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/question_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/question_horizontal_margin"
|
||||
android:animateLayoutChanges="true"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/questionText">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/firstAnswerRadioButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/question_vertical_margin"
|
||||
android:checked="true"
|
||||
android:text="@{game.answers[0]}"
|
||||
android:textSize="@dimen/answer_text_size"
|
||||
tools:text="Blue" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/secondAnswerRadioButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/question_vertical_margin"
|
||||
android:text="@{game.answers[1]}"
|
||||
android:textSize="@dimen/answer_text_size"
|
||||
tools:text="Green" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/thirdAnswerRadioButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/question_vertical_margin"
|
||||
android:text="@{game.answers[2]}"
|
||||
android:textSize="@dimen/answer_text_size"
|
||||
tools:text="Yellow" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/fourthAnswerRadioButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{game.answers[3]}"
|
||||
android:textSize="@dimen/answer_text_size"
|
||||
tools:text="Red" />
|
||||
</RadioGroup>
|
||||
|
||||
<Button
|
||||
android:id="@+id/submitButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/question_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/question_horizontal_margin"
|
||||
android:text="@string/submit_button"
|
||||
android:textSize="@dimen/button_text_size"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/questionRadioGroup" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
</layout>
|
||||
62
AndroidTrivia/app/src/main/res/layout/fragment_game_over.xml
Executable file
@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout 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"
|
||||
tools:context="com.example.android.navigation.GameOverFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/gameOverConstraintLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/gameOverBackground">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/gameOverFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="362dp"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toTopOf="@+id/tryAgainButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:srcCompat="@drawable/try_again" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/tryAgainButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/vertical_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/vertical_margin"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:paddingStart="@dimen/button_padding"
|
||||
android:paddingEnd="@dimen/button_padding"
|
||||
android:text="@string/try_again"
|
||||
android:textColor="?colorAccent"
|
||||
android:textSize="@dimen/button_text_size"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/gameOverFragment" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
59
AndroidTrivia/app/src/main/res/layout/fragment_game_won.xml
Executable file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout 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"
|
||||
tools:context="com.example.android.navigation.GameWonFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/gameWonConstraintLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/youWinBackground">
|
||||
|
||||
<Button
|
||||
android:id="@+id/nextMatchButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/button_padding"
|
||||
android:paddingEnd="@dimen/button_padding"
|
||||
android:text="Next Match"
|
||||
android:textColor="@color/youWinDark"
|
||||
android:textSize="@dimen/button_text_size"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/youWinImage" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/youWinImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/game_over_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:layout_marginBottom="@dimen/vertical_margin"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toTopOf="@+id/nextMatchButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/you_win" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
54
AndroidTrivia/app/src/main/res/layout/fragment_rules.xml
Executable file
@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<ScrollView 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"
|
||||
android:fillViewport="true"
|
||||
tools:context="com.example.android.navigation.RulesFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/rulesImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/image_header_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/trivia_rules" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/rulesText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:text="@string/rules_text"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rulesImage" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
61
AndroidTrivia/app/src/main/res/layout/fragment_title.xml
Executable file
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout 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"
|
||||
tools:context="com.example.android.navigation.TitleFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/titleConstraint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<Button
|
||||
android:id="@+id/playButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:paddingStart="@dimen/button_padding"
|
||||
android:paddingEnd="@dimen/button_padding"
|
||||
android:text="Play"
|
||||
android:textColor="@color/colorAccent"
|
||||
android:textSize="@dimen/button_text_size"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/titleImage" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/titleImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/image_header_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toTopOf="@+id/playButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/android_trivia" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
41
AndroidTrivia/app/src/main/res/layout/nav_header.xml
Executable file
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/navHeader"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="192dp"
|
||||
android:background="?attr/colorPrimaryDark"
|
||||
android:padding="16dp"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/navHeaderImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/nav_header" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
13
AndroidTrivia/app/src/main/res/menu/navdrawer_menu.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/rulesFragment"
|
||||
android:icon="@drawable/rules"
|
||||
android:title="@string/rules" />
|
||||
<item
|
||||
android:id="@+id/aboutFragment"
|
||||
android:icon="@drawable/about_android_trivia"
|
||||
android:title="@string/about" />
|
||||
</menu>
|
||||
8
AndroidTrivia/app/src/main/res/menu/options_menu.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/aboutFragment"
|
||||
android:title="@string/about" />
|
||||
</menu>
|
||||
28
AndroidTrivia/app/src/main/res/menu/winner_menu.xml
Executable file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/share"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/share"
|
||||
android:title="@string/share"
|
||||
android:visible="true"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
21
AndroidTrivia/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Executable file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
21
AndroidTrivia/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Executable file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
BIN
AndroidTrivia/app/src/main/res/mipmap-hdpi/ic_launcher.png
Executable file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Executable file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-mdpi/ic_launcher.png
Executable file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Executable file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Executable file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Executable file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Executable file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Executable file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Executable file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
AndroidTrivia/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Executable file
|
After Width: | Height: | Size: 7.0 KiB |
71
AndroidTrivia/app/src/main/res/navigation/navigation.xml
Normal file
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<navigation 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/navigation"
|
||||
app:startDestination="@id/titleFragment">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/titleFragment"
|
||||
android:name="com.example.android.navigation.TitleFragment"
|
||||
android:label="fragment_title"
|
||||
tools:layout="@layout/fragment_title" >
|
||||
<action
|
||||
android:id="@+id/action_titleFragment_to_gameFragment"
|
||||
app:destination="@id/gameFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/gameFragment"
|
||||
android:name="com.example.android.navigation.GameFragment"
|
||||
android:label="GameFragment"
|
||||
tools:layout="@layout/fragment_game" >
|
||||
<action
|
||||
android:id="@+id/action_gameFragment_to_gameOverFragment"
|
||||
app:destination="@id/gameOverFragment"
|
||||
app:popUpTo="@+id/gameFragment"
|
||||
app:popUpToInclusive="true" />
|
||||
<action
|
||||
android:id="@+id/action_gameFragment_to_gameWonFragment"
|
||||
app:destination="@id/gameWonFragment"
|
||||
app:popUpTo="@+id/gameFragment"
|
||||
app:popUpToInclusive="true" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/gameOverFragment"
|
||||
android:name="com.example.android.navigation.GameOverFragment"
|
||||
android:label="fragment_game_over"
|
||||
tools:layout="@layout/fragment_game_over" >
|
||||
<action
|
||||
android:id="@+id/action_gameOverFragment_to_gameFragment"
|
||||
app:destination="@id/gameFragment"
|
||||
app:popUpTo="@+id/titleFragment"
|
||||
app:popUpToInclusive="false" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/gameWonFragment"
|
||||
android:name="com.example.android.navigation.GameWonFragment"
|
||||
android:label="fragment_game_won"
|
||||
tools:layout="@layout/fragment_game_won" >
|
||||
<action
|
||||
android:id="@+id/action_gameWonFragment_to_gameFragment"
|
||||
app:destination="@id/gameFragment"
|
||||
app:popUpTo="@+id/titleFragment"
|
||||
app:popUpToInclusive="false" />
|
||||
<argument
|
||||
android:name="numQuestions"
|
||||
app:argType="integer" />
|
||||
<argument
|
||||
android:name="numCorrect"
|
||||
app:argType="integer" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/aboutFragment"
|
||||
android:name="com.example.android.navigation.AboutFragment"
|
||||
android:label="fragment_about"
|
||||
tools:layout="@layout/fragment_about" />
|
||||
<fragment
|
||||
android:id="@+id/rulesFragment"
|
||||
android:name="com.example.android.navigation.RulesFragment"
|
||||
android:label="fragment_rules"
|
||||
tools:layout="@layout/fragment_rules" />
|
||||
</navigation>
|
||||
25
AndroidTrivia/app/src/main/res/values/colors.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<color name="colorPrimary">#008577</color>
|
||||
<color name="colorPrimaryDark">#00574B</color>
|
||||
<color name="colorAccent">#7e53c5</color>
|
||||
<color name="youWinDark">#35A571</color>
|
||||
<color name="youWinBackground">#B7F8C9</color>
|
||||
<color name="gameOverBackground">#f8bbd0</color>
|
||||
</resources>
|
||||
29
AndroidTrivia/app/src/main/res/values/dimens.xml
Executable file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<dimen name="vertical_margin">16dp</dimen>
|
||||
<dimen name="horizontal_margin">8dp</dimen>
|
||||
<dimen name="button_padding">16dp</dimen>
|
||||
<dimen name="button_text_size">18sp</dimen>
|
||||
<dimen name="question_horizontal_margin">32dp</dimen>
|
||||
<dimen name="question_vertical_margin">8dp</dimen>
|
||||
<dimen name="answer_text_size">18sp</dimen>
|
||||
<dimen name="question_text_size">30sp</dimen>
|
||||
<dimen name="image_header_height">192dp</dimen>
|
||||
<dimen name="game_over_height">350dp</dimen>
|
||||
</resources>
|
||||
40
AndroidTrivia/app/src/main/res/values/strings.xml
Executable file
@ -0,0 +1,40 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<string name="app_name">Android Trivia</string>
|
||||
<string name="game_over">Game Over</string>
|
||||
<string name="try_again">Try Again?</string>
|
||||
<string name="position">Position</string>
|
||||
<string name="select_an_avatar">Select an Avatar</string>
|
||||
<string name="android_trivia">Android Trivia</string>
|
||||
<string name="about_text">Android Trivia will help remind you of important concepts you have learned and will learn in Android development.\n\nConsider modifying the questions and graphics to make this game your own!</string>
|
||||
<string name="rules_text">Select the answer from the options given. Each time you get an answer correct, you advance to the next question.\n\nIf you get the answer wrong, your game ends! You can return to the title screen using up or back from within the game screen, and this will also end your game.</string>
|
||||
<string name="rules">Rules</string>
|
||||
<string name="about">About</string>
|
||||
<string name="trivia_hint">Trivia Hint</string>
|
||||
<string name="title_android_trivia_question">Android Trivia (%1$d/%2$d)</string>
|
||||
<string name="title_about_trivia">About Trivia</string>
|
||||
<string name="title_trivia_rules">Trivia Rules</string>
|
||||
<string name="share_success_text">I mastered #UdacityAndroidTrivia with %1$d/%2$d correct questions!</string>
|
||||
<string name="submit_button">Submit</string>
|
||||
<string name="congratulations">Congratulations!</string>
|
||||
<string name="share">Share</string>
|
||||
<string name="sharing_not_available">Sharing Not Available</string>
|
||||
|
||||
<!-- TODO: Remove or change this placeholder text -->
|
||||
<string name="hello_blank_fragment">Hello blank fragment</string>
|
||||
</resources>
|
||||
26
AndroidTrivia/app/src/main/res/values/styles.xml
Executable file
@ -0,0 +1,26 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Theme customization. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
</resources>
|
||||
50
AndroidTrivia/build.gradle
Executable file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
buildscript {
|
||||
ext {
|
||||
kotlin_version = '1.3.11'
|
||||
archLifecycleVersion = '1.1.1'
|
||||
gradleVersion = '3.3.1'
|
||||
supportlibVersion = '1.0.0-rc03'
|
||||
dataBindingCompilerVersion = gradleVersion // Always need to be the same.
|
||||
navigationVersion = '1.0.0-rc02'
|
||||
}
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:$gradleVersion"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
31
AndroidTrivia/gradle.properties
Executable file
@ -0,0 +1,31 @@
|
||||
#
|
||||
# Copyright 2018, The Android Open Source Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# Project-wide Gradle settings.
|
||||
# IDE (e.g. Android Studio) users:
|
||||
# Gradle settings configured through the IDE *will override*
|
||||
# any settings specified in this file.
|
||||
# For more details on how to configure your build environment visit
|
||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
||||
org.gradle.jvmargs=-Xmx1536m
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
BIN
AndroidTrivia/gradle/wrapper/gradle-wrapper.jar
vendored
Executable file
7
AndroidTrivia/gradle/wrapper/gradle-wrapper.properties
vendored
Executable file
@ -0,0 +1,7 @@
|
||||
#Mon Jan 14 23:13:44 IST 2019
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
android.databinding.enableV2=true
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
|
||||
172
AndroidTrivia/gradlew
vendored
Executable file
@ -0,0 +1,172 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=$(save "$@")
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
|
||||
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
||||
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
||||
cd "$(dirname "$0")"
|
||||
fi
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
84
AndroidTrivia/gradlew.bat
vendored
Executable file
@ -0,0 +1,84 @@
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windows variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
17
AndroidTrivia/settings.gradle
Executable file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
include ':app'
|
||||
51
AndroidTriviaFragment/README.md
Normal file
@ -0,0 +1,51 @@
|
||||
AndroidTriviaFragment - solution code
|
||||
=====================================
|
||||
|
||||
This app is the solution code for Android Kotlin Fundamentals codelab 3.1:
|
||||
Create and add a fragment. The app is also the starter code for Android Kotlin
|
||||
Fundamentals codelab 3.2: Define navigation paths.
|
||||
|
||||
Introduction
|
||||
------------
|
||||
|
||||
The AndroidTrivia app asks the user trivia questions about Android development.
|
||||
It makes use of the navigation component within Jetpack to move the user between
|
||||
screens. Each screen is implemented as a fragment.
|
||||
|
||||
The app navigates using buttons, the app bar, and a navigation drawer. Because
|
||||
students haven't yet learned about saving data or the Android lifecycle, the app
|
||||
tries to eliminate bugs caused by configuration changes.
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
|
||||
You need to know:
|
||||
- The fundamentals of Kotlin.
|
||||
- How to create basic Android apps in Kotlin.
|
||||
- How to open, build, and run apps with Android Studio.
|
||||
- How to work with layouts.
|
||||
|
||||
Getting started
|
||||
---------------
|
||||
|
||||
1. Download and run the app.
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
Copyright 2019 Google, Inc.
|
||||
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
license agreements. See the NOTICE file distributed with this work for
|
||||
additional information regarding copyright ownership. The ASF licenses this
|
||||
file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
use this file except in compliance with the License. You may obtain a copy of
|
||||
the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
License for the specific language governing permissions and limitations under
|
||||
the License.
|
||||
1
AndroidTriviaFragment/app/.gitignore
vendored
Executable file
@ -0,0 +1 @@
|
||||
/build
|
||||
59
AndroidTriviaFragment/app/build.gradle
Executable file
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
dataBinding {
|
||||
enabled = true
|
||||
}
|
||||
defaultConfig {
|
||||
applicationId 'com.example.android.navigation'
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
productFlavors {
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
implementation "androidx.appcompat:appcompat:$supportlibVersion"
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha1'
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0-beta01'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
|
||||
implementation "com.google.android.material:material:1.0.0-rc01"
|
||||
}
|
||||
21
AndroidTriviaFragment/app/proguard-rules.pro
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
38
AndroidTriviaFragment/app/src/main/AndroidManifest.xml
Executable file
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.android.navigation">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
|
||||
class AboutFragment : Fragment() {
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_about, container, false)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.example.android.navigation.databinding.FragmentGameBinding
|
||||
|
||||
class GameFragment : Fragment() {
|
||||
data class Question(
|
||||
val text: String,
|
||||
val answers: List<String>)
|
||||
|
||||
// The first answer is the correct one. We randomize the answers before showing the text.
|
||||
// All questions must have four answers. We'd want these to contain references to string
|
||||
// resources so we could internationalize. (Or better yet, don't define the questions in code...)
|
||||
private val questions: MutableList<Question> = mutableListOf(
|
||||
Question(text = "What is Android Jetpack?",
|
||||
answers = listOf("All of these", "Tools", "Documentation", "Libraries")),
|
||||
Question(text = "What is the base class for layouts?",
|
||||
answers = listOf("ViewGroup", "ViewSet", "ViewCollection", "ViewRoot")),
|
||||
Question(text = "What layout do you use for complex screens?",
|
||||
answers = listOf("ConstraintLayout", "GridLayout", "LinearLayout", "FrameLayout")),
|
||||
Question(text = "What do you use to push structured data into a layout?",
|
||||
answers = listOf("Data binding", "Data pushing", "Set text", "An OnClick method")),
|
||||
Question(text = "What method do you use to inflate layouts in fragments?",
|
||||
answers = listOf("onCreateView()", "onActivityCreated()", "onCreateLayout()", "onInflateLayout()")),
|
||||
Question(text = "What's the build system for Android?",
|
||||
answers = listOf("Gradle", "Graddle", "Grodle", "Groyle")),
|
||||
Question(text = "Which class do you use to create a vector drawable?",
|
||||
answers = listOf("VectorDrawable", "AndroidVectorDrawable", "DrawableVector", "AndroidVector")),
|
||||
Question(text = "Which one of these is an Android navigation component?",
|
||||
answers = listOf("NavController", "NavCentral", "NavMaster", "NavSwitcher")),
|
||||
Question(text = "Which XML element lets you register an activity with the launcher activity?",
|
||||
answers = listOf("intent-filter", "app-registry", "launcher-registry", "app-launcher")),
|
||||
Question(text = "What do you use to mark a layout for data binding?",
|
||||
answers = listOf("<layout>", "<binding>", "<data-binding>", "<dbinding>"))
|
||||
)
|
||||
|
||||
|
||||
|
||||
lateinit var currentQuestion: Question
|
||||
lateinit var answers: MutableList<String>
|
||||
private var questionIndex = 0
|
||||
private val numQuestions = Math.min((questions.size + 1) / 2, 3)
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
|
||||
// Inflate the layout for this fragment
|
||||
val binding = DataBindingUtil.inflate<FragmentGameBinding>(
|
||||
inflater, R.layout.fragment_game, container, false)
|
||||
|
||||
// Shuffles the questions and sets the question index to the first question.
|
||||
randomizeQuestions()
|
||||
|
||||
// Bind this fragment class to the layout
|
||||
binding.game = this
|
||||
|
||||
// Set the onClickListener for the submitButton
|
||||
binding.submitButton.setOnClickListener @Suppress("UNUSED_ANONYMOUS_PARAMETER")
|
||||
{ view: View ->
|
||||
val checkedId = binding.questionRadioGroup.checkedRadioButtonId
|
||||
// Do nothing if nothing is checked (id == -1)
|
||||
if (-1 != checkedId) {
|
||||
var answerIndex = 0
|
||||
when (checkedId) {
|
||||
R.id.secondAnswerRadioButton -> answerIndex = 1
|
||||
R.id.thirdAnswerRadioButton -> answerIndex = 2
|
||||
R.id.fourthAnswerRadioButton -> answerIndex = 3
|
||||
}
|
||||
// The first answer in the original question is always the correct one, so if our
|
||||
// answer matches, we have the correct answer.
|
||||
if (answers[answerIndex] == currentQuestion.answers[0]) {
|
||||
questionIndex++
|
||||
// Advance to the next question
|
||||
if (questionIndex < numQuestions) {
|
||||
currentQuestion = questions[questionIndex]
|
||||
setQuestion()
|
||||
binding.invalidateAll()
|
||||
} else {
|
||||
// We've won! Navigate to the gameWonFragment.
|
||||
}
|
||||
} else {
|
||||
// Game over! A wrong answer sends us to the gameOverFragment.
|
||||
}
|
||||
}
|
||||
}
|
||||
return binding.root
|
||||
}
|
||||
|
||||
// randomize the questions and set the first question
|
||||
private fun randomizeQuestions() {
|
||||
questions.shuffle()
|
||||
questionIndex = 0
|
||||
setQuestion()
|
||||
}
|
||||
|
||||
// Sets the question and randomizes the answers. This only changes the data, not the UI.
|
||||
// Calling invalidateAll on the FragmentGameBinding updates the data.
|
||||
private fun setQuestion() {
|
||||
currentQuestion = questions[questionIndex]
|
||||
// randomize the answers into a copy of the array
|
||||
answers = currentQuestion.answers.toMutableList()
|
||||
// and shuffle them
|
||||
answers.shuffle()
|
||||
(activity as AppCompatActivity).supportActionBar?.title = getString(R.string.title_android_trivia_question, questionIndex + 1, numQuestions)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.example.android.navigation.databinding.FragmentGameOverBinding
|
||||
|
||||
class GameOverFragment : Fragment() {
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
// Inflate the layout for this fragment
|
||||
val binding: FragmentGameOverBinding = DataBindingUtil.inflate(
|
||||
inflater, R.layout.fragment_game_over, container, false)
|
||||
return binding.root
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.example.android.navigation.databinding.FragmentGameWonBinding
|
||||
|
||||
|
||||
class GameWonFragment : Fragment() {
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
// Inflate the layout for this fragment
|
||||
val binding: FragmentGameWonBinding = DataBindingUtil.inflate(
|
||||
inflater, R.layout.fragment_game_won, container, false)
|
||||
return binding.root
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import com.example.android.navigation.databinding.ActivityMainBinding
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
val binding = DataBindingUtil.setContentView<ActivityMainBinding>(this, R.layout.activity_main)
|
||||
}
|
||||
|
||||
// TODO (01) Create the new TitleFragment
|
||||
// Select File->New->Fragment->Fragment (Blank)
|
||||
|
||||
// TODO (02) Clean up the new TitleFragment
|
||||
// In our new TitleFragment
|
||||
|
||||
// TODO (03) Use DataBindingUtil.inflate to inflate and return the titleFragment in onCreateView
|
||||
// In our new TitleFragment
|
||||
// R.layout.fragment_title
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
|
||||
class RulesFragment : Fragment() {
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_rules, container, false)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2018, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.example.android.navigation
|
||||
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import com.example.android.navigation.databinding.FragmentTitleBinding
|
||||
|
||||
|
||||
// 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"
|
||||
|
||||
/**
|
||||
* A simple [Fragment] subclass.
|
||||
*
|
||||
*/
|
||||
class TitleFragment : Fragment() {
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?): View? {
|
||||
val binding = DataBindingUtil.inflate<FragmentTitleBinding>(inflater,
|
||||
R.layout.fragment_title,container,false)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
22
AndroidTriviaFragment/app/src/main/res/anim/fade_out.xml
Executable file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<alpha
|
||||
android:duration="@android:integer/config_mediumAnimTime"
|
||||
android:fromAlpha="1.0"
|
||||
android:toAlpha="0.0" />
|
||||
</set>
|
||||
25
AndroidTriviaFragment/app/src/main/res/anim/slide_in_right.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:duration="@android:integer/config_shortAnimTime"
|
||||
android:fromXDelta="100%"
|
||||
android:fromYDelta="0%"
|
||||
android:toXDelta="0%"
|
||||
android:toYDelta="0%" />
|
||||
</set>
|
||||
25
AndroidTriviaFragment/app/src/main/res/anim/slide_out_left.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:duration="@android:integer/config_shortAnimTime"
|
||||
android:fromXDelta="0%"
|
||||
android:fromYDelta="0%"
|
||||
android:toXDelta="-100%"
|
||||
android:toYDelta="0%" />
|
||||
</set>
|
||||
25
AndroidTriviaFragment/app/src/main/res/anim/slide_out_right.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:duration="@android:integer/config_shortAnimTime"
|
||||
android:fromXDelta="0%"
|
||||
android:fromYDelta="0%"
|
||||
android:toXDelta="100%"
|
||||
android:toYDelta="0%" />
|
||||
</set>
|
||||
@ -0,0 +1,28 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:pathData="M53.6,72.9c-2,0 -3.6,0.7 -5,2c-1.4,1.4 -2,3 -2,5c0,2 0.7,3.6 2,5c1.4,1.4 3,2.1 5,2.1c2,0 3.6,-0.7 5,-2.1c1.4,-1.4 2.1,-3.1 2.1,-5c0,-2 -0.7,-3.6 -2.1,-5C57.2,73.6 55.5,72.9 53.6,72.9z"
|
||||
android:fillColor="#6AB343"/>
|
||||
<path
|
||||
android:pathData="M68.8,35c-1.3,-2 -3,-3.7 -5.2,-5l2.8,-5.1c0.2,-0.4 0.3,-0.8 0.1,-1.3c-0.1,-0.4 -0.4,-0.8 -0.8,-1l0,0c-0.8,-0.4 -1.8,-0.1 -2.3,0.7l-2.9,5.2c-2.2,-0.8 -4.6,-1.2 -7.2,-1.2c-2.5,0 -4.8,0.4 -6.9,1.2l-2.9,-5.2c-0.2,-0.4 -0.6,-0.7 -1,-0.8c-0.4,-0.1 -0.9,-0.1 -1.3,0.1c-0.4,0.2 -0.7,0.6 -0.8,1c-0.1,0.4 -0.1,0.9 0.1,1.3l2.8,5.1c-0.5,0.3 -1,0.7 -1.4,1.1c-3,2.5 -5,5.5 -6,9l9.4,3.9c0.5,-1.9 1.5,-3.5 2.9,-4.8c1.4,-1.3 3.2,-1.9 5.4,-1.9c2.1,0 3.7,0.6 5,1.8c1.2,1.2 1.9,2.6 1.9,4.3c0,1.4 -0.4,2.7 -1.1,3.7c-0.7,1.1 -1.9,2.4 -3.5,3.8c-2.8,2.4 -4.8,4.6 -5.9,6.5c-1.1,1.9 -1.6,4.2 -1.6,6.8V67H59v-1.3c0,-1.9 0.3,-3.5 1,-4.7c0.7,-1.2 1.9,-2.7 3.8,-4.5c2.4,-2.3 4.2,-4.4 5.4,-6.4c1.2,-2 1.8,-4.4 1.8,-7.2C71,40 70.3,37.4 68.8,35z"
|
||||
android:fillColor="#6AB343"/>
|
||||
</vector>
|
||||
23
AndroidTriviaFragment/app/src/main/res/drawable/about_android_trivia.xml
Executable file
@ -0,0 +1,23 @@
|
||||
<vector android:height="535dp" android:viewportHeight="535"
|
||||
android:viewportWidth="507" android:width="507dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M255.6,256.5c-9.9,0 -18.4,3.5 -25.3,10.3c-6.9,6.9 -10.3,15.3 -10.3,25.3s3.4,18.4 10.3,25.5c6.9,7 15.3,10.6 25.3,10.6c9.9,0 18.4,-3.5 25.5,-10.6c7,-7 10.6,-15.5 10.6,-25.5s-3.5,-18.4 -10.6,-25.3C274.1,260 265.6,256.5 255.6,256.5z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M332.8,63.8c-6.6,-10.4 -15.4,-18.8 -26.4,-25.4l14.1,-25.7c1.1,-2 1.4,-4.3 0.7,-6.5c-0.6,-2.2 -2.1,-4.1 -4.1,-5.2L317,1c-4.2,-2.2 -9.4,-0.7 -11.6,3.5l-14.6,26.6c-11.1,-4 -23.2,-6 -36.4,-6c-12.8,0 -24.5,2 -34.9,5.9L205,4.5c-1.1,-2 -2.9,-3.5 -5.1,-4.1c-2.2,-0.6 -4.5,-0.4 -6.5,0.7c-2,1.1 -3.5,2.9 -4.2,5.2c-0.6,2.2 -0.4,4.5 0.7,6.5l14.3,26.1c-2.5,1.7 -5,3.5 -7.3,5.5c-15.2,12.8 -25.4,28.1 -30.6,45.7l47.6,19.9c2.8,-9.7 7.7,-17.7 14.9,-24.2C235.9,79.3 245,76 256,76c10.5,0 18.9,3 25.3,8.9c6.3,5.9 9.5,13.2 9.5,21.7c0,7.2 -1.9,13.5 -5.6,19c-3.7,5.5 -9.7,12 -18,19.5c-14.4,12.4 -24.3,23.5 -29.8,33.1c-5.5,9.7 -8.3,21.1 -8.3,34.4v13.7h54.2v-6.6c0,-9.7 1.7,-17.7 5.2,-24c3.4,-6.3 9.9,-13.9 19.2,-22.8c12.1,-11.6 21.2,-22.4 27.3,-32.5c6.1,-10.1 9.1,-22.3 9.1,-36.6C344.2,89.2 340.4,75.8 332.8,63.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M23.1,366.2h8.2l23.1,60.9h-8l-6,-16.8H14.1L8,427.2H0L23.1,366.2zM37.9,403.6l-8.1,-22l-2.4,-6.6h-0.3l-2.5,6.6l-8,22H37.9z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M60.9,385h6.9v6.3h0.3c1.2,-2.2 3.1,-4 5.6,-5.4c2.6,-1.5 5.3,-2.2 8.2,-2.2c5.2,0 9.1,1.5 11.8,4.5c2.7,3 4,7.1 4,12.3v26.7h-7.1v-25.6c0,-7.6 -3.5,-11.4 -10.6,-11.4c-2.3,0 -4.3,0.7 -6.1,2c-1.8,1.3 -3.2,3 -4.2,5.1c-1,2.1 -1.5,4.3 -1.5,6.6v23.3h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M115.7,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C122.1,428.5 118.8,427.6 115.7,425.6zM133.8,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5c-2.1,-1.3 -4.4,-1.9 -6.9,-1.9c-2.5,0 -4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2C129.4,422 131.7,421.3 133.8,420.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M158.3,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M194.9,425.6c-3.3,-2 -5.9,-4.7 -7.7,-8.1c-1.8,-3.4 -2.8,-7.2 -2.8,-11.4c0,-4.2 0.9,-8 2.8,-11.4c1.8,-3.4 4.4,-6.1 7.7,-8.1c3.3,-2 7,-2.9 11.1,-2.9c4.1,0 7.9,1 11.2,2.9c3.3,2 5.9,4.7 7.7,8.1c1.8,3.4 2.8,7.2 2.8,11.4c0,4.2 -0.9,8 -2.8,11.4c-1.8,3.4 -4.4,6.1 -7.7,8.1c-3.3,2 -7,2.9 -11.2,2.9C201.9,428.5 198.2,427.5 194.9,425.6zM213.2,420c2.2,-1.3 4,-3.2 5.3,-5.6c1.3,-2.4 2,-5.2 2,-8.4s-0.7,-6 -2,-8.4c-1.3,-2.4 -3.1,-4.3 -5.3,-5.6c-2.2,-1.3 -4.6,-2 -7.1,-2c-2.5,0 -4.9,0.7 -7.1,2c-2.2,1.3 -4,3.2 -5.3,5.6c-1.3,2.4 -2,5.2 -2,8.4s0.7,6 2,8.4c1.3,2.4 3.1,4.3 5.3,5.6c2.2,1.3 4.6,2 7.1,2C208.6,422 211,421.3 213.2,420z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M235.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C237.9,375.9 236.7,375.4 235.7,374.4zM235.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M261.4,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C267.8,428.5 264.5,427.6 261.4,425.6zM279.5,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5s-4.4,-1.9 -6.9,-1.9s-4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2S277.3,421.3 279.5,420.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M334.3,373.1h-17.1v-6.9h41.4v6.9h-17.1v54h-7.1V373.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M360.9,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M392.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C394.9,375.9 393.7,375.4 392.7,374.4zM392.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M406.4,385h7.8l12.9,33.7h0.2l13.1,-33.7h7.7l-17.3,42.2h-7.3L406.4,385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M454.5,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C456.7,375.9 455.5,375.4 454.5,374.4zM454.5,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M477.9,426.7c-2.5,-1.2 -4.4,-2.9 -5.8,-5.1c-1.4,-2.2 -2.1,-4.6 -2.1,-7.4c0,-4.5 1.7,-8 5.1,-10.5c3.4,-2.5 7.7,-3.7 13,-3.7c2.6,0 5,0.3 7.1,0.9c2.1,0.6 3.8,1.2 5,1.9v-2.2c0,-2 -0.5,-3.9 -1.6,-5.5c-1.1,-1.6 -2.5,-2.9 -4.2,-3.7c-1.8,-0.9 -3.7,-1.3 -5.7,-1.3c-4.8,0 -8.5,2 -11.1,5.9l-6,-4c1.8,-2.6 4.1,-4.6 7,-6.1c2.9,-1.4 6.2,-2.2 9.8,-2.2c5.8,0 10.4,1.6 13.7,4.7c3.3,3.1 5,7.3 5,12.6v26.3h-6.9V421h-0.3c-1.4,2.2 -3.2,4 -5.5,5.4c-2.3,1.4 -5,2.2 -8.1,2.2S480.4,427.9 477.9,426.7zM493.3,420.4c2,-1.2 3.7,-2.8 5,-4.9s1.9,-4.3 1.9,-6.6c-3.2,-2 -6.8,-3.1 -11,-3.1c-3.6,0 -6.4,0.8 -8.6,2.4c-2.1,1.6 -3.2,3.7 -3.2,6.2c0,2.3 0.9,4.1 2.8,5.6c1.9,1.4 4.1,2.2 6.6,2.2C489.1,422.1 491.2,421.6 493.3,420.4z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M162.7,472.7h8.2l23.1,60.9h-8l-6,-16.8h-26.3l-6.1,16.8h-8L162.7,472.7zM177.4,510.1l-8.1,-22l-2.4,-6.6h-0.3l-2.5,6.6l-8,22H177.4z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M213.5,532.9c-2.6,-1.4 -4.5,-3.3 -5.8,-5.5h-0.3v6.3h-6.9v-60.9h7.2v19.1l-0.3,5.8h0.3c1.4,-2.2 3.3,-4 5.9,-5.4c2.6,-1.4 5.5,-2.2 8.8,-2.2c3.6,0 7,1 10,2.9c3.1,2 5.5,4.6 7.3,8c1.8,3.4 2.7,7.2 2.7,11.5c0,4.3 -0.9,8.1 -2.7,11.5c-1.8,3.4 -4.3,6.1 -7.3,8c-3.1,2 -6.4,2.9 -10,2.9C219.1,535 216.1,534.3 213.5,532.9zM228.2,526.5c2.1,-1.3 3.8,-3.2 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6 -1.9,-8.4c-1.3,-2.4 -3,-4.3 -5.1,-5.6c-2.1,-1.3 -4.4,-2 -6.9,-2c-2.5,0 -4.8,0.6 -6.9,1.9c-2.1,1.3 -3.8,3.1 -5.1,5.5c-1.3,2.4 -1.9,5.2 -1.9,8.5c0,3.2 0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,1.9 6.9,1.9C223.8,528.5 226.1,527.8 228.2,526.5z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M258.8,532.1c-3.3,-2 -5.9,-4.7 -7.7,-8.1c-1.8,-3.4 -2.8,-7.2 -2.8,-11.4c0,-4.2 0.9,-8 2.8,-11.4c1.8,-3.4 4.4,-6.1 7.7,-8.1c3.3,-2 7,-2.9 11.1,-2.9c4.1,0 7.9,1 11.2,2.9s5.9,4.7 7.7,8.1c1.8,3.4 2.8,7.2 2.8,11.4c0,4.2 -0.9,8 -2.8,11.4c-1.8,3.4 -4.4,6.1 -7.7,8.1s-7,2.9 -11.2,2.9C265.8,535 262,534 258.8,532.1zM277,526.5c2.2,-1.3 4,-3.2 5.3,-5.6c1.3,-2.4 2,-5.2 2,-8.4c0,-3.2 -0.7,-6 -2,-8.4c-1.3,-2.4 -3.1,-4.3 -5.3,-5.6c-2.2,-1.3 -4.6,-2 -7.1,-2c-2.5,0 -4.9,0.7 -7.1,2c-2.2,1.3 -4,3.2 -5.3,5.6c-1.3,2.4 -2,5.2 -2,8.4c0,3.2 0.7,6 2,8.4c1.3,2.4 3.1,4.3 5.3,5.6c2.2,1.3 4.6,2 7.1,2C272.5,528.5 274.8,527.8 277,526.5z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M303,530.5c-2.7,-3 -4,-7.2 -4,-12.5v-26.5h7.2v25.4c0,7.8 3.5,11.7 10.5,11.7c2.3,0 4.4,-0.7 6.3,-2c1.8,-1.3 3.3,-3 4.3,-5.1c1,-2.1 1.5,-4.3 1.5,-6.6v-23.3h7.1v42.2H329v-6.3h-0.3c-1.2,2.2 -3.1,4 -5.7,5.4c-2.5,1.5 -5.2,2.2 -8.1,2.2C309.7,535 305.7,533.5 303,530.5z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M358.4,534.2c-1.4,-0.6 -2.7,-1.4 -3.7,-2.3c-1.1,-1.1 -2,-2.4 -2.5,-3.9c-0.5,-1.5 -0.8,-3.2 -0.8,-5.2V498h-7.5v-6.6h7.5v-12.6h7.1v12.6h10.4v6.6h-10.4v23c0,2.4 0.5,4.2 1.4,5.4c1,1.3 2.4,1.9 4.4,1.9c1.8,0 3.3,-0.4 4.6,-1.2v7c-0.9,0.3 -1.8,0.6 -2.6,0.7c-0.8,0.1 -1.9,0.2 -3.3,0.2C361.5,535 359.9,534.7 358.4,534.2z"/>
|
||||
</vector>
|
||||
25
AndroidTriviaFragment/app/src/main/res/drawable/android.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M6,18c0,0.55 0.45,1 1,1h1v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5L11,19h2v3.5c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5L16,19h1c0.55,0 1,-0.45 1,-1L18,8L6,8v10zM3.5,8C2.67,8 2,8.67 2,9.5v7c0,0.83 0.67,1.5 1.5,1.5S5,17.33 5,16.5v-7C5,8.67 4.33,8 3.5,8zM20.5,8c-0.83,0 -1.5,0.67 -1.5,1.5v7c0,0.83 0.67,1.5 1.5,1.5s1.5,-0.67 1.5,-1.5v-7c0,-0.83 -0.67,-1.5 -1.5,-1.5zM15.53,2.16l1.3,-1.3c0.2,-0.2 0.2,-0.51 0,-0.71 -0.2,-0.2 -0.51,-0.2 -0.71,0l-1.48,1.48C13.85,1.23 12.95,1 12,1c-0.96,0 -1.86,0.23 -2.66,0.63L7.85,0.15c-0.2,-0.2 -0.51,-0.2 -0.71,0 -0.2,0.2 -0.2,0.51 0,0.71l1.31,1.31C6.97,3.26 6,5.01 6,7h12c0,-1.99 -0.97,-3.75 -2.47,-4.84zM10,5L9,5L9,4h1v1zM15,5h-1L14,4h1v1z" />
|
||||
</vector>
|
||||
@ -0,0 +1,7 @@
|
||||
<vector android:height="411.3dp" android:viewportHeight="411.3"
|
||||
android:viewportWidth="473.8" android:width="473.8dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M353.1,221.9l36.7,-67c2,-3.5 0.7,-8 -2.9,-9.9c-3.6,-1.9 -8,-0.6 -9.9,2.9l-37.1,67.7c-31.2,-13.9 -66.1,-21.7 -103.1,-21.6c-36.8,0 -71.7,7.7 -102.8,21.5l-37.1,-67.6c-1.9,-3.6 -6.4,-4.9 -9.9,-2.9c-3.6,1.9 -4.9,6.4 -2.9,9.9l36.7,67C48.7,259.1 0,330 0,411.3l473.8,0C473.8,330 425.1,259.2 353.1,221.9M129.1,325.5c-10.9,0 -19.8,-8.9 -19.8,-19.8c0,-10.9 8.9,-19.9 19.8,-19.9c11,0 19.9,9 19.9,19.9C149,316.6 140.1,325.5 129.1,325.5M344.8,325.5c-11,0 -19.9,-8.9 -19.9,-19.9c0,-10.9 8.9,-19.9 19.9,-19.9c10.9,0 19.8,9 19.8,19.9C364.7,316.6 355.8,325.5 344.8,325.5"/>
|
||||
<path android:fillColor="#424242" android:pathData="M226.8,93.1c0,-6.6 1.2,-12 3.6,-16.4c2.4,-4.4 6.9,-9.5 13.5,-15.5c5.1,-4.7 8.8,-8.8 11.1,-12.1c2.3,-3.3 3.4,-7.4 3.4,-12.1c0,-6.3 -2,-11.4 -6.1,-15.3c-4.1,-3.9 -9.7,-5.8 -16.9,-5.8c-6.6,0 -11.7,1.9 -15.5,5.6c-3.8,3.7 -6.7,8.4 -8.7,13.9l-15.5,-6.5c2.6,-7.6 7.3,-14.3 14,-20.2C216.4,2.9 225,0 235.5,0c7.9,0 14.9,1.6 21,4.8c6.1,3.2 10.8,7.6 14.2,13.3c3.3,5.6 5,11.9 5,18.9c0,5 -1.1,9.6 -3.1,13.9c-2.1,4.3 -4.4,7.7 -6.8,10.4c-2.4,2.7 -5.5,5.8 -9.3,9.3c-4.3,3.9 -7.5,7.7 -9.5,11.2c-2,3.5 -3.1,7.7 -3.1,12.4v8.3h-16.9V93.1zM226.6,140.4c-2.4,-2.4 -3.6,-5.4 -3.6,-9c0,-3.4 1.2,-6.3 3.6,-8.8c2.4,-2.4 5.3,-3.6 8.8,-3.6c3.5,0 6.5,1.2 9,3.6c2.4,2.4 3.6,5.3 3.6,8.8c0,3.5 -1.2,6.5 -3.6,9c-2.4,2.4 -5.4,3.6 -9,3.6C231.9,144.1 229,142.9 226.6,140.4z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M126.3,82.2c-2.1,-4.4 -3,-8.5 -2.7,-12.2c0.3,-3.7 1.7,-8.6 4.2,-14.6c2,-4.8 3.2,-8.7 3.7,-11.6c0.5,-3 0,-6.1 -1.5,-9.2c-2,-4.2 -4.9,-7 -8.9,-8.4c-4,-1.3 -8.4,-0.9 -13.2,1.4c-4.4,2.1 -7.3,4.9 -8.7,8.7c-1.4,3.7 -1.9,7.7 -1.5,12.1l-12.5,0.5c-0.6,-6 0.4,-11.9 3.1,-18c2.7,-6 7.6,-10.7 14.6,-14c5.3,-2.5 10.5,-3.6 15.6,-3.3c5.1,0.3 9.7,1.8 13.7,4.5c4,2.8 7.1,6.5 9.3,11.2c1.6,3.4 2.3,6.8 2.2,10.3c-0.1,3.5 -0.5,6.6 -1.3,9.2c-0.8,2.6 -1.9,5.6 -3.4,9.2c-1.7,4 -2.7,7.5 -2.9,10.6c-0.3,3 0.3,6.1 1.8,9.3l2.6,5.6l-11.4,5.3L126.3,82.2zM140.9,114.2c-2.4,-0.9 -4.1,-2.5 -5.3,-4.9c-1.1,-2.3 -1.2,-4.6 -0.3,-7c0.9,-2.4 2.5,-4.1 4.8,-5.2c2.4,-1.1 4.8,-1.2 7.2,-0.4c2.4,0.9 4.1,2.5 5.2,4.8c1.1,2.4 1.2,4.8 0.4,7.2c-0.9,2.4 -2.5,4.1 -4.9,5.3C145.6,114.9 143.3,115 140.9,114.2z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M320.7,127.6c-0.7,-1.7 -0.7,-3.4 0,-5.1c0.7,-1.7 1.9,-2.8 3.5,-3.5c1.7,-0.7 3.3,-0.7 5,0c1.7,0.7 2.9,1.9 3.6,3.6c0.7,1.7 0.7,3.3 0,5c-0.7,1.7 -1.9,2.9 -3.6,3.6c-1.7,0.7 -3.4,0.7 -5.1,0C322.5,130.5 321.3,129.3 320.7,127.6zM330.2,104.7c1.3,-3.2 3,-5.6 5,-7.2c2.1,-1.6 5.3,-3.3 9.6,-4.8c3.4,-1.3 6,-2.5 7.8,-3.7c1.8,-1.2 3.1,-2.9 4.1,-5.2c1.3,-3.1 1.3,-5.9 0.1,-8.6c-1.2,-2.7 -3.6,-4.8 -7.1,-6.2c-3.2,-1.3 -6.1,-1.4 -8.7,-0.4c-2.6,1.1 -4.9,2.7 -7,5l-6.2,-6.3c2.8,-3.2 6.4,-5.5 10.8,-7c4.4,-1.5 9.2,-1.2 14.3,0.9c3.8,1.6 6.9,3.7 9.2,6.5c2.3,2.8 3.7,5.9 4.2,9.3c0.5,3.4 0.1,6.8 -1.3,10.2c-1,2.4 -2.4,4.5 -4.3,6.1c-1.9,1.7 -3.7,2.9 -5.4,3.7c-1.7,0.8 -3.8,1.7 -6.4,2.7c-2.9,1 -5.2,2.2 -6.9,3.5c-1.7,1.3 -3,3.1 -4,5.4l-1.6,4l-8.2,-3.4L330.2,104.7z"/>
|
||||
</vector>
|
||||
18
AndroidTriviaFragment/app/src/main/res/drawable/android_trivia.xml
Executable file
@ -0,0 +1,18 @@
|
||||
<vector android:height="428.5dp" android:viewportHeight="428.5"
|
||||
android:viewportWidth="507" android:width="507dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M255.6,256.5c-9.9,0 -18.4,3.5 -25.3,10.3c-6.9,6.9 -10.3,15.3 -10.3,25.3s3.4,18.4 10.3,25.5c6.9,7 15.3,10.6 25.3,10.6c9.9,0 18.4,-3.5 25.5,-10.6c7,-7 10.6,-15.5 10.6,-25.5s-3.5,-18.4 -10.6,-25.3C274.1,260 265.6,256.5 255.6,256.5z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M332.8,63.8c-6.6,-10.4 -15.4,-18.8 -26.4,-25.4l14.1,-25.7c1.1,-2 1.4,-4.3 0.7,-6.5c-0.6,-2.2 -2.1,-4.1 -4.1,-5.2L317,1c-4.2,-2.2 -9.4,-0.7 -11.6,3.5l-14.6,26.6c-11.1,-4 -23.2,-6 -36.4,-6c-12.8,0 -24.5,2 -34.9,5.9L205,4.5c-1.1,-2 -2.9,-3.5 -5.1,-4.1c-2.2,-0.6 -4.5,-0.4 -6.5,0.7c-2,1.1 -3.5,2.9 -4.2,5.2c-0.6,2.2 -0.4,4.5 0.7,6.5l14.3,26.1c-2.5,1.7 -5,3.5 -7.3,5.5c-15.2,12.8 -25.4,28.1 -30.6,45.7l47.6,19.9c2.8,-9.7 7.7,-17.7 14.9,-24.2C235.9,79.3 245,76 256,76c10.5,0 18.9,3 25.3,8.9c6.3,5.9 9.5,13.2 9.5,21.7c0,7.2 -1.9,13.5 -5.6,19c-3.7,5.5 -9.7,12 -18,19.5c-14.4,12.4 -24.3,23.5 -29.8,33.1c-5.5,9.7 -8.3,21.1 -8.3,34.4v13.7h54.2v-6.6c0,-9.7 1.7,-17.7 5.2,-24c3.4,-6.3 9.9,-13.9 19.2,-22.8c12.1,-11.6 21.2,-22.4 27.3,-32.5c6.1,-10.1 9.1,-22.3 9.1,-36.6C344.2,89.2 340.4,75.8 332.8,63.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M23.1,366.2h8.2l23.1,60.9h-8l-6,-16.8H14.1L8,427.2H0L23.1,366.2zM37.9,403.6l-8.1,-22l-2.4,-6.6h-0.3l-2.5,6.6l-8,22H37.9z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M60.9,385h6.9v6.3h0.3c1.2,-2.2 3.1,-4 5.6,-5.4c2.6,-1.5 5.3,-2.2 8.2,-2.2c5.2,0 9.1,1.5 11.8,4.5c2.7,3 4,7.1 4,12.3v26.7h-7.1v-25.6c0,-7.6 -3.5,-11.4 -10.6,-11.4c-2.3,0 -4.3,0.7 -6.1,2c-1.8,1.3 -3.2,3 -4.2,5.1c-1,2.1 -1.5,4.3 -1.5,6.6v23.3h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M115.7,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C122.1,428.5 118.8,427.6 115.7,425.6zM133.8,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5c-2.1,-1.3 -4.4,-1.9 -6.9,-1.9c-2.5,0 -4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2C129.4,422 131.7,421.3 133.8,420.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M158.3,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M194.9,425.6c-3.3,-2 -5.9,-4.7 -7.7,-8.1c-1.8,-3.4 -2.8,-7.2 -2.8,-11.4c0,-4.2 0.9,-8 2.8,-11.4c1.8,-3.4 4.4,-6.1 7.7,-8.1c3.3,-2 7,-2.9 11.1,-2.9c4.1,0 7.9,1 11.2,2.9c3.3,2 5.9,4.7 7.7,8.1c1.8,3.4 2.8,7.2 2.8,11.4c0,4.2 -0.9,8 -2.8,11.4c-1.8,3.4 -4.4,6.1 -7.7,8.1c-3.3,2 -7,2.9 -11.2,2.9C201.9,428.5 198.2,427.6 194.9,425.6zM213.2,420c2.2,-1.3 4,-3.2 5.3,-5.6c1.3,-2.4 2,-5.2 2,-8.4s-0.7,-6 -2,-8.4c-1.3,-2.4 -3.1,-4.3 -5.3,-5.6c-2.2,-1.3 -4.6,-2 -7.1,-2c-2.5,0 -4.9,0.7 -7.1,2c-2.2,1.3 -4,3.2 -5.3,5.6c-1.3,2.4 -2,5.2 -2,8.4s0.7,6 2,8.4c1.3,2.4 3.1,4.3 5.3,5.6c2.2,1.3 4.6,2 7.1,2C208.6,422 211,421.3 213.2,420z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M235.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C237.9,375.9 236.7,375.4 235.7,374.4zM235.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M261.4,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C267.8,428.5 264.5,427.6 261.4,425.6zM279.5,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5s-4.4,-1.9 -6.9,-1.9c-2.5,0 -4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2C275,422 277.3,421.3 279.5,420.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M334.3,373.1h-17.1v-6.9h41.4v6.9h-17.1v54h-7.1V373.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M360.9,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M392.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C394.9,375.9 393.7,375.4 392.7,374.4zM392.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M406.4,385h7.8l12.9,33.7h0.2l13.1,-33.7h7.7l-17.3,42.2h-7.3L406.4,385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M454.5,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C456.7,375.9 455.5,375.4 454.5,374.4zM454.5,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M477.9,426.7c-2.5,-1.2 -4.4,-2.9 -5.8,-5.1c-1.4,-2.2 -2.1,-4.6 -2.1,-7.4c0,-4.5 1.7,-8 5.1,-10.5c3.4,-2.5 7.7,-3.7 13,-3.7c2.6,0 5,0.3 7.1,0.9c2.1,0.6 3.8,1.2 5,1.9v-2.2c0,-2 -0.5,-3.9 -1.6,-5.5c-1.1,-1.6 -2.5,-2.9 -4.2,-3.7c-1.8,-0.9 -3.7,-1.3 -5.7,-1.3c-4.8,0 -8.5,2 -11.1,5.9l-6,-4c1.8,-2.6 4.1,-4.6 7,-6.1c2.9,-1.4 6.2,-2.2 9.8,-2.2c5.8,0 10.4,1.6 13.7,4.7c3.3,3.1 5,7.3 5,12.6v26.3h-6.9V421h-0.3c-1.4,2.2 -3.2,4 -5.5,5.4c-2.3,1.4 -5,2.2 -8.1,2.2S480.4,427.9 477.9,426.7zM493.3,420.4c2,-1.2 3.7,-2.8 5,-4.9s1.9,-4.3 1.9,-6.6c-3.2,-2 -6.8,-3.1 -11,-3.1c-3.6,0 -6.4,0.8 -8.6,2.4c-2.1,1.6 -3.2,3.7 -3.2,6.2c0,2.3 0.9,4.1 2.8,5.6c1.9,1.4 4.1,2.2 6.6,2.2C489.1,422.1 491.2,421.6 493.3,420.4z"/>
|
||||
</vector>
|
||||
91
AndroidTriviaFragment/app/src/main/res/drawable/ic_launcher_background.xml
Executable file
@ -0,0 +1,91 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:pathData="M0,0h108v108h-108z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
<path
|
||||
android:pathData="M17.7,50.3c-0.5,0 -1,0.2 -1.3,0.5c-0.4,0.4 -0.5,0.8 -0.5,1.3c0,0.5 0.2,1 0.5,1.3c0.4,0.4 0.8,0.6 1.3,0.6c0.5,0 1,-0.2 1.3,-0.6s0.6,-0.8 0.6,-1.3c0,-0.5 -0.2,-1 -0.6,-1.3S18.2,50.3 17.7,50.3"
|
||||
android:fillColor="#DAECD0"/>
|
||||
<path
|
||||
android:pathData="M20.7,36.8c-0.2,0 -0.3,0.1 -0.4,0.2l-0.8,1.4c-0.6,-0.2 -1.2,-0.3 -1.9,-0.3c-0.7,0 -1.3,0.1 -1.8,0.3L15,37.1c-0.1,-0.1 -0.2,-0.2 -0.3,-0.2l-0.1,0l-0.2,0.1c-0.1,0.1 -0.2,0.2 -0.2,0.3c0,0.1 0,0.2 0,0.3l0.7,1.4c-0.1,0.1 -0.3,0.2 -0.4,0.3c-0.8,0.7 -1.3,1.5 -1.6,2.4l2.5,1c0.1,-0.5 0.4,-0.9 0.8,-1.3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6c0.5,0 1,-0.2 1.3,-0.6s0.6,-0.8 0.6,-1.3c0,-0.5 -0.2,-1 -0.6,-1.3S91.2,29.3 90.7,29.3"
|
||||
android:fillColor="#B3D89F"/>
|
||||
<path
|
||||
android:pathData="M93.7,15.8c-0.2,0 -0.3,0.1 -0.4,0.2l-0.8,1.4c-0.6,-0.2 -1.2,-0.3 -1.9,-0.3c-0.7,0 -1.3,0.1 -1.8,0.3L88,16.1c-0.1,-0.1 -0.2,-0.2 -0.3,-0.2l-0.1,0l-0.2,0.1c-0.1,0.1 -0.2,0.2 -0.2,0.3c0,0.1 0,0.2 0,0.3l0.7,1.4c-0.1,0.1 -0.3,0.2 -0.4,0.3c-0.8,0.7 -1.3,1.5 -1.6,2.4l2.5,1c0.1,-0.5 0.4,-0.9 0.8,-1.3c0.4,-0.3 0.9,-0.5 1.4,-0.5c0.5,0 1,0.2 1.3,0.5s0.5,0.7 0.5,1.1c0,0.4 -0.1,0.7 -0.3,1c-0.2,0.3 -0.5,0.6 -0.9,1c-0.8,0.6 -1.3,1.2 -1.6,1.7c-0.3,0.5 -0.4,1.1 -0.4,1.8v0.7h2.8v-0.3c0,-0.5 0.1,-0.9 0.3,-1.3s0.5,-0.7 1,-1.2c0.6,-0.6 1.1,-1.2 1.4,-1.7c0.3,-0.5 0.5,-1.2 0.5,-1.9c0,-0.8 -0.2,-1.5 -0.6,-2.1c-0.3,-0.5 -0.8,-1 -1.4,-1.3l0.7,-1.3c0.1,-0.1 0.1,-0.2 0,-0.3c0,-0.1 -0.1,-0.2 -0.2,-0.3l0,0L93.7,15.8"
|
||||
android:fillColor="#B3D89F"/>
|
||||
</vector>
|
||||
34
AndroidTriviaFragment/app/src/main/res/drawable/nav_header.xml
Executable file
@ -0,0 +1,34 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector android:height="898.4dp" android:viewportHeight="898.4"
|
||||
android:viewportWidth="1063" android:width="1063dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M536,537.8c-20.8,0 -38.5,7.2 -52.9,21.7c-14.5,14.5 -21.7,32.1 -21.7,52.9c0,20.8 7.2,38.6 21.7,53.4c14.5,14.8 32.1,22.1 52.9,22.1c20.8,0 38.6,-7.4 53.4,-22.1c14.8,-14.8 22.1,-32.5 22.1,-53.4c0,-20.8 -7.4,-38.5 -22.1,-52.9C574.6,545.1 556.8,537.8 536,537.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M697.8,133.8c-13.7,-21.7 -32.2,-39.4 -55.4,-53.2l29.5,-53.9c2.3,-4.2 2.9,-9 1.6,-13.6c-1.3,-4.7 -4.4,-8.5 -8.6,-10.9l-0.2,-0.1c-8.8,-4.6 -19.7,-1.4 -24.4,7.3l-30.6,55.8c-23.2,-8.4 -48.7,-12.6 -76.4,-12.6c-26.9,0 -51.3,4.1 -73.1,12.4L429.7,9.4c-2.3,-4.2 -6.1,-7.3 -10.8,-8.7c-4.6,-1.3 -9.5,-0.8 -13.7,1.5c-4.3,2.3 -7.4,6.2 -8.7,10.8c-1.3,4.6 -0.8,9.5 1.6,13.7l30,54.7c-5.3,3.5 -10.5,7.4 -15.4,11.5c-31.8,26.9 -53.2,58.9 -64.2,95.9l99.8,41.7c5.8,-20.2 16.2,-37.2 31.2,-50.8c15,-13.6 34.1,-20.4 57.3,-20.4c22,0 39.6,6.2 52.9,18.7c13.3,12.5 20,27.6 20,45.6c0,15.1 -3.9,28.4 -11.7,39.9c-7.8,11.6 -20.4,25.2 -37.8,40.8c-30.1,26 -50.9,49.2 -62.5,69.4c-11.6,20.3 -17.4,44.3 -17.4,72v28.6h113.7v-13.9c0,-20.2 3.6,-37 10.8,-50.3c7.2,-13.3 20.7,-29.2 40.4,-47.7c25.5,-24.3 44.5,-47 57.3,-68.1c12.7,-21.1 19.1,-46.7 19.1,-76.8C721.7,186.9 713.7,159 697.8,133.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M48.5,767.9h17.1l48.5,127.7H97.4l-12.7,-35.1H29.6l-12.8,35.1H0L48.5,767.9zM79.4,846.2l-16.9,-46l-5,-13.7h-0.7l-5.2,13.7l-16.8,46H79.4z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M127.7,807.1h14.4v13.2h0.7c2.5,-4.5 6.4,-8.3 11.8,-11.4c5.4,-3.1 11.1,-4.6 17.1,-4.6c10.8,0 19.1,3.2 24.7,9.5c5.6,6.3 8.5,14.9 8.5,25.9v56h-15v-53.7c0,-15.9 -7.4,-23.9 -22.3,-23.9c-4.8,0 -9,1.4 -12.8,4.1c-3.8,2.7 -6.8,6.3 -8.8,10.7c-2.1,4.4 -3.1,9 -3.1,13.9v48.9h-15.2V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M242.6,892.4c-6.4,-4 -11.5,-9.7 -15.3,-16.9c-3.8,-7.2 -5.7,-15.3 -5.7,-24.2c0,-8.9 1.9,-17 5.7,-24.2c3.8,-7.2 8.9,-12.8 15.3,-16.9c6.4,-4 13.4,-6.1 21.1,-6.1c6.9,0 13.1,1.5 18.6,4.5c5.5,3 9.6,6.8 12.3,11.3h0.7l-0.7,-12.1v-40.1h15v127.7h-14.3v-13.2h-0.7c-2.7,4.6 -6.8,8.5 -12.3,11.5c-5.5,3 -11.7,4.5 -18.6,4.5C256,898.4 249,896.4 242.6,892.4zM280.5,880.7c4.5,-2.7 8,-6.6 10.7,-11.7c2.7,-5.1 4,-11 4,-17.7c0,-6.8 -1.3,-12.7 -4,-17.8c-2.7,-5.1 -6.2,-8.9 -10.7,-11.6s-9.3,-4 -14.5,-4c-5.2,0 -10.1,1.4 -14.5,4.1c-4.5,2.7 -8,6.6 -10.7,11.7c-2.7,5.1 -4,10.9 -4,17.6c0,6.7 1.3,12.5 4,17.6c2.7,5.1 6.2,9 10.7,11.7c4.5,2.7 9.3,4.1 14.5,4.1C271.2,884.7 276.1,883.4 280.5,880.7z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M331.8,807.1h14.4v14.4h0.7c1.7,-4.9 5.1,-9 10.3,-12.3c5.2,-3.3 10.3,-5 15.4,-5c3.7,0 7.1,0.6 10.3,1.8v16.2c-3.2,-1.8 -7.4,-2.7 -12.5,-2.7c-4.2,0 -8.1,1.2 -11.7,3.7c-3.6,2.4 -6.5,5.7 -8.7,9.7s-3.2,8.5 -3.2,13.2v49.4h-15.2V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M408.7,892.3c-6.9,-4.1 -12.3,-9.8 -16.1,-16.9c-3.9,-7.2 -5.8,-15.2 -5.8,-24c0,-8.8 1.9,-16.8 5.8,-24c3.9,-7.2 9.2,-12.8 16.1,-16.9c6.9,-4.1 14.7,-6.2 23.4,-6.2c8.7,0 16.5,2.1 23.5,6.2c7,4.1 12.4,9.8 16.2,16.9c3.9,7.2 5.8,15.2 5.8,24c0,8.8 -1.9,16.8 -5.8,24c-3.9,7.2 -9.3,12.8 -16.2,16.9c-7,4.1 -14.8,6.2 -23.5,6.2C423.4,898.4 415.6,896.4 408.7,892.3zM447,880.6c4.6,-2.7 8.4,-6.6 11.1,-11.7c2.8,-5.1 4.2,-10.9 4.2,-17.6c0,-6.7 -1.4,-12.5 -4.2,-17.6c-2.8,-5.1 -6.5,-8.9 -11.1,-11.7c-4.6,-2.7 -9.6,-4.1 -15,-4.1c-5.2,0 -10.2,1.4 -14.8,4.1c-4.6,2.7 -8.4,6.6 -11.1,11.7c-2.8,5.1 -4.2,10.9 -4.2,17.6c0,6.7 1.4,12.5 4.2,17.6c2.8,5.1 6.5,9 11.1,11.7c4.6,2.7 9.6,4.1 14.8,4.1C437.4,884.7 442.4,883.3 447,880.6z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M494.1,785c-2.1,-2.1 -3.2,-4.7 -3.2,-7.7c0,-3 1.1,-5.5 3.2,-7.7c2.1,-2.1 4.7,-3.2 7.7,-3.2c3,0 5.5,1.1 7.7,3.2s3.2,4.7 3.2,7.7c0,3 -1,5.5 -3.1,7.7c-2.1,2.1 -4.7,3.2 -7.8,3.2C498.8,788.2 496.3,787.1 494.1,785zM494.3,807.1h15v88.5h-15V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M548,892.4c-6.4,-4 -11.5,-9.7 -15.3,-16.9c-3.8,-7.2 -5.7,-15.3 -5.7,-24.2c0,-8.9 1.9,-17 5.7,-24.2c3.8,-7.2 8.9,-12.8 15.3,-16.9c6.4,-4 13.4,-6.1 21.1,-6.1c6.9,0 13.1,1.5 18.6,4.5c5.5,3 9.6,6.8 12.3,11.3h0.7l-0.7,-12.1v-40.1h15v127.7h-14.3v-13.2h-0.7c-2.7,4.6 -6.8,8.5 -12.3,11.5c-5.5,3 -11.7,4.5 -18.6,4.5C561.5,898.4 554.4,896.4 548,892.4zM585.9,880.7c4.5,-2.7 8,-6.6 10.7,-11.7c2.7,-5.1 4,-11 4,-17.7c0,-6.8 -1.3,-12.7 -4,-17.8c-2.7,-5.1 -6.2,-8.9 -10.7,-11.6c-4.5,-2.7 -9.3,-4 -14.5,-4c-5.2,0 -10.1,1.4 -14.5,4.1c-4.5,2.7 -8,6.6 -10.7,11.7c-2.7,5.1 -4,10.9 -4,17.6c0,6.7 1.3,12.5 4,17.6c2.7,5.1 6.2,9 10.7,11.7c4.5,2.7 9.3,4.1 14.5,4.1C576.6,884.7 581.5,883.4 585.9,880.7z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M700.9,782.3H665v-14.5h86.7v14.5h-35.9v113.3h-15V782.3z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M756.7,807.1h14.4v14.4h0.7c1.7,-4.9 5.1,-9 10.3,-12.3c5.2,-3.3 10.3,-5 15.4,-5c3.7,0 7.1,0.6 10.3,1.8v16.2c-3.2,-1.8 -7.4,-2.7 -12.5,-2.7c-4.2,0 -8.1,1.2 -11.7,3.7c-3.6,2.4 -6.5,5.7 -8.7,9.7s-3.2,8.5 -3.2,13.2v49.4h-15.2V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M823.3,785c-2.1,-2.1 -3.2,-4.7 -3.2,-7.7c0,-3 1.1,-5.5 3.2,-7.7c2.1,-2.1 4.7,-3.2 7.7,-3.2c3,0 5.5,1.1 7.7,3.2s3.2,4.7 3.2,7.7c0,3 -1,5.5 -3.1,7.7c-2.1,2.1 -4.7,3.2 -7.8,3.2C828,788.2 825.4,787.1 823.3,785zM823.5,807.1h15v88.5h-15V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M852,807.1h16.4l27.1,70.6h0.4l27.5,-70.6h16.1l-36.2,88.5h-15.3L852,807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M952.8,785c-2.1,-2.1 -3.2,-4.7 -3.2,-7.7c0,-3 1.1,-5.5 3.2,-7.7c2.1,-2.1 4.7,-3.2 7.7,-3.2c3,0 5.5,1.1 7.7,3.2s3.2,4.7 3.2,7.7c0,3 -1,5.5 -3.1,7.7c-2.1,2.1 -4.7,3.2 -7.8,3.2C957.5,788.2 954.9,787.1 952.8,785zM953,807.1h15v88.5h-15V807.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M1001.9,894.6c-5.2,-2.6 -9.2,-6.1 -12.1,-10.7c-2.9,-4.6 -4.4,-9.7 -4.4,-15.4c0,-9.4 3.5,-16.7 10.6,-21.9c7.1,-5.2 16.1,-7.8 27.2,-7.8c5.5,0 10.4,0.6 14.8,1.8c4.4,1.2 7.9,2.5 10.5,3.9v-4.6c0,-4.3 -1.1,-8.1 -3.3,-11.5c-2.2,-3.4 -5.1,-6 -8.8,-7.8c-3.7,-1.8 -7.7,-2.8 -12,-2.8c-10.1,0 -17.8,4.1 -23.2,12.3l-12.7,-8.4c3.7,-5.5 8.6,-9.7 14.6,-12.8c6.1,-3 12.9,-4.5 20.5,-4.5c12.1,0 21.7,3.3 28.7,9.8c7,6.5 10.5,15.3 10.5,26.4v55.1h-14.4v-13h-0.7c-2.9,4.5 -6.7,8.3 -11.6,11.3c-4.9,3 -10.5,4.5 -16.9,4.5C1012.9,898.4 1007.1,897.2 1001.9,894.6zM1034.1,881.3c4.3,-2.5 7.8,-5.9 10.4,-10.2c2.7,-4.3 4,-8.9 4,-13.9c-6.7,-4.3 -14.3,-6.4 -23,-6.4c-7.5,0 -13.5,1.7 -17.9,5.1c-4.5,3.4 -6.7,7.7 -6.7,12.9c0,4.8 2,8.7 5.9,11.7c3.9,3 8.5,4.5 13.7,4.5C1025.3,885.1 1029.9,883.8 1034.1,881.3z"/>
|
||||
</vector>
|
||||
25
AndroidTriviaFragment/app/src/main/res/drawable/rules.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M15,15L3,15v2h12v-2zM15,7L3,7v2h12L15,7zM3,13h18v-2L3,11v2zM3,21h18v-2L3,19v2zM3,3v2h18L21,3L3,3z" />
|
||||
</vector>
|
||||
25
AndroidTriviaFragment/app/src/main/res/drawable/settings.xml
Executable file
@ -0,0 +1,25 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M19.43,12.98c0.04,-0.32 0.07,-0.64 0.07,-0.98s-0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.12,-0.22 -0.39,-0.3 -0.61,-0.22l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.23,-0.09 -0.49,0 -0.61,0.22l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98s0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.12,0.22 0.39,0.3 0.61,0.22l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.23,0.09 0.49,0 0.61,-0.22l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64l-2.11,-1.65zM12,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5s1.57,-3.5 3.5,-3.5 3.5,1.57 3.5,3.5 -1.57,3.5 -3.5,3.5z" />
|
||||
</vector>
|
||||
21
AndroidTriviaFragment/app/src/main/res/drawable/share.xml
Executable file
@ -0,0 +1,21 @@
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FF000000" android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
|
||||
</vector>
|
||||
23
AndroidTriviaFragment/app/src/main/res/drawable/trivia_rules.xml
Executable file
@ -0,0 +1,23 @@
|
||||
<vector android:height="535dp" android:viewportHeight="535"
|
||||
android:viewportWidth="507" android:width="507dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M255.6,256.5c-9.9,0 -18.4,3.5 -25.3,10.3c-6.9,6.9 -10.3,15.3 -10.3,25.3s3.4,18.4 10.3,25.5c6.9,7 15.3,10.6 25.3,10.6c9.9,0 18.4,-3.5 25.5,-10.6c7,-7 10.6,-15.5 10.6,-25.5s-3.5,-18.4 -10.6,-25.3C274.1,260 265.6,256.5 255.6,256.5z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M332.8,63.8c-6.6,-10.4 -15.4,-18.8 -26.4,-25.4l14.1,-25.7c1.1,-2 1.4,-4.3 0.7,-6.5c-0.6,-2.2 -2.1,-4.1 -4.1,-5.2L317,1c-4.2,-2.2 -9.4,-0.7 -11.6,3.5l-14.6,26.6c-11.1,-4 -23.2,-6 -36.4,-6c-12.8,0 -24.5,2 -34.9,5.9L205,4.5c-1.1,-2 -2.9,-3.5 -5.1,-4.1c-2.2,-0.6 -4.5,-0.4 -6.5,0.7c-2,1.1 -3.5,2.9 -4.2,5.2c-0.6,2.2 -0.4,4.5 0.7,6.5l14.3,26.1c-2.5,1.7 -5,3.5 -7.3,5.5c-15.2,12.8 -25.4,28.1 -30.6,45.7l47.6,19.9c2.8,-9.7 7.7,-17.7 14.9,-24.2C235.9,79.3 245,76 256,76c10.5,0 18.9,3 25.3,8.9c6.3,5.9 9.5,13.2 9.5,21.7c0,7.2 -1.9,13.5 -5.6,19c-3.7,5.5 -9.7,12 -18,19.5c-14.4,12.4 -24.3,23.5 -29.8,33.1c-5.5,9.7 -8.3,21.1 -8.3,34.4v13.7h54.2v-6.6c0,-9.7 1.7,-17.7 5.2,-24c3.4,-6.3 9.9,-13.9 19.2,-22.8c12.1,-11.6 21.2,-22.4 27.3,-32.5c6.1,-10.1 9.1,-22.3 9.1,-36.6C344.2,89.2 340.4,75.8 332.8,63.8z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M23.1,366.2h8.2l23.1,60.9h-8l-6,-16.8H14.1L8,427.2H0L23.1,366.2zM37.9,403.6l-8.1,-22l-2.4,-6.6h-0.3l-2.5,6.6l-8,22H37.9z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M60.9,385h6.9v6.3h0.3c1.2,-2.2 3.1,-4 5.6,-5.4c2.6,-1.5 5.3,-2.2 8.2,-2.2c5.2,0 9.1,1.5 11.8,4.5c2.7,3 4,7.1 4,12.3v26.7h-7.1v-25.6c0,-7.6 -3.5,-11.4 -10.6,-11.4c-2.3,0 -4.3,0.7 -6.1,2c-1.8,1.3 -3.2,3 -4.2,5.1c-1,2.1 -1.5,4.3 -1.5,6.6v23.3h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M115.7,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C122.1,428.5 118.8,427.6 115.7,425.6zM133.8,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5c-2.1,-1.3 -4.4,-1.9 -6.9,-1.9c-2.5,0 -4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2C129.4,422 131.7,421.3 133.8,420.1z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M158.3,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M194.9,425.6c-3.3,-2 -5.9,-4.7 -7.7,-8.1c-1.8,-3.4 -2.8,-7.2 -2.8,-11.4c0,-4.2 0.9,-8 2.8,-11.4c1.8,-3.4 4.4,-6.1 7.7,-8.1c3.3,-2 7,-2.9 11.1,-2.9c4.1,0 7.9,1 11.2,2.9c3.3,2 5.9,4.7 7.7,8.1c1.8,3.4 2.8,7.2 2.8,11.4c0,4.2 -0.9,8 -2.8,11.4c-1.8,3.4 -4.4,6.1 -7.7,8.1c-3.3,2 -7,2.9 -11.2,2.9C201.9,428.5 198.2,427.5 194.9,425.6zM213.2,420c2.2,-1.3 4,-3.2 5.3,-5.6c1.3,-2.4 2,-5.2 2,-8.4s-0.7,-6 -2,-8.4c-1.3,-2.4 -3.1,-4.3 -5.3,-5.6c-2.2,-1.3 -4.6,-2 -7.1,-2c-2.5,0 -4.9,0.7 -7.1,2c-2.2,1.3 -4,3.2 -5.3,5.6c-1.3,2.4 -2,5.2 -2,8.4s0.7,6 2,8.4c1.3,2.4 3.1,4.3 5.3,5.6c2.2,1.3 4.6,2 7.1,2C208.6,422 211,421.3 213.2,420z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M235.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C237.9,375.9 236.7,375.4 235.7,374.4zM235.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#6AB343" android:pathData="M261.4,425.6c-3.1,-1.9 -5.5,-4.6 -7.3,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.5c0,-4.3 0.9,-8.1 2.7,-11.5c1.8,-3.4 4.3,-6.1 7.3,-8c3.1,-1.9 6.4,-2.9 10,-2.9c3.3,0 6.2,0.7 8.8,2.2c2.6,1.4 4.6,3.2 5.9,5.4h0.3l-0.3,-5.8v-19.1h7.1v60.9h-6.8v-6.3h-0.3c-1.3,2.2 -3.3,4 -5.9,5.5c-2.6,1.4 -5.6,2.2 -8.8,2.2C267.8,428.5 264.5,427.6 261.4,425.6zM279.5,420.1c2.1,-1.3 3.8,-3.1 5.1,-5.6c1.3,-2.4 1.9,-5.2 1.9,-8.4c0,-3.2 -0.6,-6.1 -1.9,-8.5c-1.3,-2.4 -3,-4.3 -5.1,-5.5s-4.4,-1.9 -6.9,-1.9s-4.8,0.7 -6.9,2c-2.1,1.3 -3.8,3.2 -5.1,5.6c-1.3,2.4 -1.9,5.2 -1.9,8.4s0.6,6 1.9,8.4c1.3,2.4 3,4.3 5.1,5.6c2.1,1.3 4.4,2 6.9,2S277.3,421.3 279.5,420.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M334.3,373.1h-17.1v-6.9h41.4v6.9h-17.1v54h-7.1V373.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M360.9,385h6.9v6.9h0.3c0.8,-2.3 2.4,-4.3 4.9,-5.9c2.5,-1.6 4.9,-2.4 7.4,-2.4c1.8,0 3.4,0.3 4.9,0.9v7.7c-1.5,-0.9 -3.5,-1.3 -6,-1.3c-2,0 -3.8,0.6 -5.6,1.7c-1.7,1.2 -3.1,2.7 -4.1,4.6c-1,1.9 -1.5,4 -1.5,6.3v23.5h-7.2V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M392.7,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C394.9,375.9 393.7,375.4 392.7,374.4zM392.8,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M406.4,385h7.8l12.9,33.7h0.2l13.1,-33.7h7.7l-17.3,42.2h-7.3L406.4,385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M454.5,374.4c-1,-1 -1.5,-2.2 -1.5,-3.7c0,-1.4 0.5,-2.6 1.5,-3.7c1,-1 2.2,-1.5 3.7,-1.5c1.4,0 2.6,0.5 3.7,1.5c1,1 1.5,2.2 1.5,3.7c0,1.4 -0.5,2.6 -1.5,3.7c-1,1 -2.2,1.5 -3.7,1.5C456.7,375.9 455.5,375.4 454.5,374.4zM454.5,385h7.1v42.2h-7.1V385z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M477.9,426.7c-2.5,-1.2 -4.4,-2.9 -5.8,-5.1c-1.4,-2.2 -2.1,-4.6 -2.1,-7.4c0,-4.5 1.7,-8 5.1,-10.5c3.4,-2.5 7.7,-3.7 13,-3.7c2.6,0 5,0.3 7.1,0.9c2.1,0.6 3.8,1.2 5,1.9v-2.2c0,-2 -0.5,-3.9 -1.6,-5.5c-1.1,-1.6 -2.5,-2.9 -4.2,-3.7c-1.8,-0.9 -3.7,-1.3 -5.7,-1.3c-4.8,0 -8.5,2 -11.1,5.9l-6,-4c1.8,-2.6 4.1,-4.6 7,-6.1c2.9,-1.4 6.2,-2.2 9.8,-2.2c5.8,0 10.4,1.6 13.7,4.7c3.3,3.1 5,7.3 5,12.6v26.3h-6.9V421h-0.3c-1.4,2.2 -3.2,4 -5.5,5.4c-2.3,1.4 -5,2.2 -8.1,2.2S480.4,427.9 477.9,426.7zM493.3,420.4c2,-1.2 3.7,-2.8 5,-4.9s1.9,-4.3 1.9,-6.6c-3.2,-2 -6.8,-3.1 -11,-3.1c-3.6,0 -6.4,0.8 -8.6,2.4c-2.1,1.6 -3.2,3.7 -3.2,6.2c0,2.3 0.9,4.1 2.8,5.6c1.9,1.4 4.1,2.2 6.6,2.2C489.1,422.1 491.2,421.6 493.3,420.4z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M161.9,472.7h20.7c3.3,0 6.5,0.8 9.4,2.3s5.2,3.7 6.9,6.4c1.7,2.8 2.6,5.9 2.6,9.3c0,2.8 -0.7,5.5 -2,7.9c-1.3,2.4 -3.1,4.5 -5.3,6.1c-2.2,1.6 -4.7,2.8 -7.4,3.3l-0.2,0.3l17.1,24.9v0.3h-8.4l-16.6,-24.8h-9.6v24.8h-7.2V472.7zM182.1,502.1c2.2,0 4.1,-0.5 6,-1.4c1.8,-1 3.3,-2.3 4.4,-4c1.1,-1.7 1.7,-3.7 1.7,-5.8c0,-1.9 -0.5,-3.7 -1.4,-5.4s-2.3,-3.1 -4,-4.2c-1.7,-1.1 -3.7,-1.6 -6,-1.6h-13.5v22.5H182.1z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M213.1,530.5c-2.7,-3 -4,-7.2 -4,-12.5v-26.5h7.2v25.4c0,7.8 3.5,11.7 10.5,11.7c2.3,0 4.4,-0.7 6.3,-2c1.8,-1.3 3.3,-3 4.3,-5.1c1,-2.1 1.5,-4.3 1.5,-6.6v-23.3h7.1v42.2h-6.8v-6.3h-0.3c-1.2,2.2 -3.1,4 -5.7,5.4c-2.5,1.5 -5.2,2.2 -8.1,2.2C219.8,535 215.8,533.5 213.1,530.5z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M256.5,472.7h7.2v60.9h-7.2V472.7z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M281.8,532.1c-3.2,-1.9 -5.7,-4.6 -7.5,-8c-1.8,-3.4 -2.7,-7.3 -2.7,-11.6c0,-4.1 0.9,-7.8 2.6,-11.3c1.7,-3.4 4.1,-6.2 7.3,-8.2c3.1,-2 6.8,-3 10.8,-3s7.7,0.9 10.8,2.8c3.1,1.8 5.5,4.4 7.1,7.8c1.6,3.3 2.5,7.2 2.5,11.6c0,0.8 -0.1,1.4 -0.2,1.7h-33.5c0.1,3.2 0.9,5.9 2.3,8c1.4,2.2 3.2,3.8 5.3,4.9c2.1,1.1 4.3,1.6 6.6,1.6c5.3,0 9.4,-2.6 12.3,-7.8l6.4,3.1c-1.8,3.4 -4.3,6.1 -7.5,8.2c-3.2,2.1 -7,3.1 -11.5,3.1C288.6,535 285,534.1 281.8,532.1zM304.9,507.9c-0.1,-1.7 -0.6,-3.4 -1.4,-5.1c-0.9,-1.7 -2.2,-3.1 -4.1,-4.3c-1.9,-1.2 -4.3,-1.8 -7.3,-1.8c-3.2,0 -5.9,1 -8.3,3.1c-2.3,2 -3.8,4.8 -4.4,8.2H304.9z"/>
|
||||
<path android:fillColor="#424242" android:pathData="M324.6,531.6c-3.1,-2.3 -5.3,-5.1 -6.6,-8.4l6.4,-2.8c1.1,2.7 2.7,4.7 4.8,6.1c2.1,1.4 4.3,2.1 6.8,2.1c2.7,0 5,-0.6 6.8,-1.8c1.8,-1.2 2.7,-2.6 2.7,-4.3c0,-1.6 -0.7,-3 -2,-4.1c-1.3,-1.1 -3.6,-2 -6.8,-2.8l-5.8,-1.4c-3.2,-0.7 -5.9,-2.1 -8.1,-4c-2.2,-1.9 -3.4,-4.5 -3.4,-7.7c0,-2.6 0.8,-4.8 2.3,-6.7s3.5,-3.3 6,-4.3c2.5,-1 5.2,-1.4 8.2,-1.4c3.6,0 6.9,0.8 9.9,2.5c3,1.7 5.1,4 6.3,7.1l-6.4,2.7c-0.9,-2 -2.3,-3.5 -4.1,-4.5c-1.8,-1 -3.9,-1.4 -6.2,-1.4c-2.2,0 -4.2,0.5 -6,1.6c-1.8,1.1 -2.7,2.5 -2.7,4.2c0,1.5 0.6,2.6 1.7,3.5c1.2,0.9 3,1.6 5.6,2.3l6.3,1.5c4.2,1.1 7.3,2.7 9.4,4.8c2.1,2.1 3.1,4.7 3.1,7.6c0,2.4 -0.7,4.7 -2.1,6.6c-1.4,2 -3.4,3.5 -6,4.7c-2.6,1.1 -5.4,1.7 -8.7,1.7C331.5,535 327.7,533.9 324.6,531.6z"/>
|
||||
</vector>
|
||||
12
AndroidTriviaFragment/app/src/main/res/drawable/try_again.xml
Executable file
@ -0,0 +1,12 @@
|
||||
<vector android:height="806.5dp" android:viewportHeight="806.5"
|
||||
android:viewportWidth="534.4" android:width="534.4dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M39,230.3c-21.5,0 -39,16.8 -39,37.4l0,156.8C0,445.3 17.5,462 39,462c21.5,0 39,-16.7 39,-37.5l0,-156.8C78,247.1 60.5,230.3 39,230.3M352.7,55.4l27.2,-47.7c1.5,-2.5 0.5,-5.7 -2.1,-7.1c-2.7,-1.3 -5.9,-0.4 -7.3,2.1l-27.5,48.2c-23.1,-9.9 -49,-15.4 -76.4,-15.4c-27.3,0 -53.2,5.5 -76.2,15.3L162.9,2.8c-1.4,-2.5 -4.7,-3.5 -7.3,-2.1c-2.6,1.4 -3.6,4.5 -2.1,7l27.2,47.7c-53.5,26.5 -89.6,76.9 -89.6,134.9l351,0C442.1,132.3 406.1,82 352.7,55.4M186.7,166.5c-8.1,0 -14.7,-6.3 -14.7,-14.1c0,-7.8 6.6,-14.2 14.7,-14.2c8.1,0 14.7,6.4 14.7,14.2C201.5,160.2 194.9,166.5 186.7,166.5M346.6,166.5c-8.1,0 -14.7,-6.3 -14.7,-14.1c0,-7.7 6.6,-14.1 14.7,-14.2c8.1,0 14.7,6.4 14.7,14.2C361.3,160.1 354.7,166.5 346.6,166.5M93.1,202.8l0.1,243c0,22.1 18.6,39.9 41.6,40l28.3,0l0,83c0,20.7 17.5,37.4 38.9,37.4c21.5,0 39,-16.8 39,-37.5l0,-83l52.6,0l0,83c0,20.6 17.5,37.5 39,37.4c21.5,0 39,-16.8 39,-37.5l0,-82.9l28.4,0c22.9,0 41.6,-17.9 41.6,-40l0,-243L93.1,202.8zM534.4,267.7c0,-20.7 -17.4,-37.4 -39,-37.4c-21.5,0 -39,16.8 -39,37.5l0,156.8c0,20.7 17.4,37.4 39,37.4c21.5,0 39,-16.7 39,-37.5L534.4,267.7z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M28.8,698.2H2.7v-10.1h63.2v10.1H39.8v79.3H28.8V698.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M69.5,715.5h10.5v10.1h0.5c1.2,-3.4 3.7,-6.3 7.5,-8.6c3.8,-2.3 7.5,-3.5 11.2,-3.5c2.7,0 5.2,0.4 7.5,1.2v11.4c-2.3,-1.2 -5.4,-1.9 -9.1,-1.9c-3,0 -5.9,0.9 -8.5,2.6c-2.6,1.7 -4.7,4 -6.3,6.8c-1.6,2.8 -2.3,5.9 -2.3,9.3v34.6H69.5V715.5z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M139.6,773.5l-26.8,-58h12l20,45.6h0.3l19.4,-45.6h12l-40.3,88.9h-11.3L139.6,773.5z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M240.7,688.1h12.5l35.4,89.4h-12.2l-9.2,-24.6H227l-9.4,24.6h-12.2L240.7,688.1zM263.2,742.9l-12.3,-32.2l-3.6,-9.6h-0.5l-3.8,9.6l-12.2,32.2H263.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M306.4,801.1c-4.9,-3.6 -8.3,-7.7 -10,-12.5l10.3,-4.1c1.3,3.7 3.6,6.6 7,8.9c3.3,2.3 7.3,3.4 11.9,3.4c6.8,0 12.1,-1.9 15.8,-5.7c3.7,-3.8 5.5,-9.2 5.5,-16v-6.6h-0.5c-2.1,3.2 -5.1,5.8 -9,7.9c-3.9,2.1 -8.3,3.1 -13.3,3.1c-5.5,0 -10.5,-1.4 -15.2,-4.3c-4.7,-2.8 -8.4,-6.8 -11.2,-11.8c-2.8,-5 -4.2,-10.7 -4.2,-16.9s1.4,-11.9 4.2,-16.9c2.8,-5 6.5,-8.9 11.2,-11.8c4.7,-2.8 9.8,-4.3 15.2,-4.3c4.9,0 9.4,1 13.3,3.1c3.9,2.1 6.9,4.7 9,7.9h0.5v-9h10.5V775c0,6.8 -1.4,12.6 -4.2,17.4c-2.8,4.7 -6.6,8.3 -11.4,10.6c-4.8,2.3 -10.2,3.5 -16.3,3.5C317.7,806.5 311.3,804.7 306.4,801.1zM336.3,767.1c3.2,-1.9 5.8,-4.6 7.7,-8.1c2,-3.5 2.9,-7.7 2.9,-12.4s-1,-8.9 -2.9,-12.5c-2,-3.6 -4.5,-6.3 -7.7,-8.1c-3.2,-1.8 -6.7,-2.8 -10.5,-2.8c-3.8,0 -7.3,0.9 -10.5,2.8c-3.2,1.9 -5.8,4.6 -7.7,8.1c-1.9,3.5 -2.9,7.7 -2.9,12.4s1,8.9 2.9,12.4c2,3.5 4.5,6.2 7.7,8.1c3.2,1.9 6.7,2.8 10.5,2.8C329.6,769.9 333.1,768.9 336.3,767.1z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M381.2,776.8c-3.8,-1.8 -6.7,-4.3 -8.8,-7.5c-2.1,-3.2 -3.2,-6.8 -3.2,-10.8c0,-6.6 2.6,-11.7 7.7,-15.4c5.2,-3.7 11.8,-5.5 19.8,-5.5c4,0 7.6,0.4 10.8,1.2c3.2,0.8 5.8,1.7 7.7,2.7v-3.2c0,-3 -0.8,-5.7 -2.4,-8.1c-1.6,-2.4 -3.8,-4.2 -6.4,-5.5c-2.7,-1.3 -5.6,-1.9 -8.7,-1.9c-7.4,0 -13,2.9 -16.9,8.6l-9.2,-5.9c2.7,-3.8 6.2,-6.8 10.7,-8.9c4.4,-2.1 9.4,-3.2 15,-3.2c8.8,0 15.8,2.3 20.9,6.9c5.1,4.6 7.7,10.7 7.7,18.5v38.6h-10.5v-9.1h-0.5c-2.1,3.2 -4.9,5.8 -8.5,7.9c-3.6,2.1 -7.7,3.2 -12.3,3.2C389.2,779.5 385,778.6 381.2,776.8zM404.7,767.5c3.1,-1.7 5.7,-4.1 7.6,-7.1s2.9,-6.2 2.9,-9.7c-4.9,-3 -10.4,-4.5 -16.8,-4.5c-5.5,0 -9.8,1.2 -13.1,3.6c-3.2,2.4 -4.9,5.4 -4.9,9.1c0,3.3 1.4,6.1 4.3,8.2c2.9,2.1 6.2,3.2 10,3.2C398.2,770.1 401.5,769.3 404.7,767.5z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M441.7,700c-1.6,-1.5 -2.3,-3.3 -2.3,-5.4c0,-2.1 0.8,-3.9 2.3,-5.4c1.6,-1.5 3.4,-2.2 5.6,-2.2c2.2,0 4,0.7 5.6,2.2c1.6,1.5 2.3,3.3 2.3,5.4c0,2.1 -0.8,3.9 -2.3,5.4c-1.5,1.5 -3.4,2.2 -5.7,2.2C445.1,702.3 443.3,701.5 441.7,700zM441.8,715.5h10.9v62h-10.9V715.5z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M469.9,715.5h10.5v9.2h0.5c1.8,-3.2 4.7,-5.8 8.6,-8c3.9,-2.2 8.1,-3.2 12.5,-3.2c7.9,0 13.9,2.2 18,6.6c4.1,4.4 6.2,10.5 6.2,18.1v39.2h-10.9v-37.6c0,-11.2 -5.4,-16.7 -16.2,-16.7c-3.5,0 -6.6,1 -9.4,2.9c-2.8,1.9 -4.9,4.4 -6.4,7.5c-1.5,3.1 -2.3,6.3 -2.3,9.7v34.2h-11.1V715.5z"/>
|
||||
</vector>
|
||||
20
AndroidTriviaFragment/app/src/main/res/drawable/you_win.xml
Executable file
@ -0,0 +1,20 @@
|
||||
<vector android:height="839.3dp" android:viewportHeight="839.3"
|
||||
android:viewportWidth="936.8" android:width="936.8dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#6AB343" android:pathData="M269.6,269.7c15.2,-15.2 15.2,-39.9 0,-55.1L154.2,99.2C139,84 114.3,84 99.1,99.2c-15.2,15.2 -15.2,39.9 0,55.1l115.4,115.4C229.7,284.9 254.4,284.9 269.6,269.7M554.5,57.7L581.7,8c1.5,-2.6 0.5,-5.9 -2.1,-7.4c-2.7,-1.4 -5.9,-0.5 -7.3,2.2L544.8,53c-23.1,-10.3 -49,-16.1 -76.4,-16c-27.3,0 -53.2,5.7 -76.2,16L364.7,2.9c-1.4,-2.6 -4.7,-3.6 -7.3,-2.2c-2.6,1.4 -3.6,4.7 -2.1,7.3l27.2,49.6C329,85.2 292.9,137.7 292.9,198l351,0C644,137.7 607.9,85.3 554.5,57.7M388.6,134.4c-8.1,0 -14.7,-6.6 -14.7,-14.7c0,-8.1 6.6,-14.7 14.7,-14.7c8.1,0 14.7,6.6 14.7,14.7C403.3,127.8 396.7,134.4 388.6,134.4M548.4,134.4c-8.1,0 -14.7,-6.6 -14.7,-14.7c0,-8.1 6.6,-14.7 14.7,-14.7c8.1,0 14.7,6.7 14.7,14.8C563.1,127.8 556.5,134.4 548.4,134.4M294.9,211l0.1,252.9c0,23 18.6,41.6 41.6,41.6l28.3,0l0,86.3c0,21.5 17.5,39 38.9,39c21.5,0 39,-17.5 39,-39l0,-86.3l52.6,0l0,86.3c0,21.5 17.5,39 39,39c21.5,0 39,-17.5 39,-39l0,-86.3l28.4,0c22.9,0 41.6,-18.6 41.6,-41.6l0,-252.9L294.9,211zM669.7,269.7c15.2,15.2 39.9,15.2 55.1,0l115.4,-115.4c15.3,-15.2 15.2,-39.9 0,-55.1C825,84 800.4,84 785.1,99.2L669.7,214.6C654.5,229.8 654.5,254.5 669.7,269.7"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M23.7,804.8c-7.4,-4.2 -13.2,-10.1 -17.4,-17.5C2.1,779.8 0,771.6 0,762.6c0,-9 2.1,-17.2 6.3,-24.7c4.2,-7.5 10,-13.3 17.4,-17.5c7.4,-4.2 15.5,-6.4 24.4,-6.4c7,0 13.4,1.3 19.2,4c5.8,2.6 10.7,6.4 14.9,11.2l-7.8,7.7c-3.5,-4.2 -7.3,-7.4 -11.6,-9.4c-4.3,-2 -9.2,-3 -14.6,-3c-6.7,0 -12.8,1.6 -18.5,4.7c-5.6,3.2 -10.1,7.6 -13.5,13.4c-3.3,5.8 -5,12.4 -5,20s1.7,14.2 5,20c3.3,5.8 7.8,10.2 13.5,13.4c5.6,3.2 11.8,4.7 18.5,4.7c11.4,0 21,-4.6 28.9,-13.9l7.9,7.8c-4.2,5.1 -9.5,9.2 -15.9,12.2c-6.3,3 -13.3,4.5 -20.9,4.5C39.2,811.2 31,809.1 23.7,804.8z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M108,806.7c-5,-3 -9,-7.1 -11.8,-12.3c-2.8,-5.2 -4.2,-11.1 -4.2,-17.5c0,-6.4 1.4,-12.2 4.2,-17.5c2.8,-5.2 6.7,-9.4 11.8,-12.4c5,-3 10.7,-4.5 17,-4.5c6.3,0 12,1.5 17.1,4.5c5.1,3 9,7.1 11.8,12.4c2.8,5.2 4.2,11.1 4.2,17.5c0,6.4 -1.4,12.2 -4.2,17.5c-2.8,5.2 -6.8,9.4 -11.8,12.3c-5.1,3 -10.8,4.5 -17.1,4.5C118.7,811.2 113.1,809.7 108,806.7zM136,798.2c3.4,-2 6.1,-4.8 8.1,-8.5c2,-3.7 3.1,-8 3.1,-12.8c0,-4.9 -1,-9.1 -3.1,-12.8c-2,-3.7 -4.7,-6.5 -8.1,-8.5c-3.4,-2 -7,-3 -10.9,-3c-3.8,0 -7.4,1 -10.8,3c-3.4,2 -6.1,4.8 -8.1,8.5c-2,3.7 -3.1,8 -3.1,12.8c0,4.9 1,9.1 3.1,12.8c2,3.7 4.7,6.5 8.1,8.5c3.4,2 7,3 10.8,3C129,801.2 132.6,800.2 136,798.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M169.4,744.6h10.5v9.6h0.5c1.8,-3.3 4.7,-6.1 8.6,-8.3c3.9,-2.3 8.1,-3.4 12.5,-3.4c7.9,0 13.9,2.3 18,6.9c4.1,4.6 6.2,10.9 6.2,18.8v40.8h-10.9V770c0,-11.6 -5.4,-17.4 -16.2,-17.4c-3.5,0 -6.6,1 -9.4,3c-2.8,2 -4.9,4.6 -6.4,7.8c-1.5,3.2 -2.3,6.6 -2.3,10.1v35.6h-11V744.6z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M250,833.7c-4.9,-3.7 -8.3,-8.1 -10,-13l10.3,-4.3c1.3,3.8 3.6,6.9 7,9.3c3.3,2.4 7.3,3.6 11.9,3.6c6.8,0 12.1,-2 15.8,-6c3.7,-4 5.5,-9.5 5.5,-16.7v-6.9h-0.5c-2.1,3.3 -5.1,6 -9,8.2c-3.9,2.2 -8.3,3.2 -13.3,3.2c-5.5,0 -10.5,-1.5 -15.2,-4.4c-4.7,-3 -8.4,-7 -11.2,-12.3c-2.8,-5.2 -4.2,-11.1 -4.2,-17.6s1.4,-12.4 4.2,-17.6c2.8,-5.2 6.5,-9.3 11.2,-12.3c4.7,-3 9.8,-4.4 15.2,-4.4c4.9,0 9.4,1.1 13.3,3.2c3.9,2.2 6.9,4.9 9,8.2h0.5v-9.4H301v61.9c0,7.1 -1.4,13.1 -4.2,18.1c-2.8,4.9 -6.6,8.6 -11.4,11c-4.8,2.4 -10.2,3.6 -16.3,3.6C261.3,839.3 254.9,837.4 250,833.7zM279.9,798.2c3.2,-2 5.8,-4.8 7.7,-8.4c2,-3.7 2.9,-8 2.9,-12.9c0,-5 -1,-9.3 -2.9,-13c-1.9,-3.7 -4.5,-6.5 -7.7,-8.4c-3.2,-1.9 -6.7,-2.9 -10.5,-2.9c-3.8,0 -7.3,1 -10.5,2.9c-3.2,2 -5.8,4.8 -7.7,8.4c-2,3.7 -2.9,8 -2.9,12.9c0,5 1,9.3 2.9,12.9c1.9,3.7 4.5,6.5 7.7,8.4c3.2,2 6.7,2.9 10.5,2.9C273.2,801.2 276.7,800.2 279.9,798.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M317.2,744.6h10.5v10.5h0.5c1.2,-3.6 3.7,-6.5 7.5,-9c3.8,-2.4 7.5,-3.6 11.2,-3.6c2.7,0 5.2,0.4 7.5,1.3v11.8c-2.3,-1.3 -5.4,-2 -9.1,-2c-3,0 -5.9,0.9 -8.5,2.7c-2.6,1.8 -4.7,4.1 -6.3,7.1c-1.6,3 -2.3,6.2 -2.3,9.6v36h-11.1V744.6z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M370.4,808.4c-3.8,-1.9 -6.7,-4.5 -8.8,-7.8c-2.1,-3.3 -3.2,-7.1 -3.2,-11.2c0,-6.8 2.6,-12.2 7.7,-16c5.2,-3.8 11.8,-5.7 19.8,-5.7c4,0 7.6,0.4 10.8,1.3c3.2,0.9 5.8,1.8 7.7,2.9v-3.4c0,-3.1 -0.8,-5.9 -2.4,-8.4c-1.6,-2.5 -3.8,-4.4 -6.4,-5.7c-2.7,-1.3 -5.6,-2 -8.7,-2c-7.4,0 -13,3 -16.9,9l-9.2,-6.1c2.7,-4 6.2,-7.1 10.7,-9.3s9.4,-3.3 15,-3.3c8.8,0 15.8,2.4 20.9,7.1c5.1,4.8 7.7,11.2 7.7,19.2v40.2h-10.5v-9.5h-0.5c-2.1,3.3 -4.9,6 -8.4,8.3c-3.6,2.2 -7.7,3.3 -12.3,3.3C378.4,811.2 374.2,810.3 370.4,808.4zM393.9,798.7c3.1,-1.8 5.7,-4.3 7.6,-7.4c1.9,-3.1 2.9,-6.5 2.9,-10.1c-4.9,-3.1 -10.4,-4.7 -16.8,-4.7c-5.5,0 -9.8,1.2 -13.1,3.7s-4.9,5.6 -4.9,9.4c0,3.5 1.4,6.3 4.3,8.5s6.2,3.3 10,3.3C387.5,801.4 390.8,800.5 393.9,798.7z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M446.4,809.9c-2.2,-0.9 -4.1,-2.1 -5.7,-3.6c-1.7,-1.7 -3,-3.6 -3.8,-5.9c-0.8,-2.3 -1.2,-4.9 -1.2,-8v-37.7h-11.4v-10h11.4v-19.2h10.9v19.2h15.9v10h-15.9v35.1c0,3.7 0.7,6.5 2.2,8.2c1.5,2 3.7,2.9 6.8,2.9c2.7,0 5,-0.6 7,-1.8v10.7c-1.4,0.5 -2.7,0.9 -4,1.1c-1.3,0.2 -2.9,0.3 -5,0.3C451,811.2 448.6,810.7 446.4,809.9z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M480.9,804.3c-4.1,-4.6 -6.2,-11 -6.2,-19.1v-40.6h11v38.7c0,11.9 5.3,17.8 16,17.8c3.6,0 6.7,-1 9.6,-3c2.8,-2 5,-4.6 6.5,-7.8c1.5,-3.2 2.3,-6.6 2.3,-10.1v-35.6H531v64.5h-10.4v-9.6h-0.5c-1.9,3.3 -4.8,6.1 -8.6,8.3c-3.9,2.3 -8,3.4 -12.4,3.4C491.1,811.2 485,808.9 480.9,804.3z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M547.3,716h11.1v93.1h-11.1V716z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M582.1,808.4c-3.8,-1.9 -6.7,-4.5 -8.8,-7.8c-2.1,-3.3 -3.2,-7.1 -3.2,-11.2c0,-6.8 2.6,-12.2 7.7,-16c5.2,-3.8 11.8,-5.7 19.8,-5.7c4,0 7.6,0.4 10.8,1.3c3.2,0.9 5.8,1.8 7.7,2.9v-3.4c0,-3.1 -0.8,-5.9 -2.4,-8.4c-1.6,-2.5 -3.8,-4.4 -6.4,-5.7c-2.7,-1.3 -5.6,-2 -8.7,-2c-7.4,0 -13,3 -16.9,9l-9.2,-6.1c2.7,-4 6.2,-7.1 10.7,-9.3s9.4,-3.3 15,-3.3c8.8,0 15.8,2.4 20.9,7.1c5.1,4.8 7.7,11.2 7.7,19.2v40.2h-10.5v-9.5h-0.5c-2.1,3.3 -4.9,6 -8.5,8.3c-3.6,2.2 -7.7,3.3 -12.3,3.3C590.1,811.2 585.8,810.3 582.1,808.4zM605.5,798.7c3.1,-1.8 5.7,-4.3 7.6,-7.4c2,-3.1 2.9,-6.5 2.9,-10.1c-4.9,-3.1 -10.4,-4.7 -16.8,-4.7c-5.5,0 -9.8,1.2 -13.1,3.7s-4.9,5.6 -4.9,9.4c0,3.5 1.4,6.3 4.3,8.5c2.9,2.2 6.2,3.3 10,3.3C599.1,801.4 602.4,800.5 605.5,798.7z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M658,809.9c-2.2,-0.9 -4.1,-2.1 -5.7,-3.6c-1.7,-1.7 -3,-3.6 -3.8,-5.9c-0.8,-2.3 -1.2,-4.9 -1.2,-8v-37.7h-11.4v-10h11.4v-19.2h10.9v19.2H674v10h-15.9v35.1c0,3.7 0.7,6.5 2.2,8.2c1.5,2 3.7,2.9 6.8,2.9c2.7,0 5,-0.6 7,-1.8v10.7c-1.4,0.5 -2.7,0.9 -4,1.1c-1.3,0.2 -2.9,0.3 -5,0.3C662.6,811.2 660.2,810.7 658,809.9z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M688.5,728.5c-1.6,-1.6 -2.3,-3.4 -2.3,-5.6c0,-2.2 0.8,-4 2.3,-5.6c1.6,-1.6 3.4,-2.3 5.6,-2.3c2.2,0 4,0.8 5.6,2.3c1.6,1.6 2.3,3.4 2.3,5.6c0,2.2 -0.8,4 -2.3,5.6c-1.5,1.6 -3.4,2.3 -5.7,2.3C691.9,730.8 690,730.1 688.5,728.5zM688.6,744.6h10.9v64.5h-10.9V744.6z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M728.4,806.7c-5,-3 -9,-7.1 -11.8,-12.3c-2.8,-5.2 -4.2,-11.1 -4.2,-17.5c0,-6.4 1.4,-12.2 4.2,-17.5c2.8,-5.2 6.7,-9.4 11.8,-12.4c5,-3 10.7,-4.5 17,-4.5c6.3,0 12,1.5 17.1,4.5s9,7.1 11.8,12.4c2.8,5.2 4.2,11.1 4.2,17.5c0,6.4 -1.4,12.2 -4.2,17.5c-2.8,5.2 -6.8,9.4 -11.8,12.3c-5.1,3 -10.8,4.5 -17.1,4.5C739.1,811.2 733.4,809.7 728.4,806.7zM756.3,798.2c3.4,-2 6.1,-4.8 8.1,-8.5c2,-3.7 3.1,-8 3.1,-12.8c0,-4.9 -1,-9.1 -3.1,-12.8c-2,-3.7 -4.7,-6.5 -8.1,-8.5c-3.4,-2 -7,-3 -10.9,-3c-3.8,0 -7.4,1 -10.8,3c-3.4,2 -6.1,4.8 -8.1,8.5c-2,3.7 -3.1,8 -3.1,12.8c0,4.9 1,9.1 3.1,12.8c2,3.7 4.7,6.5 8.1,8.5c3.4,2 7,3 10.8,3C749.3,801.2 753,800.2 756.3,798.2z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M789.7,744.6h10.5v9.6h0.5c1.8,-3.3 4.7,-6.1 8.6,-8.3c3.9,-2.3 8.1,-3.4 12.5,-3.4c7.9,0 13.9,2.3 18,6.9c4.1,4.6 6.2,10.9 6.2,18.8v40.8h-10.9V770c0,-11.6 -5.4,-17.4 -16.2,-17.4c-3.5,0 -6.6,1 -9.4,3c-2.8,2 -4.9,4.6 -6.4,7.8c-1.5,3.2 -2.3,6.6 -2.3,10.1v35.6h-11.1V744.6z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M866.4,806c-4.8,-3.5 -8.1,-7.8 -10,-12.9l9.8,-4.3c1.7,4.1 4.2,7.2 7.3,9.4c3.2,2.2 6.6,3.2 10.3,3.2c4.2,0 7.6,-0.9 10.3,-2.7c2.7,-1.8 4.1,-4 4.1,-6.6c0,-2.5 -1,-4.6 -3.1,-6.2c-2,-1.6 -5.5,-3.1 -10.5,-4.3l-8.8,-2.2c-4.9,-1.1 -9,-3.2 -12.4,-6.1c-3.4,-2.9 -5.1,-6.8 -5.1,-11.7c0,-4 1.1,-7.4 3.4,-10.3c2.3,-2.9 5.3,-5 9.2,-6.5c3.8,-1.5 8,-2.2 12.5,-2.2c5.5,0 10.6,1.3 15.1,3.8c4.5,2.6 7.8,6.2 9.7,10.9l-9.8,4.2c-1.4,-3.1 -3.5,-5.4 -6.3,-6.9c-2.8,-1.5 -6,-2.2 -9.4,-2.2c-3.4,0 -6.4,0.8 -9.2,2.5c-2.7,1.6 -4.1,3.8 -4.1,6.4c0,2.3 0.9,4 2.7,5.3c1.8,1.3 4.6,2.5 8.5,3.5l9.6,2.3c6.4,1.6 11.2,4.1 14.4,7.3c3.2,3.2 4.7,7.1 4.7,11.6c0,3.7 -1.1,7.1 -3.2,10.1c-2.2,3 -5.2,5.4 -9.1,7.2c-3.9,1.7 -8.3,2.6 -13.3,2.6C877,811.2 871.2,809.4 866.4,806z"/>
|
||||
<path android:fillColor="#FF000000" android:pathData="M922.7,806.7c-1.6,-1.6 -2.4,-3.6 -2.4,-5.9c0,-2.3 0.8,-4.2 2.4,-5.8c1.6,-1.6 3.6,-2.4 5.9,-2.4c2.3,0 4.2,0.8 5.8,2.4c1.6,1.6 2.4,3.5 2.4,5.8c0,2.3 -0.8,4.3 -2.4,5.9c-1.6,1.6 -3.5,2.4 -5.8,2.4C926.2,809.1 924.3,808.3 922.7,806.7zM923.1,747.6V716H934v31.6l-1.3,34.1h-8.5L923.1,747.6z"/>
|
||||
</vector>
|
||||
33
AndroidTriviaFragment/app/src/main/res/layout/activity_main.xml
Executable file
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/titleFragment"
|
||||
android:name="com.example.android.navigation.TitleFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</layout>
|
||||
55
AndroidTriviaFragment/app/src/main/res/layout/fragment_about.xml
Executable file
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<ScrollView 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"
|
||||
android:fillViewport="true"
|
||||
tools:context="com.example.android.navigation.AboutFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/aboutImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/image_header_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/about_android_trivia" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/rulesText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:text="@string/about_text"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/aboutImage" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
137
AndroidTriviaFragment/app/src/main/res/layout/fragment_game.xml
Executable file
@ -0,0 +1,137 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout 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"
|
||||
tools:context="com.example.android.navigation.InGame">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="game"
|
||||
type="com.example.android.navigation.GameFragment" />
|
||||
</data>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/frameLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/questionImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/image_header_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:layout_marginBottom="@dimen/vertical_margin"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toTopOf="@+id/questionText"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:srcCompat="@drawable/android_category_simple" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/questionText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/question_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/question_horizontal_margin"
|
||||
android:layout_marginBottom="@dimen/vertical_margin"
|
||||
android:fontFamily="sans-serif"
|
||||
android:text="@{game.currentQuestion.text}"
|
||||
android:textSize="@dimen/question_text_size"
|
||||
android:textStyle="bold"
|
||||
android:typeface="normal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/questionImage"
|
||||
tools:text="What color is the Android mascot?" />
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/questionRadioGroup"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/question_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/question_horizontal_margin"
|
||||
android:animateLayoutChanges="true"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/questionText">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/firstAnswerRadioButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/question_vertical_margin"
|
||||
android:checked="true"
|
||||
android:text="@{game.answers[0]}"
|
||||
android:textSize="@dimen/answer_text_size"
|
||||
tools:text="Blue" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/secondAnswerRadioButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/question_vertical_margin"
|
||||
android:text="@{game.answers[1]}"
|
||||
android:textSize="@dimen/answer_text_size"
|
||||
tools:text="Green" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/thirdAnswerRadioButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/question_vertical_margin"
|
||||
android:text="@{game.answers[2]}"
|
||||
android:textSize="@dimen/answer_text_size"
|
||||
tools:text="Yellow" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/fourthAnswerRadioButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{game.answers[3]}"
|
||||
android:textSize="@dimen/answer_text_size"
|
||||
tools:text="Red" />
|
||||
</RadioGroup>
|
||||
|
||||
<Button
|
||||
android:id="@+id/submitButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/question_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/question_horizontal_margin"
|
||||
android:text="@string/submit_button"
|
||||
android:textSize="@dimen/button_text_size"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/questionRadioGroup" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
</layout>
|
||||
62
AndroidTriviaFragment/app/src/main/res/layout/fragment_game_over.xml
Executable file
@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout 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"
|
||||
tools:context="com.example.android.navigation.GameOverFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/gameOverConstraintLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/gameOverBackground">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/gameOverFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="362dp"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toTopOf="@+id/tryAgainButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:srcCompat="@drawable/try_again" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/tryAgainButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/vertical_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/vertical_margin"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:paddingStart="@dimen/button_padding"
|
||||
android:paddingEnd="@dimen/button_padding"
|
||||
android:text="@string/try_again"
|
||||
android:textColor="?colorAccent"
|
||||
android:textSize="@dimen/button_text_size"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/gameOverFragment" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
59
AndroidTriviaFragment/app/src/main/res/layout/fragment_game_won.xml
Executable file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout 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"
|
||||
tools:context="com.example.android.navigation.GameWonFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/gameWonConstraintLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/youWinBackground">
|
||||
|
||||
<Button
|
||||
android:id="@+id/nextMatchButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/button_padding"
|
||||
android:paddingEnd="@dimen/button_padding"
|
||||
android:text="Next Match"
|
||||
android:textColor="@color/youWinDark"
|
||||
android:textSize="@dimen/button_text_size"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/youWinImage" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/youWinImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/game_over_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:layout_marginBottom="@dimen/vertical_margin"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toTopOf="@+id/nextMatchButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/you_win" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
54
AndroidTriviaFragment/app/src/main/res/layout/fragment_rules.xml
Executable file
@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<ScrollView 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"
|
||||
android:fillViewport="true"
|
||||
tools:context="com.example.android.navigation.RulesFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/rulesImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/image_header_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/trivia_rules" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/rulesText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginTop="@dimen/vertical_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:text="@string/rules_text"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rulesImage" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
||||
61
AndroidTriviaFragment/app/src/main/res/layout/fragment_title.xml
Executable file
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright 2018, The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<layout 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"
|
||||
tools:context="com.example.android.navigation.TitleFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/titleConstraint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<Button
|
||||
android:id="@+id/playButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:paddingStart="@dimen/button_padding"
|
||||
android:paddingEnd="@dimen/button_padding"
|
||||
android:text="Play"
|
||||
android:textColor="@color/colorAccent"
|
||||
android:textSize="@dimen/button_text_size"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/titleImage" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/titleImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/image_header_height"
|
||||
android:layout_marginStart="@dimen/horizontal_margin"
|
||||
android:layout_marginEnd="@dimen/horizontal_margin"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintBottom_toTopOf="@+id/playButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/android_trivia" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||