Project

General

Profile

« Previous | Next » 

Revision ff07f079

Added by Leszek Koltunski about 1 year ago

minor

View differences:

src/main/java/org/distorted/dialogs/RubikDialogPatternListAdapter.java
17 17
import android.widget.BaseExpandableListAdapter;
18 18
import android.widget.TextView;
19 19

  
20
import org.distorted.main.MainActivity;
21 20
import org.distorted.objectlib.patterns.RubikPattern;
22 21
import org.distorted.main.R;
23 22

  
......
25 24

  
26 25
class RubikDialogPatternListAdapter extends BaseExpandableListAdapter
27 26
  {
27
  private static final float PATTERN_CHILD_TEXT  = 0.038f;
28
  private static final float PATTERN_GROUP_TEXT  = 0.060f;
29

  
28 30
  private final Context mContext;
29 31
  private final int mTab, mWidth;
30 32

  
......
67 69
      view = infalInflater.inflate(R.layout.dialog_pattern_child_item, null);
68 70
      }
69 71

  
70
    int size = (int)(mWidth*MainActivity.PATTERN_CHILD_TEXT);
72
    int size = (int)(mWidth*PATTERN_CHILD_TEXT);
71 73

  
72 74
    TextView childItem = view.findViewById(R.id.child);
73 75
    childItem.setText(childName);
......
124 126
      view = inf.inflate(R.layout.dialog_pattern_group_item, null);
125 127
      }
126 128

  
127
    int size = (int)(mWidth*MainActivity.PATTERN_GROUP_TEXT);
129
    int size = (int)(mWidth*PATTERN_GROUP_TEXT);
128 130

  
129 131
    TextView heading = view.findViewById(R.id.heading);
130 132
    heading.setText(groupName);
src/main/java/org/distorted/main/MainActivity.java
53 53

  
54 54
public class MainActivity extends AppCompatActivity implements RubikNetwork.Updatee
55 55
{
56
    public static final float PATTERN_CHILD_TEXT  = 0.038f;
57
    public static final float PATTERN_GROUP_TEXT  = 0.060f;
58

  
59 56
    public static final float RATIO_BAR = 0.080f;
60 57
    public static final int FLAGS =  View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
61 58
                                   | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN

Also available in: Unified diff