Skip to content
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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Finish project #2

wants to merge 1 commit into from

Conversation

dinhquang252
Copy link
Owner

No description provided.

minutes = (milliseconds % HOURS_TO_SECONDS) / ONE_HOUR;
seconds = ((milliseconds % HOURS_TO_SECONDS) % ONE_HOUR);
if (hours > 0) {
time = hours + ":" + minutes + ":" + seconds;

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();

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);

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"

Choose a reason for hiding this comment

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

rename to button_back

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"

Choose a reason for hiding this comment

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

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"

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"

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"

Choose a reason for hiding this comment

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

tương tự

<dimen name="text_magin_end">289dp</dimen>
<dimen name="text_margin">16dp</dimen>
<dimen name="seekbar_margin_top">64dp</dimen>
</resources>

Choose a reason for hiding this comment

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

need an endline

@dinhquang252 dinhquang252 force-pushed the finish_project branch 8 times, most recently from 5753afa to e1617f1 Compare October 30, 2018 02:45
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