Git Product home page Git Product logo

android-basics-kotlin-affirmations-app-solution's People

Contributors

geneandgoogle avatar jkcoolmom avatar osuleymanova avatar yenerm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

android-basics-kotlin-affirmations-app-solution's Issues

Android Basics: display-list-cards : it appears differently with Android Studio 4.1.2

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards#2

In which task and step of the codelab can this issue be found?
3. Polishing the UI > Separate Styles from Themes > 6. Locate the line...

Describe the problem
In Codelabs, it is written : Locate the line that reads android:theme="@style/AppTheme" and change it to android:theme="@style/Theme.Affirmations".
With Android Studio 4.1.2, it should be written :
Locate the line that reads theme="AppTheme" and change it to theme="Theme.Affirmations".

Android Basics: recyclerview-scrollable-list

https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#3

ItemAdapter.kt:
override fun onBindViewHolder(holder: ItemViewHolder, position: Int) {
val item = dataset[position]
holder.textView.text = context.resources.getString(item.stringResourceId)
}

stringResourceId : "No members to implement have been found"

Versions
4.1.2

Android Basics: lists

URL of codelab
https://codelabs.developers.google.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fcodelabs.developers.google.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#1

In which task and step of the codelab can this issue be found?
listOf(1, 2, 3, 4, 5, 6) returns a red-only list of integers from 1 through 6.

Describe the problem
Type at returns a red-only list its read-only

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: lists

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#2

In which task and step of the codelab can this issue be found?
Remove elements from a list - Step 2

Describe the problem
We can not remove those elements in "entrees" which belong to the immutable list "moreItems".
.remove("element") only works for those elements of "entrees" list that were added using .add("element") method
This is not mentioned in this page.

Steps to reproduce?

  1. Go to...
    NA
  2. Click on...
    NA
  3. See error...
    NA

Versions
What version of Android Studio are you using?
Android 11

Additional information
Include screenshots if they would be useful in clarifying the problem.
NA

Android Basics: display-list-cards

URL of codelab

https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards#2

In which task and step of the codelab can this issue be found?
6

Describe the problem

After applying the MaterialCardView, the displayed image doesn't correspond to the card version. In fact the same image, the one prior to the change, is displayed twice.

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: display-list-cards

URL of codelab

In which task and step of the codelab can this issue be found?

Describe the problem

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: display-list-cards

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards

In which task and step of the codelab can this issue be found?
Use cards

Describe the problem
020-10-13 17:28:41.611 11073-11073/com.example.affirmations E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.affirmations, PID: 11073
android.view.InflateException: Binary XML file line #2 in com.example.affirmations:layout/list_item: Binary XML file line #2 in com.example.affirmations:layout/list_item: Error inflating class com.google.android.material.card.MaterialCardView
Caused by: android.view.InflateException: Binary XML file line #2 in com.example.affirmations:layout/list_item: Error inflating class com.google.android.material.card.MaterialCardView
Caused by: java.lang.reflect.InvocationTargetException

Steps to reproduce?

  1. Run Affirmations app
  2. See error above

Versions
What version of Android Studio are you using?
4.0.2

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list#3

In which task and step of the codelab can this issue be found?
Create a layout for items

Describe the problem
It says, "Alternatively, you could have used File > New > Layout Resource File, ..."

But actually the utility is seen by the path "File > New > XML > Layout XML File".

Steps to reproduce?
As stated above.

Versions
What version of Android Studio are you using?
4.2.1

Additional information
Nil.

Android Basics: lists

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-lists?return=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#4

In which task and step of the codelab can this issue be found?
Vegetables(listOf("cabbage", "sprouts", "onion")))

Describe the problem
Nothing spectacular but it should be:
Vegetables(listOf("cabbage", "sprouts", "onion"))

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics issue: Material Component CardView won't work.

Display a scrollable list - Display a list of images using cards

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards#2

<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="8dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <ImageView
            android:id="@+id/item_image"
            android:layout_width="match_parent"
            android:layout_height="194dp"
            android:importantForAccessibility="no"
            android:scaleType="centerCrop" />

        <TextView
            android:id="@+id/item_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:padding="16dp"
            android:textAppearance="?attr/textAppearanceHeadline6" />

    </LinearLayout>

