Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Homework#62

Open
aksenovasmail-git wants to merge 1 commit intoAndroid-Developer-Basic:masterAndroid-Developer-Basic/View-Resources:masterfrom
aksenovasmail-git:masteraksenovasmail-git/View-Resources:masterCopy head branch name to clipboard
Open

Homework#62
aksenovasmail-git wants to merge 1 commit intoAndroid-Developer-Basic:masterAndroid-Developer-Basic/View-Resources:masterfrom
aksenovasmail-git:masteraksenovasmail-git/View-Resources:masterCopy head branch name to clipboard

Conversation

@aksenovasmail-git
Copy link

No description provided.


<item name="colorOnSurface">#C4C6CF</item>
<item name="colorOnBackground">#C4C6CF</item>
<color name="login_toolbar_content">#C4C6CF</color>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Внутри style можно использовать только item для определения атрибутов темы
Тег color допустим только в файлах типа colors.xml. Это вызывает ошибку компиляции: "Can not extract resource from ParsedResource"

import otus.gpb.homework.viewandresources.databinding.ItemCartBinding
import otus.gpb.homework.viewandresources.model.CartItem

data class CartItem(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дублируется data class CartItem, хотя он уже определен в model/CartItem.kt и импортирован

<item name="android:textColor">?attr/colorOnSurface</item>
<item name="android:textSize">20sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">?attr/colorOnBackground</item>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дважды указан android:textColor. Последний перезаписывает первый, поэтому применяется только ?attr/colorOnBackground. Удалите один из них, оставив нужный по макету.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.