parent
6f322c8b14
commit
54b2db37c5
@ -0,0 +1,36 @@
|
||||
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"));
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in new issue