Skip to content

task/hw-5#5

Open
rinstance wants to merge 1 commit intomasterfrom
hw-5
Open

task/hw-5#5
rinstance wants to merge 1 commit intomasterfrom
hw-5

Conversation

@rinstance
Copy link
Copy Markdown
Owner

image
image

setContentView(R.layout.activity_detail)

val id = intent.extras?.getInt(ID)
val user = UserRepository().getUserById(id)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

UserRepository().getUserById(id)?.also { user->
tv_name.text = user.name
....
}

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Лучше использовать констреинт конечно, тем более в итемхолдере где перфоманс важен

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