</com.google.android.material.card.MaterialCardView>

Preceding code implements Material Component CardView. Actually CardView wraps up the LinearLayout here.
So you may find error if you're not having certain dependency in your gradle file.
All you need to do is, add the follwing code to dependencies section in build.gradle(Module: app) file. Then make it sync.

dependencies {
    
    implementation 'com.google.android.material:material:1.0.0'
    
}

Android Basics: recyclerview-scrollable-list

https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#3

This is not a problem, but rather my observation and question.

I created two files with widgets of different names, but the same content, and when the findViewById (R.id.item_title) method is called, the program gets an item from the file created earlier and everything works. If I change @ + id / item_title to @ + id / items _title in an earlier file, then the program stops working, although there is another file with the exact same item and the name @ + id / item_title. The question is how to identify such an error? How to view the file where all id's have been added? Or how to run a full index rewrite? How to see where R.id.item_title comes from because there is no explicit reference to the xml file?

If I asked a stupid question, then I ask you to forgive me, I'm just learning

Android Basics: lists

https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#4

This is a confusing problem statement and solution.
It conflates principles of generic lists, containment, and object orientation.
For example the Vegetables class has toppings, but it seems like Vegetables should be toppings for Noodles.
I suspect using the Order class in real life would lead to a confusing jumble of items given to the user.

Of course, this is just an example for teaching, but the cognitive dissonance makes it harder to learn.
It could be argued to be useful in preparing developers for an arbitrary real world of bad specifiers, but was that really your intent?
I found myself going back over and over to try to decipher things that should be fairly simple.

Android Basics: lists

URL of codelab

In which task and step of the codelab can this issue be found?

https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#4

Describe the problem

in the Kotlin playground the results were not displayed

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.
image

Android Basics: display-list-cards

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards#2

In which task and step of the codelab can this issue be found?
Change the app icon

Describe the problem
In the sentence "If your browser shows the file instead of downloading it, select FIle > Save Page As... to save it to your computer." the "i" in "FIle" seems to have been falsely capitalized.

Steps to reproduce?
As stated above.

Versions
Not applicable.

Additional information
Nil.

Android Basics: lists

URL of codelab

In which task and step of the codelab can this issue be found?
Kotlin course - Mutablelist- list of orders

Describe the problem
unresolved reference: addItem
unresolved reference: addItem

Steps to reproduce?

  1. Go to...
    ...continues
    val order4 = Order(4).addItem(Noodles()).addItem(Vegetables("Cabbage", "Onion"))
    ordersList.add(order4)
    ordersList.add(

Order(5)
.addItem(Noodles())
.addItem(Noodles())
.addItem(Vegetables("Spinach")))

for (order in ordersList) {
    order.print()
    println()
}

}

  1. Click on...
  2. See error...
    the item in BOLD (addItem) get red and it appears this messages
    Unresolved reference: addItem
    Unresolved reference: addItem

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: display-list-cards

https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?return=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards#2

first issue
styling the textView inside the list_item.xml

when I added the styling line:
android:textAppearance="?attr/textAppearanceHeadline6"
the text appeared small and not at all styled the wanted way.
I had to "Invalidate caches / restart" in order to get the style working.

second issue
use cards

when I added the card view and tried to run, my app crashed. I've ran debug with the logcat and saw:
Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).

then, with the help of stackoverflow, i've added the following line to the materialcardview xml:
android:theme="@style/Theme.MaterialComponents.Light"
and then my app worked and looked as it should.

my android studio version: 4.0.1

Android Basics: lists

https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%3Fhl%3Den%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists&hl=en#1

No information on library to import for List, codes in Kotlin playground show error

No information on library to import for List, codes in Kotlin playground show error

Write to codes as provided on Koylin Playground
fun main() {
val numbers: List = listof(1, 2, 3, 4, 5, 6)
println("List: $numbers")
println("Length = ${numbers.length}")
}

Error

Unresolved reference: listof
Unresolved reference: length

Android Basics: display-list-cards

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?return=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%3Fhl%3Den%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards&hl=en#2

In which task and step of the codelab can this issue be found?
Step 5. Copy the following into the new themes.xml file (in the values-night directory).

