Skip to content

Commit

Permalink
Migrate from ConstraintLayout to other layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
kytta committed Feb 15, 2024
1 parent bbd2374 commit a05b908
Show file tree
Hide file tree
Showing 7 changed files with 299 additions and 336 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
applicationId "ru.karamoff.kawan_kawan.arithmaster"
minSdk 21
targetSdk 34
versionCode 48
versionCode 49
versionName "1.1.0"
}

Expand All @@ -37,5 +37,4 @@ android {
}

dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.constraintlayout.widget.ConstraintLayout;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
Expand Down Expand Up @@ -42,7 +41,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_game);

// получение объектов для изменения в дальнейшем
ConstraintLayout parent = findViewById(R.id.parentLayout); // "родитель" разметки
LinearLayout parent = findViewById(R.id.parentLayout); // "родитель" разметки
TextView modeTitle = findViewById(R.id.modeTitle); // заголовок окна

operationField = findViewById(R.id.operation); // операция
Expand Down
Loading

0 comments on commit a05b908

Please sign in to comment.