-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
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.
LGTM
@@ -85,4 +95,15 @@ class GameSetupActivity : AppCompatActivity(), AdapterView.OnItemSelectedListene | |||
intent.putExtra("Player Names", pNameArray) | |||
startActivity(intent) | |||
} | |||
|
|||
private fun choosingGameSetupListener(){ |
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.
private fun choosingGameSetupListener(){ | |
private fun chooseGameSetupListener(){ |
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.
👍
@@ -123,6 +135,15 @@ class ProfileActivity : AppCompatActivity() { | |||
findViewById<TextView>(R.id.ranking).text = user.ranking.toString() | |||
/* TODO: add functionality to display the image (may be using ) |
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.
/* TODO: add functionality to display the image (may be using ) | |
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.
👍
@@ -123,6 +135,15 @@ class ProfileActivity : AppCompatActivity() { | |||
findViewById<TextView>(R.id.ranking).text = user.ranking.toString() | |||
/* TODO: add functionality to display the image (may be using ) | |||
findViewById<ImageView>(R.id.avatar).loadImg(user.image)*/ |
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.
findViewById<ImageView>(R.id.avatar).loadImg(user.image)*/ | |
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.
👍
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.
The app looks pretty now! Thank you for your work!
Github does not allow me to view all the changed files, so I will leave some small comments there. I think we can fix them in the next PR.
WelcomeActivity:button play music is not working and the app crashes. We need to remove switchToListen function from there.
GameSetupActivity: I liked it more when there was a small arrow in the dropdown for number of players. Now it is not clear if it is clickable or not.
[Question] is it okay that github build badge says failing?
@@ -123,6 +135,15 @@ class ProfileActivity : AppCompatActivity() { | |||
findViewById<TextView>(R.id.ranking).text = user.ranking.toString() | |||
/* TODO: add functionality to display the image (may be using ) | |||
findViewById<ImageView>(R.id.avatar).loadImg(user.image)*/ |
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.
Can you remove these comment? thanks!
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.
👍
val bm = task.await() | ||
findViewById<ImageView>(R.id.avatar).setImageBitmap(bm) | ||
} | ||
findViewById<ImageView>(R.id.avatar).foregroundGravity= Gravity.LEFT |
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.
We have to do the same logic for loading images in the scoreboard. Right now, Glide library is used, but it is not working. I think it will take some time to redo, so lets leave it for future tasks.
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.
yep, now the glide is failing:
W/Glide: Load failed for https://images.app.goo.gl/UpXEDTFLbcTL5mTJ8 with size [197x197]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 8 root causes:
java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000)
java.lang.RuntimeException(setDataSourceCallback failed: status = 0x80000000)
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.
👍
|
||
requestWindowFeature(Window.FEATURE_NO_TITLE) | ||
supportActionBar?.hide() | ||
|
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.
now these functions appear in most of the activities... do you think it would be better to do it from xml? Or maybe have one function that will be called in all these activities, or it would be too much?
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.
I don't know if it is doable from the XML, maybe we should look for it next week :)
val bm = task.await() | ||
findViewById<ImageView>(R.id.avatar).setImageBitmap(bm) | ||
} | ||
findViewById<ImageView>(R.id.avatar).foregroundGravity= Gravity.LEFT |
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.
why dont you move Gravity stuff it to xml? is it possible?
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.
yep will do it
## Scrumboard & Weekly Meetings Logs <a name="devLogs"></a> | ||
|
||
- [Our Scrumboard](https://github.com/MaximeZmt/SDP_2022-Vibester/projects/1) | ||
- [Our Weekly Meeting](https://github.com/MaximeZmt/SDP_2022-Vibester/wiki) | ||
|
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.
Also in the beginning we can remove [To Complete: Abstract]
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.
yes
Concerning the badges that fails, it is normal -> CI has failed and therefore it shows fail, just need a rebuild (would be done once merged) |
Code Climate has analyzed commit 0817172 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 100.0% (80% is the threshold). This pull request will bring the total coverage in the repository to 91.3%. View more on Code Climate. |
Coherent UI
This is related to issue #116
This Pull Requests contains:
ch.sdp.vibester.activity: GameEndingActivity: Update UI
ch.sdp.vibester.activity: GameSetupActivity: Update UI + add submenu
ch.sdp.vibester.activity: GamescreenActivity: Update UI
ch.sdp.vibester.activity: IncorrectSongActivity: Update UI
ch.sdp.vibester.activity: ScoreboardActivity: Update UI
ch.sdp.vibester.activity: ProfileActivity: Update UI + Correct Image
ch.sdp.vibester.activity: SettingsActivity: Update UI
Readme: has been modified
Logo: Has been refactored
In addition the code is tested with a coverage of: [100]%
Notes for reviewers