Project

General

Profile

« Previous | Next » 

Revision fdec60a3

Added by Leszek Koltunski over 4 years ago

Skeleton of a new dialog: High Scores

View differences:

build.gradle
25 25

  
26 26
    api project(':distorted-library')
27 27
    implementation 'com.android.support:appcompat-v7:27.1.1'
28
    implementation 'com.android.support:design:27.1.1'
28 29
}
src/main/java/org/distorted/component/HorizontalNumberPicker.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.component;
src/main/java/org/distorted/effect/BaseEffect.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2020 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect;
src/main/java/org/distorted/effect/scramble/ScrambleEffect.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.scramble;
src/main/java/org/distorted/effect/scramble/ScrambleEffectNone.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.scramble;
src/main/java/org/distorted/effect/scramble/ScrambleEffectRotations.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.scramble;
src/main/java/org/distorted/effect/sizechange/SizeChangeEffect.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.sizechange;
src/main/java/org/distorted/effect/sizechange/SizeChangeEffectMove.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.sizechange;
src/main/java/org/distorted/effect/sizechange/SizeChangeEffectNone.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.sizechange;
src/main/java/org/distorted/effect/sizechange/SizeChangeEffectRound.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.sizechange;
src/main/java/org/distorted/effect/sizechange/SizeChangeEffectScale.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.sizechange;
src/main/java/org/distorted/effect/sizechange/SizeChangeEffectTransparency.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.sizechange;
src/main/java/org/distorted/effect/solve/SolveEffect.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.solve;
src/main/java/org/distorted/effect/solve/SolveEffectNone.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.solve;
src/main/java/org/distorted/effect/solve/SolveEffectSpin.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.solve;
src/main/java/org/distorted/effect/win/WinEffect.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.win;
src/main/java/org/distorted/effect/win/WinEffectGlow.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.win;
src/main/java/org/distorted/effect/win/WinEffectNone.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.effect.win;
src/main/java/org/distorted/magic/RubikAbout.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.magic;
src/main/java/org/distorted/magic/RubikActivity.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.magic;
......
37 37

  
38 38
public class RubikActivity extends AppCompatActivity
39 39
{
40
            static final int DEFAULT_SIZE  = 3;
41
    private static final int SMALLEST_SIZE = 2;
40
    static final int DEFAULT_SIZE  = 3;
41
    static final int SMALLEST_SIZE = 2;
42 42
    private static final int[] button_ids  = {R.id.rubikSize2, R.id.rubikSize3, R.id.rubikSize4, R.id.rubikSize5};
43 43

  
44 44
    public static final int MIN_SCRAMBLE =  1;
......
109 109
      return mSize;
110 110
      }
111 111

  
112
///////////////////////////////////////////////////////////////////////////////////////////////////
113

  
114
    static int getNumCubes()
115
      {
116
      return button_ids.length;
117
      }
118

  
112 119
///////////////////////////////////////////////////////////////////////////////////////////////////
113 120

  
114 121
    @Override
src/main/java/org/distorted/magic/RubikCube.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.magic;
src/main/java/org/distorted/magic/RubikRenderer.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.magic;
src/main/java/org/distorted/magic/RubikScores.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.magic;
21 21

  
22
import android.app.Dialog;
23
import android.content.DialogInterface;
24
import android.os.Bundle;
25
import android.support.annotation.NonNull;
26
import android.support.v4.app.FragmentActivity;
27
import android.support.v4.view.ViewPager;
28
import android.support.v7.app.AlertDialog;
22 29
import android.support.v7.app.AppCompatDialogFragment;
30
import android.support.design.widget.TabLayout;
31
import android.view.LayoutInflater;
32
import android.view.View;
33
import android.widget.ImageView;
34
import android.widget.TextView;
23 35

  
24 36
///////////////////////////////////////////////////////////////////////////////////////////////////
25 37

  
26 38
public class RubikScores extends AppCompatDialogFragment
27 39
  {
40
  RubikScoresViewPager mViewPager;
28 41

  
42
///////////////////////////////////////////////////////////////////////////////////////////////////
43

  
44
  @NonNull
45
  @Override
46
  public Dialog onCreateDialog(Bundle savedInstanceState)
47
    {
48
    FragmentActivity act = getActivity();
49
    AlertDialog.Builder builder = new AlertDialog.Builder(act);
50

  
51
    LayoutInflater layoutInflater = act.getLayoutInflater();
52
    TextView tv = (TextView) layoutInflater.inflate(R.layout.scores_title, null);
53
    tv.setText(R.string.scores_title);
54
    builder.setCustomTitle(tv);
55

  
56
    builder.setCancelable(true);
57
    builder.setPositiveButton( R.string.ok, new DialogInterface.OnClickListener()
58
      {
59
      @Override
60
      public void onClick(DialogInterface dialog, int which)
61
        {
62

  
63
        }
64
      });
65

  
66
    LayoutInflater inflater = act.getLayoutInflater();
67
    final View view = inflater.inflate(R.layout.scores, null);
68
    builder.setView(view);
69

  
70
    ViewPager viewPager = view.findViewById(R.id.viewpager);
71
    TabLayout tabLayout = view.findViewById(R.id.sliding_tabs);
72
    mViewPager = new RubikScoresViewPager(act,viewPager);
73
    tabLayout.setupWithViewPager(viewPager);
74

  
75
    for (int i=0; i<RubikScoresTab.LENGTH; i++)
76
      {
77
      ImageView imageView = new ImageView(act);
78
      imageView.setImageResource(RubikScoresTab.getTab(i).getIcon());
79
      TabLayout.Tab tab = tabLayout.getTabAt(i);
80
      if(tab!=null) tab.setCustomView(imageView);
81
      }
82

  
83
    return builder.create();
84
    }
29 85
  }
