1 |
f2a9be6d
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2 |
|
|
// Copyright 2020 Leszek Koltunski //
|
3 |
|
|
// //
|
4 |
|
|
// This file is part of Magic Cube. //
|
5 |
|
|
// //
|
6 |
|
|
// Magic Cube is free software: you can redistribute it and/or modify //
|
7 |
|
|
// it under the terms of the GNU General Public License as published by //
|
8 |
|
|
// the Free Software Foundation, either version 2 of the License, or //
|
9 |
|
|
// (at your option) any later version. //
|
10 |
|
|
// //
|
11 |
|
|
// Magic Cube is distributed in the hope that it will be useful, //
|
12 |
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
13 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
14 |
|
|
// GNU General Public License for more details. //
|
15 |
|
|
// //
|
16 |
|
|
// You should have received a copy of the GNU General Public License //
|
17 |
|
|
// along with Magic Cube. If not, see <http://www.gnu.org/licenses/>. //
|
18 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
19 |
|
|
|
20 |
|
|
package org.distorted.magic;
|
21 |
|
|
|
22 |
|
|
import android.content.Context;
|
23 |
|
|
import android.util.AttributeSet;
|
24 |
|
|
import android.view.View;
|
25 |
|
|
import android.widget.FrameLayout;
|
26 |
|
|
|
27 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
28 |
|
|
|
29 |
|
|
public class RubikScoresView extends FrameLayout
|
30 |
|
|
{
|
31 |
|
|
int mPosition;
|
32 |
|
|
|
33 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
34 |
|
|
|
35 |
|
|
public RubikScoresView(Context context, AttributeSet attrs, int defStyle)
|
36 |
|
|
{
|
37 |
|
|
super(context, attrs, defStyle);
|
38 |
|
|
}
|
39 |
|
|
|
40 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
41 |
|
|
|
42 |
|
|
public RubikScoresView(Context context, AttributeSet attrs)
|
43 |
|
|
{
|
44 |
|
|
super(context, attrs);
|
45 |
|
|
}
|
46 |
|
|
|
47 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
48 |
|
|
|
49 |
|
|
public RubikScoresView(Context context)
|
50 |
|
|
{
|
51 |
|
|
super(context);
|
52 |
|
|
}
|
53 |
|
|
|
54 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
55 |
|
|
|
56 |
|
|
public RubikScoresView(Context context, int position)
|
57 |
|
|
{
|
58 |
|
|
super(context);
|
59 |
|
|
|
60 |
|
|
mPosition = position;
|
61 |
|
|
}
|
62 |
|
|
|
63 |
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
64 |
|
|
|
65 |
|
|
@Override
|
66 |
|
|
public void onAttachedToWindow()
|
67 |
|
|
{
|
68 |
|
|
super.onAttachedToWindow();
|
69 |
|
|
|
70 |
|
|
Context context = getContext();
|
71 |
|
|
View view = inflate(context, R.layout.scores_downloading, null);
|
72 |
|
|
addView(view);
|
73 |
|
|
}
|
74 |
|
|
}
|