You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
package com.example.musicwork.chuangguan;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.widget.TextView;
|
|
|
|
import com.example.musicwork.Data;
|
|
import com.example.musicwork.R;
|
|
import com.example.musicwork.SignIn;
|
|
import com.example.musicwork.chuangguan.GameService;
|
|
|
|
import java.util.HashMap;
|
|
|
|
public class GradeInfoActivity extends AppCompatActivity {
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.activity_score);
|
|
final Data data = (Data)getApplication();
|
|
final String name = data.getUsername();
|
|
|
|
HashMap<String , String> paramsgrade= GameService.params;
|
|
TextView username=(TextView) this.findViewById(R.id.username);
|
|
TextView avg=(TextView) this.findViewById(R.id.avg);
|
|
TextView max=(TextView) this.findViewById(R.id.max);
|
|
TextView rank=(TextView) this.findViewById(R.id.rank);
|
|
username.setText("昵 称:"+ name);
|
|
avg.setText("平均成绩:"+paramsgrade.get("avg"));
|
|
max.setText("最高成绩:"+paramsgrade.get("max"));
|
|
rank.setText("排 名:"+paramsgrade.get("rank"));
|
|
|
|
}
|
|
}
|