Revision 88913ad4
Added by Leszek Koltunski 2 months ago
src/main/java/org/distorted/dialogs/RubikDialogScores.java | ||
---|---|---|
85 | 85 |
int numObjects = RubikObjectList.getNumObjects(); |
86 | 86 |
ViewGroup.LayoutParams paramsView = new ViewGroup.LayoutParams( tabWidth,tabHeight ); |
87 | 87 |
|
88 |
for (int object=0; object<numObjects; object++)
|
|
88 |
for( int object=0; object<numObjects; object++ )
|
|
89 | 89 |
{ |
90 | 90 |
RubikObject robject = RubikObjectList.getObject(object); |
91 | 91 |
ImageView imageView = new ImageView(act); |
92 | 92 |
if( robject!=null ) robject.setIconTo(act,imageView); |
93 | 93 |
imageView.setLayoutParams(paramsView); |
94 | 94 |
TabLayout.Tab tab = tabLayout.getTabAt(object); |
95 |
if(tab!=null) tab.setCustomView(imageView);
|
|
95 |
if( tab!=null ) tab.setCustomView(imageView);
|
|
96 | 96 |
} |
97 | 97 |
} |
98 | 98 |
} |
Also available in: Unified diff
Fix an important bug noticed by Anna Vivaldi