Skip to content

Vh tuan#10

Open
hidenobi wants to merge 23 commits intomasterfrom
VHTuan
Open

Vh tuan#10
hidenobi wants to merge 23 commits intomasterfrom
VHTuan

Conversation

@hidenobi
Copy link
Collaborator

No description provided.

Copy link
Owner

@Sudo248 Sudo248 left a comment

Choose a reason for hiding this comment

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

Bài của em ổn đấy, đúng và đủ, chỉ là chú ý trên fragment cái gì do tạo sẵn mà không dùng thì xóa đi.
id của view thì thêm tiền tố là tag của view đó


class MainActivity : AppCompatActivity() {
private var fragmentManager: FragmentManager? = null
private var fragmentTransaction: FragmentTransaction? = null
Copy link
Owner

Choose a reason for hiding this comment

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

Không cần thiết phải tạo 2 biến này vì mạc định activity đã có rồi

tools:context=".SecondActivity">

<EditText
android:id="@+id/username"
Copy link
Owner

Choose a reason for hiding this comment

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

thêm tiền tố là tên của tag vd edtUsername

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