Project

General

Profile

Download (2.04 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / java / org / distorted / dialogs / RubikDialogStarsExplain.java @ f8a21f6b

1 d05e7629 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2022 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is proprietary software licensed under an EULA which you should have received      //
7
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html        //
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9
10
package org.distorted.dialogs;
11
12
import android.app.Dialog;
13
import android.util.TypedValue;
14
import android.view.View;
15 c02fa107 Leszek Koltunski
import android.widget.TextView;
16 d05e7629 Leszek Koltunski
17
import androidx.fragment.app.FragmentActivity;
18
19
import org.distorted.main.R;
20
21
///////////////////////////////////////////////////////////////////////////////////////////////////
22
23 c02fa107 Leszek Koltunski
public class RubikDialogStarsExplain extends RubikDialogAbstract
24 d05e7629 Leszek Koltunski
  {
25 f8a21f6b Leszek Koltunski
  public int getResource()      { return R.layout.dialog_stars_explain; }
26
  public int getTitleResource() { return -1; }
27
  public boolean hasArgument()  { return false; }
28
  public int getPositive()      { return R.string.ok; }
29
  public int getNegative()      { return -1; }
30 d05e7629 Leszek Koltunski
31 c02fa107 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
32 d05e7629 Leszek Koltunski
33 f8a21f6b Leszek Koltunski
  public void positiveAction()
34 c02fa107 Leszek Koltunski
    {
35 d05e7629 Leszek Koltunski
36 c02fa107 Leszek Koltunski
    }
37 d05e7629 Leszek Koltunski
38 c02fa107 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
39 d05e7629 Leszek Koltunski
40 f8a21f6b Leszek Koltunski
  public void negativeAction()
41 c02fa107 Leszek Koltunski
    {
42
43
    }
44
45
///////////////////////////////////////////////////////////////////////////////////////////////////
46
47
  public void prepareBody(Dialog dialog, View view, FragmentActivity act, float size)
48
    {
49
    TextView text = view.findViewById(R.id.stars_dialog_explain);
50
    text.setTextSize(TypedValue.COMPLEX_UNIT_PX, size);
51 d05e7629 Leszek Koltunski
    }
52
  }