Size: a a a

Android Developers

2021 January 16

I

Ilya in Android Developers
Sasha
Ilya can I share my source as gist
yes, but you better show errors
источник

S

Sasha in Android Developers
Ilya
yes, but you better show errors
источник

НЦ

Наталья Цивилева... in Android Developers
Sasha
Ilya can I share my source as gist
what type of errors do you see in logs?
источник

S

Sasha in Android Developers
I am calling api I am trying to get currency response and getting quotes from api
источник

S

Sasha in Android Developers
It is giving mismatch error in mainactivity.kt
источник

I

Ilya in Android Developers
Наталья Цивилева
what type of errors do you see in logs?
спасибо, а то у меня с английским не очень хорошо, хахах
источник

НЦ

Наталья Цивилева... in Android Developers
Ilya
спасибо, а то у меня с английским не очень хорошо, хахах
u menya toje))))
источник

S

Sasha in Android Developers
Наталья Цивилева
what type of errors do you see in logs?
Type mismatch.
Required:
Collection<Quotes>
Found:
CurrencyResponse?
источник

I

Ilya in Android Developers
Sasha
Type mismatch.
Required:
Collection<Quotes>
Found:
CurrencyResponse?
finally
источник

S

Sasha in Android Developers
Ilya
finally
I have changed as answer suggested in my post
источник

S

Sasha in Android Developers
but for other a bit confused to implement correctly
источник

I

Ilya in Android Developers
Sasha
I have changed as answer suggested in my post
checking your post
interface CurrenciesResponse {

   @GET("live?access_key=1f72464a836ff6084b8b1780e3feadf9")
   fun getCurrencies(): Call<CurrencyResponse>

}
return type CurrencyResponse
then
apiInterface.getCurrencies().enqueue(object : Callback <MutableList<Quotes>> 
why MutableList<Quotes> here?
should be the same - CurrencyResponse
источник

НЦ

Наталья Цивилева... in Android Developers
here another type) Callback <CurrencyResponse>
источник

S

Sasha in Android Developers
Ilya
checking your post
interface CurrenciesResponse {

   @GET("live?access_key=1f72464a836ff6084b8b1780e3feadf9")
   fun getCurrencies(): Call<CurrencyResponse>

}
return type CurrencyResponse
then
apiInterface.getCurrencies().enqueue(object : Callback <MutableList<Quotes>> 
why MutableList<Quotes> here?
should be the same - CurrencyResponse
ilya I have changed already as you suggested
источник

UM

Utsr Mapper in Android Developers
как фон такой сделать?
источник

L

Leonid in Android Developers
Utsr Mapper
как фон такой сделать?
Черный?
источник

UM

Utsr Mapper in Android Developers
Leonid
Черный?
да
источник

I

Ilya in Android Developers
Sasha
ilya I have changed already as you suggested
depending on your mistake you did the opposite
источник

S

Sasha in Android Developers
Наталья Цивилева
here another type) Callback <CurrencyResponse>
I  am confused in mainactivity.kt
источник

I

Ilya in Android Developers
android:background="#000" ?
источник