Describe the problem
@color/status_bar_night
Missing color item in colors.xml

Versions
Android Studio 4.0.1
Build #AI-193.6911.18.40.6626763, built on June 25, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.4.0-48-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: Dart, org.jetbrains.kotlin, com.google.services.firebase, com.intellij.marketplace, com.thoughtworks.gauge, io.flutter, org.intellij.plugins.markdown

Additional information
I know at this stage it can be ignored. But it's better to add in codelab.

Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#4

In which task and step of the codelab can this issue be found?
Course: Android Basics in Kotlin
Unit 2: Layouts
Sub Unit: Scrollable lists
Codelab Name: Use RecyclerView to display a scrollable list
Codelab Section : 5. Solution code

Describe the problem
In the file "affirmations/adapter/ItemAdapter.kt" there is an error on line no 44, holder.textView.text = context.resources.getString(item.stringResourceId)

Instead of stringResourceId in last part, we have to correct it with stringResourceID, Because in file "affirmations/model/Affirmation.kt" we had declared class variable "stringResourceID" as a parameter.

So, it creates an error because of the letter 'd', to solve the error just replace "stringResourceId" with "stringResourceID" at the line number 44 in file "affirmations/adapter/ItemAdapter.kt".

Or
Replace "stringResourceID" with "stringResourceId" at the line number 3 in file "affirmations/model/Affirmation.kt".

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?
Version 4.2.1

Additional information
Include screenshots if they would be useful in clarifying the problem.
image

Android Basics: display-list-cards

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards#1

In which task and step of the codelab can this issue be found?
"Adding images to the list items" step 2

https://github.com/google-developer-training/android-basics-kotlin-affirmations-app-solution/raw/main/images.zip

Describe the problem

The zipped folder of example images to be used within the project contained some sort of MacOS hidden folder. It was called "__MACOSX".

Steps to reproduce?

  1. Download the zipped folder
  2. Extract it
  3. in addition to the image files there is also some sort of MacOS file.

Obviously not a big deal, and it may not even be worth fixing. I just wanted to let it be known. People may appreciate the only files in the archive being image files.

I don't mean to be a complainer, and I'm grateful for these guides!

Additional information
Include screenshots if they would be useful in clarifying the problem.
android_guides_mac_folder

Android Basics: lists

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#3

In which task and step of the codelab can this issue be found?
"Use Lists in Kotlin" Step 8, the green boxed note about augmented assignment operators.

Describe the problem
(Typo) The division assignment operator is written in the box as \=. This should be /=.
If you follow the link to see more details, the operator is correct on that page.

Steps to reproduce?
This is just a typo, leaving these blank.

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: display-list-cards

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards#2

In which task and step of the codelab can this issue be found?
Change the App Icon

Describe the problem
The links to download the icons are broken. Here's what I get-->
foreground:











Here's what I get for the background icon-->



<aapt:attr name="android:fillColor">




</aapt:attr>

Steps to reproduce?

  1. Go to...
  2. Click on...icons for the foreground and background
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?authuser=1&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%3Fauthuser%3D1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#3

In which task and step of the codelab can this issue be found?
This task is so long without any test that I do not know from where the problem comes
There is no means of debugging proposed and the technic is rather complex to display a simple litst !! (rather tricky) not very pedagogic to incite to continue training

Describe the problem

The display of the list is only one item !
"I am strong"

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?
brand new 4.2 with Koltin 1.5

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: display-list-cards

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards#2

In which task and step of the codelab can this issue be found?
Task: Display a list of images using cards
Step: 3

Describe the problem
In the section "Update dark theme colors", the reader is asked to change the night/themes.xml status bar color by using the following line:

<item name="android:statusBarColor" tools:targetApi="l">@color/colorPrimaryVariant</item>

this line however causes an error as the color resource is not found. In the solution file on GitHub, this line is not changed and uses attr/colorPrimaryVariant

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
4.1.1 on Ubuntu

Android Basics: lists

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#4

In which task and step of the codelab can this issue be found?
5. Put it all together

Describe the problem
For this:
Vegetables(listOf("cabbage", "sprouts", "onion"))

Names were all small cases, but other example was camelcase, like below (step 6)
val vegetables = Vegetables("Cabbage", "Sprouts", "Onion")

