Project

General

Profile

« Previous | Next » 

Revision ca445c23

Added by Leszek Koltunski about 4 years ago

Minor

View differences:

build.gradle
5 5

  
6 6
    defaultConfig {
7 7
        applicationId "org.distorted.magic"
8
        minSdkVersion 26
8
        minSdkVersion 25
9 9
        targetSdkVersion 27
10 10
        versionCode 1
11 11
        versionName "1.0"
src/main/res/layout/numberpicker.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:orientation="horizontal">
6

  
7
    <Button
8
        android:id="@+id/buttonLess"
9
        android:layout_width="0sp"
10
        android:layout_height="match_parent"
11
        android:layout_weight="1"
12
        android:text="-"
13
        android:textSize="24sp" />
14

  
15
    <TextView
16
        android:id="@+id/textNumber"
17
        android:layout_width="0sp"
18
        android:layout_height="match_parent"
19
        android:layout_weight="1"
20
        android:textAlignment="center"
21
        android:textSize="36sp" />
22

  
23
    <Button
24
        android:id="@+id/buttonMore"
25
        android:layout_width="0sp"
26
        android:layout_height="match_parent"
27
        android:layout_weight="1"
28
        android:text="+"
29
        android:textSize="24sp" />
30
</LinearLayout>
src/main/res/layout/play_title.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="horizontal" >
6

  
7
    <Button
8
        android:id="@+id/rubikScramble"
9
        android:layout_width="fill_parent"
10
        android:layout_height="fill_parent"
11
        android:layout_weight="0.2"
12
        android:onClick="Scramble"
13
        android:paddingLeft="5dp"
14
        android:paddingRight="5dp"
15
        android:text="@string/scramble" />
16

  
17
    <org.distorted.component.HorizontalNumberPicker
18
        android:id="@+id/rubikNumberPicker"
19
        android:layout_width="192dp"
20
        android:layout_height="fill_parent"/>
21

  
22
    <Button
23
        android:id="@+id/rubikSolve"
24
        android:layout_width="fill_parent"
25
        android:layout_height="fill_parent"
26
        android:layout_weight="0.2"
27
        android:onClick="Solve"
28
        android:paddingLeft="5dp"
29
        android:paddingRight="5dp"
30
        android:text="@string/solve" />
31

  
32
</LinearLayout>

Also available in: Unified diff