Revision 4918f19c
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/magic/RubikScoresView.java | ||
---|---|---|
26 | 26 |
import android.widget.FrameLayout; |
27 | 27 |
import android.widget.ImageView; |
28 | 28 |
import android.widget.LinearLayout; |
29 |
import android.widget.ScrollView; |
|
29 | 30 |
import android.widget.TextView; |
30 | 31 |
|
31 | 32 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
81 | 82 |
|
82 | 83 |
void addSection(FragmentActivity act, int scramble, final int[] country, final String[] name, final String[] time) |
83 | 84 |
{ |
84 |
LinearLayout level = (LinearLayout)inflate(act, R.layout.level_records, null);
|
|
85 |
TextView text = level.findViewById(R.id.levelTitle);
|
|
85 |
LinearLayout level = (LinearLayout)inflate(act, R.layout.scores_scramble_title, null);
|
|
86 |
TextView text = level.findViewById(R.id.scoresScrambleTitle);
|
|
86 | 87 |
text.setText(act.getString(R.string.sc_placeholder,(scramble+1))); |
87 | 88 |
|
88 | 89 |
for(int j=0; j<RubikScoresDownloader.MAX_PLACES; j++) |
89 | 90 |
{ |
90 | 91 |
if( name[j] != null ) |
91 | 92 |
{ |
92 |
View row = inflate(act, R.layout.level_row, null);
|
|
93 |
View row = inflate(act, R.layout.scores_scramble_row, null);
|
|
93 | 94 |
|
94 |
ImageView imgCoun = row.findViewById(R.id.level_row_country);
|
|
95 |
TextView textName = row.findViewById(R.id.level_row_name);
|
|
96 |
TextView textTime = row.findViewById(R.id.level_row_time);
|
|
95 |
ImageView imgCoun = row.findViewById(R.id.scoresScrambleRowCountry);
|
|
96 |
TextView textName = row.findViewById(R.id.scoresScrambleRowName);
|
|
97 |
TextView textTime = row.findViewById(R.id.scoresScrambleRowTime);
|
|
97 | 98 |
|
98 | 99 |
imgCoun.setImageResource(country[j]); |
99 | 100 |
textName.setText(name[j]); |
Also available in: Unified diff
Various improvements.