To make it consistent, I think it should be fixed as:
Vegetables(listOf("Cabbage", "Sprouts", "Onion"))

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list

In which task and step of the codelab can this issue be found?
Step 4 - Create a ViewHolder

Describe the problem
Step 3 of Create a ViewHolder have an error how class name is formatted. It's RecyclerView. ViewHolder but the correct is RecyclerView.ViewHolder

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?
Android Studio 4.2.1

Additional information
Include screenshots if they would be useful in clarifying the problem.
image

Android Basics: recyclerview-scrollable-list

https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#0

Use RecyclerView to display a scrollable list >> Before you begin

Just a grammatical error

Steps to reproduce?

  1. Go to "Use RecyclerView to display a scrollable list"
  2. Click on "Before you begin" in the tabs to the left
  3. See the error under the heading "What you'll learn"

Additional information
The error reads "How to use organize your code into packages" instead of "How to organize your code into packages"

Android Basics: lists

URL of codelab
URL of codelab

In which task and step of the codelab can this issue be found?
Task 4 (Loop through a list)

Describe the problem
The division assignment operator used backslash instead of a slash ("\=" instead of "/=")

Additional information
Screenshot_20210304_121905

Android Basics: lists

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#4

In which task and step of the codelab can this issue be found?
Use lists in Kotlin/Put it all together/Create an order

Describe the problem
image
Typo in the sentence "the price of the so far"

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list#3

In which task and step of the codelab can this issue be found?
Implement onBindViewHolder()

Describe the problem
In the sentence "The resulting string can be set as the text of the textView in the holder ItemViewHolder." it seems that "holder" should not be put into the code format, but it is.

Steps to reproduce?
As stated above.

Versions
Not applicable.

Additional information
Nil.

Android Basics: recyclerview-scrollable-list

good night, i'm sorry but this code dont generate one list.

pido disculpas por no ser mas especifico pero no se hablar ingles, el codigo no genera ninguna lista, he revisado el codigo multiples veces, he incluso copie todo el codigo y lo pegue android-studio y aun asi no genera ninguna lista, busque en la documentacion y encontre que otra forma de hacer un recyclerview es por otro paquete llamado listAdapter, aunque no entiendo mucho, de esto.

Android Basics: lists: shorthand for in-place division is /= instead of \=

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-lists

In which task and step of the codelab can this issue be found?
4. Loop Through a List

Describe the problem
There is a note:

Note: Because doing a simple operation on a variable and storing it back in the variable is common, there is a shorthand for it using the += operator. There are equivalent operators for minus (-=) , multiplication (*=) and division (=). See more details here.

However, the division part is wrong. It should be /= instead of \=.

Android Basics: lists

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#4

In which task and step of the codelab can this issue be found?
At the "5. Put it all together" section

Describe the problem
At the detailed explanation of the output of the code, the subclass of its parent class(Item)"Noodles" is called "Noodle"

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#4

In which task and step of the codelab can this issue be found?
Adding A RecyclerView To Your App/Create A Layout For Items

Describe the problem
Just for completion sake, A step for addingthe constraints to the TextView is missing.

Steps to reproduce?

  1. Go to list_item.xml
  2. Click on TextView
  3. See error MissingConstraints

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#1

In which task and step of the codelab can this issue be found?

3

Describe the problem

Two problems:

  1. The version number a bit outdated (not really a problem)
  2. It says to replace one line by the next, however when looking at the dependencies it seems that both lines are already there. Doing this means that I should deliberately repeat a line?!

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?
4.1.1

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: display-list-cards

url of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%3Fauthuser%3D1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards&authuser=1#1

In which task and step of the codelab can this issue be found?
"Initialize list of affirmations with images"

Describe the problem
missing the line which should be
"Affirmation(R.string.affirmation3, R.drawable.image3),"
from the code sample, the code has "2" and on the next line "4", missing "3".

Steps to reproduce?

  1. Go to codelab and read section

Versions
4.1.1

Android Basics: lists

URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#5

In which task and step of the codelab can this issue be found?
Step 5 and ^

Describe the problem

  1. Please Look at the orders:

Order #3
Noodles: $10
Vegetables Carrots, Beans, Celery: $5
Total: $15

