-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finish project #2
base: develop
Are you sure you want to change the base?
Conversation
01c3a56
to
773a90a
Compare
minutes = (milliseconds % HOURS_TO_SECONDS) / ONE_HOUR; | ||
seconds = ((milliseconds % HOURS_TO_SECONDS) % ONE_HOUR); | ||
if (hours > 0) { | ||
time = hours + ":" + minutes + ":" + seconds; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
21 23 a khuyến khích em nên dùng StringFormat or StringBuilder.
Nếu em + String sẽ tạo ra nhiều vùng nhớ mới.
ImageButton mImagePlay, mImageNext, mImageBack; | ||
TextView mCurrentTime, mTotalTime; | ||
Util mUtil = new Util(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
23 -> 26 access modifier
Intent startService = new Intent(this, ServicePlayMusic.class); | ||
bindService(startService, mConnection, BIND_AUTO_CREATE); | ||
startService(startService); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove bl
tools:context=".View.MainActivity" | ||
tools:layout_editor_absoluteY="81dp"> | ||
|
||
tools:context=".View.MainActivity"> | ||
|
||
<ImageButton | ||
android:id="@+id/imageBack" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to button_back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -26,66 +26,70 @@ | |||
|
|||
<ImageButton | |||
android:id="@+id/imagePlay" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
button_play or button_change_state. Convention 3.2
https://github.com/framgia/coding-standards/blob/master/eng/android/codingstyleguide.md
app:layout_constraintEnd_toStartOf="@+id/imageNext" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toEndOf="@+id/imageBack" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:srcCompat="@drawable/play" | ||
app:srcCompat="@drawable/ic_play_button" | ||
tools:ignore="MissingConstraints" /> | ||
|
||
<ImageButton | ||
android:id="@+id/imageNext" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tương tự
tools:ignore="MissingConstraints" /> | ||
|
||
<android.support.v7.widget.AppCompatSeekBar | ||
android:id="@+id/BarSeek" | ||
android:id="@+id/SeekBarMusic" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
convention 3.2
|
||
<TextView | ||
android:id="@+id/txtCurrentTime" | ||
android:id="@+id/textview_CurrentTime" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tương tự
app/src/main/res/values/dimens.xml
Outdated
<dimen name="text_magin_end">289dp</dimen> | ||
<dimen name="text_margin">16dp</dimen> | ||
<dimen name="seekbar_margin_top">64dp</dimen> | ||
</resources> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need an endline
5753afa
to
e1617f1
Compare
e1617f1
to
9c677d8
Compare
No description provided.