Skip to content

Commit

Permalink
03.13 fix MyBadgeActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
JIAH-LEA committed Mar 13, 2021
1 parent 00f7dc8 commit 3122827
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion AmongEarth/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion AmongEarth/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
arrayList.clear(); // 기존 배열리스트 초기화
long numChildren = dataSnapshot.getChildrenCount();
gotBadge = (TextView) findViewById(R.id.BadgeNumber);
gotBadge.setText("You've received " + numChildren + " badges");
gotBadge.setText("You've received " + numChildren + "badges");

for (DataSnapshot snapshot : dataSnapshot.getChildren()) {
//databaseReference.orderBy("getDate");
Expand Down Expand Up @@ -105,7 +105,7 @@ public void onDataChange(@NonNull DataSnapshot snapshot) {
if (dataSnapshot.getKey().equals("nickname")) {
String nickname = dataSnapshot.getValue().toString();
nickName = (TextView) findViewById(R.id.NickName);
nickName.setText(nickname);
nickName.setText(nickname+",");
}
if (dataSnapshot.getKey().equals("profile")) {
String num = dataSnapshot.getValue().toString();
Expand Down
6 changes: 3 additions & 3 deletions AmongEarth/app/src/main/res/layout/activity_mybadge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@
android:fontFamily="@font/rixyeoljungdo"
android:text="JIAH,"
android:textColor="#000000"
android:textSize="18sp" />
android:textSize="16sp" />

<TextView
android:id="@+id/BadgeNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:layout_marginLeft="20dp"
android:fontFamily="@font/rixyeoljungdo"
android:text="you got 1 badges"
android:textColor="#000000"
android:textSize="16sp" />
android:textSize="14sp" />

</LinearLayout>
</LinearLayout>
Expand Down

0 comments on commit 3122827

Please sign in to comment.