(Total should have been 10 + 5+5+5 = $25 as the there are three vegetables costing $5 each not $5 for total)_****

Order #4
Noodles: $10
Vegetables Cabbage, Onion: $5
Total: $15
(Total should have been 10 + 5+5 = $20 as the there are three vegetables costing $5 each not $5 for total)_****

Order #5
Noodles: $10
Noodles: $10
Vegetables Spinach: $5
Total: $25

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: display-list-cards

URL of codelab
Hi! This is my first time using Git Hub.
In the course Display a Scrollable List, unit -> Display a list of images using cards, in the section Polishing the UI, the code that goes in the themes/night did not work and made my application crash in the dark mode display of the phone.

In which task and step of the codelab can this issue be found?

Display a list of images using cards, in the section Polishing the UI - > Add a resource file for dark theme -> Step 5 (Copy the following into the new themes.xml file (in the values-night directory).

Describe the problem

the next code line made that the application cant be initializated in the dark mode

@color/colorPrimaryVariant

i change it for and it worked

?attr/colorPrimaryVariant

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?

Additional information
Include screenshots if they would be useful in clarifying the problem.

Android Basics: lists incorrect immutable list for val moreItems

https://developer.android.com/codelabs/basic-android-kotlin-training-lists?return=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#2

3. Introduction to Mutable Lists. section 4. Create a list of moreItems. You won't have to change it, so make it a val and immutable.

In this codelab step it is about the kotlin mutable list and moreItems has to be a mutableListOf("ravioli", "lasagna", "fettuccine").
In the example the type of the moreItems is incorrect (it is immutable list),
val moreItems = listOf("ravioli", "lasagna", "fettuccine")

Android Basics: lists : Description Error, need to correct document.

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-lists?authuser=6&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%3Fauthuser%3D6%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#3

In which task and step of the codelab can this issue be found?
4. Loop Through a List

Describe the problem
!! Description Error in the below paragraph !!
Note: Because doing a simple operation on a variable and storing it back in the variable is common, there is a shorthand for it using the += operator. There are equivalent operators for minus (-=) , multiplication (*=) and division (\=). See more details here.

Falult: division (\=)
Correct: division (/=)

Android Basics: display-list-cards

URL of codelab

https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?return=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards#2

In which task and step of the codelab can this issue be found?

In the TextView, set the textAppearance attribute to ?attr/textAppearanceHeadline6. textAppearance is an attribute that allows you to define text-specific styling. For other possible predefined text appearance values, you can see the TextAppearances section in this blogpost on Common Theme Attributes.

Describe the problem

Instead of having : Larger text I get almost invisible one even if I try with headline lower than 6 ( 5, 4 etc.)

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
What version of Android Studio are you using?
4.0.1

Additional information
Include screenshots if they would be useful in clarifying the problem.
image

Android Basics issue:

https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?

"Use cards"

I made the changes to add the Material Card View and the app would crash with a logcat error that "The style on this component requires your app theme to be Theme.MaterialComponents" Was on a Nexus 6 emulator. I was able to resolve it by changing the theme.

Steps to reproduce?
Just follow the instructions for adding the card view and run the app.

Versions
What version of Android Studio are you using?
4.0.1

Additional information
Perhaps I missed an instruction for changing the theme earlier in the codelab, but I went back through it and didn't see anything.

Android Basics: display-list-cards

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-display-list-cards?authuser=1&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%3Fauthuser%3D1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-display-list-cards#2

In which task and step of the codelab can this issue be found?
3. Polishing the UI

Describe the problem
Step 1 is listed as: Open list_item.xml (app > res > layout > item_list.xml) and add 16dp padding to the existing LinearLayout. While the directory is routing to the correct file name, it is initially mis-spelled as "list_item.xml".

Android Basics: recyclerview-scrollable-list

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-recyclerview-scrollable-list?authuser=1&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%3Fauthuser%3D1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-recyclerview-scrollable-list#0

In which task and step of the codelab can this issue be found?
Unit 2: Layouts --> Display a scrollable list --> Use RecyclerView to display a scrollable list --> Before you begin --> What you'll learn

Describe the problem
The text: "How to use organize your code into packages" should read "How to organize your code into packages"

Additional information
Screenshot 2021-03-19 102044

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.