Android 9+ support

master
Dmitry Isaenko 2020-09-27 13:43:23 +03:00
parent 6442ad8751
commit 7ec331baf6
3 changed files with 18 additions and 11 deletions

View File

@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.blogspot.developersu.nowol.nowol"
minSdkVersion 14
targetSdkVersion 29
versionCode 2
versionName "2.0"
versionCode 3
versionName "3.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
@ -23,10 +23,10 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.volley:volley:1.1.1'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'com.google.android.material:material:1.2.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

View File

@ -13,6 +13,9 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:resizeableActivity="true"
android:supportsPictureInPicture="true"
android:usesCleartextTraffic="true"
android:theme="@style/AppTheme">

View File

@ -45,13 +45,15 @@
android:layout_alignBottom="@+id/pwr5BntMainAct"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:height="110dp"
android:text="@string/powerBntMain"
android:drawableTop="@drawable/pwr_widget_button"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="98dp"
android:layout_toRightOf="@+id/pwr5BntMainAct"
android:layout_toEndOf="@+id/pwr5BntMainAct" />
android:layout_toEndOf="@+id/pwr5BntMainAct"
android:layout_marginEnd="10dp" />
<Button
android:id="@+id/resBntMainAct"
@ -61,13 +63,15 @@
android:layout_alignParentStart="true"
android:layout_below="@+id/textView"
android:layout_marginTop="19dp"
android:layout_marginLeft="10dp"
android:layout_toLeftOf="@+id/pwr5BntMainAct"
android:layout_toStartOf="@+id/pwr5BntMainAct"
android:height="110dp"
android:text="@string/resetBtnMain"
android:drawableTop="@drawable/reset_widget_button"
tools:layout_editor_absoluteX="148dp"
tools:layout_editor_absoluteY="98dp" />
tools:layout_editor_absoluteY="98dp"
android:layout_marginStart="10dp" />
<Button
android:id="@+id/pwr5BntMainAct"
@ -76,7 +80,7 @@
android:layout_alignBottom="@+id/resBntMainAct"
android:layout_alignTop="@+id/resBntMainAct"
android:layout_centerHorizontal="true"
android:height="100dp"
android:height="110dp"
android:text="@string/pwr5BntMain"
android:drawableTop="@drawable/pwr5_widget_button"
tools:layout_editor_absoluteX="259dp"