src/main/java/org/distorted/magic/RubikScoresDownloader.java
1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2019 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.support.v7.app.AppCompatDialogFragment;
23

  
24
///////////////////////////////////////////////////////////////////////////////////////////////////
25

  
26
public class RubikScoresDownloader extends AppCompatDialogFragment
27
  {
28

  
29
  }
src/main/java/org/distorted/magic/RubikScoresTab.java
1
///////////////////////////////////////////////////////////////////////////////////////////////////
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
///////////////////////////////////////////////////////////////////////////////////////////////////
23

  
24
public enum RubikScoresTab
25
  {
26
  TAB1 ( R.drawable.button2, R.layout.scores_tab2 ),
27
  TAB2 ( R.drawable.button3, R.layout.scores_tab3 ),
28
  TAB3 ( R.drawable.button4, R.layout.scores_tab4 ),
29
  TAB4 ( R.drawable.button5, R.layout.scores_tab5 ),
30
  ;
31

  
32
  static final int LENGTH = values().length;
33

  
34
  private final int mIconID, mLayoutID;
35

  
36
  private static final RubikScoresTab[] tabs;
37

  
38
  static
39
    {
40
    int i = 0;
41
    tabs = new RubikScoresTab[LENGTH];
42

  
43
    for(RubikScoresTab tab: RubikScoresTab.values())
44
      {
45
      tabs[i] = tab;
46
      i++;
47
      }
48
    }
49

  
50
///////////////////////////////////////////////////////////////////////////////////////////////////
51

  
52
  static RubikScoresTab getTab(int ordinal)
53
    {
54
    return tabs[ordinal];
55
    }
56

  
57
///////////////////////////////////////////////////////////////////////////////////////////////////
58

  
59
  RubikScoresTab(int iconID, int layoutID)
60
    {
61
    mIconID   = iconID;
62
    mLayoutID = layoutID;
63
    }
64

  
65
///////////////////////////////////////////////////////////////////////////////////////////////////
66

  
67
  int getIcon()
68
    {
69
    return mIconID;
70
    }
71

  
72
///////////////////////////////////////////////////////////////////////////////////////////////////
73

  
74
  int getLayout()
75
    {
76
    return mLayoutID;
77
    }
78
  }
src/main/java/org/distorted/magic/RubikScoresViewPager.java
1
///////////////////////////////////////////////////////////////////////////////////////////////////
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.support.annotation.NonNull;
24
import android.support.v4.view.PagerAdapter;
25
import android.support.v4.view.ViewPager;
26
import android.view.LayoutInflater;
27
import android.view.View;
28
import android.view.ViewGroup;
29

  
30
///////////////////////////////////////////////////////////////////////////////////////////////////
31

  
32
class RubikScoresViewPager extends PagerAdapter
33
  {
34
  private Context mContext;
35

  
36
///////////////////////////////////////////////////////////////////////////////////////////////////
37

  
38
  RubikScoresViewPager(Context context, ViewPager viewPager)
39
    {
40
    mContext = context;
41
    viewPager.setAdapter(this);
42
    viewPager.setOffscreenPageLimit( RubikScoresTab.LENGTH-1 );
43
    }
44

  
45
///////////////////////////////////////////////////////////////////////////////////////////////////
46

  
47
  @Override
48
  @NonNull
49
  public Object instantiateItem(@NonNull ViewGroup collection, int position)
50
    {
51
    int scoresTab= RubikScoresTab.getTab(position).getLayout();
52
    LayoutInflater inflater = LayoutInflater.from(mContext);
53
    ViewGroup layout = (ViewGroup) inflater.inflate(scoresTab, collection, false);
54
    collection.addView(layout);
55

  
56
    return layout;
57
    }
58

  
59
///////////////////////////////////////////////////////////////////////////////////////////////////
60

  
61
  @Override
62
  public void destroyItem(ViewGroup collection, int position, @NonNull Object view)
63
    {
64
    collection.removeView((View) view);
65
    }
66

  
67
///////////////////////////////////////////////////////////////////////////////////////////////////
68

  
69
  @Override
70
  public int getCount()
71
    {
72
    return RubikScoresTab.LENGTH;
73
    }
74

  
75
///////////////////////////////////////////////////////////////////////////////////////////////////
76

  
77
  @Override
78
  public boolean isViewFromObject(@NonNull View view, @NonNull Object object)
79
    {
80
    return view == object;
81
    }
82
  }
src/main/java/org/distorted/magic/RubikSettings.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.magic;
src/main/java/org/distorted/magic/RubikSurfaceView.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2019 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of Magic Cube.                                                              //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.magic;
src/main/res/layout/scores.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:layout_weight="1"
6
    android:orientation="vertical" >
7

  
8
    <android.support.design.widget.TabLayout
9
        android:id="@+id/sliding_tabs"
10
        android:layout_width="match_parent"
11
        android:layout_height="32dp"
12
        android:theme="@style/Theme.AppCompat.NoActionBar">
13
    </android.support.design.widget.TabLayout>
14

  
15
    <android.support.v4.view.ViewPager
16
        android:id="@+id/viewpager"
17
        android:layout_width="match_parent"
18
        android:layout_height="0dp"
19
        android:layout_weight="1"
20
        android:background="@android:color/black" />
21

  
22
</LinearLayout>
src/main/res/layout/scores_tab2.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:orientation="vertical" >
6

  
7
    <ScrollView
8
         android:id="@+id/tabScrollView2"
9
         android:layout_width="match_parent"
10
         android:layout_height="match_parent">
11

  
12
         <LinearLayout
13
             android:id="@+id/tabLayout2"
14
             android:layout_width="match_parent"
15
             android:layout_height="wrap_content"
16
             android:orientation="vertical" >
17
         </LinearLayout>
18

  
19
    </ScrollView>
20

  
21
</LinearLayout>
src/main/res/layout/scores_tab3.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:orientation="vertical" >
6

  
7
    <ScrollView
8
         android:id="@+id/tabScrollView3"
9
         android:layout_width="match_parent"
10
         android:layout_height="match_parent">
11

  
12
         <LinearLayout
13
             android:id="@+id/tabLayout3"
14
             android:layout_width="match_parent"
15
             android:layout_height="wrap_content"
16
             android:orientation="vertical" >
17
         </LinearLayout>
18

  
19
    </ScrollView>
20

  
21
</LinearLayout>
src/main/res/layout/scores_tab4.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:orientation="vertical" >
6

  
7
    <ScrollView
8
         android:id="@+id/tabScrollView4"
9
         android:layout_width="match_parent"
10
         android:layout_height="match_parent">
11

  
12
         <LinearLayout
13
             android:id="@+id/tabLayout4"
14
             android:layout_width="match_parent"
15
             android:layout_height="wrap_content"
16
             android:orientation="vertical" >
17
         </LinearLayout>
18

  
19
    </ScrollView>
20

  
21
</LinearLayout>
src/main/res/layout/scores_tab5.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:orientation="vertical" >
6

  
7
    <ScrollView
8
         android:id="@+id/tabScrollView5"
9
         android:layout_width="match_parent"
10
         android:layout_height="match_parent">
11

  
12
         <LinearLayout
13
             android:id="@+id/tabLayout5"
14
             android:layout_width="match_parent"
15
             android:layout_height="wrap_content"
16
             android:orientation="vertical" >
17
         </LinearLayout>
18

  
19
    </ScrollView>
20

  
21
</LinearLayout>
src/main/res/layout/scores_title.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
3
  android:layout_width="match_parent"
4
  android:layout_height="match_parent"
5
  android:textSize="22sp"
6
  android:gravity="center"
7
  android:padding="10dp"/>
src/main/res/values/strings.xml
6 6
    <string name="solve">Solve</string>
7 7
    <string name="settings">Settings</string>
8 8
    <string name="scores">Scores</string>
9
    <string name="scores_title">High Scores</string>
9 10
    <string name="about">About</string>
10 11
    <string name="save">SAVE</string>
11 12
    <string name="ok">OK</string>

Also available in: Unified diff