Android 9+ support
This commit is contained in:
parent
6442ad8751
commit
7ec331baf6
3 changed files with 18 additions and 11 deletions
|
@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
buildToolsVersion "29.0.0"
|
buildToolsVersion "29.0.2"
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.blogspot.developersu.nowol.nowol"
|
applicationId "com.blogspot.developersu.nowol.nowol"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 2
|
versionCode 3
|
||||||
versionName "2.0"
|
versionName "3.0"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,10 @@ android {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
implementation 'com.android.volley:volley:1.1.1'
|
implementation 'com.android.volley:volley:1.1.1'
|
||||||
implementation 'androidx.appcompat:appcompat:1.0.2'
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
|
||||||
implementation 'com.google.android.material:material:1.0.0'
|
implementation 'com.google.android.material:material:1.2.1'
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
androidTestImplementation 'androidx.test:runner:1.2.0'
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
|
android:resizeableActivity="true"
|
||||||
|
android:supportsPictureInPicture="true"
|
||||||
|
android:usesCleartextTraffic="true"
|
||||||
android:theme="@style/AppTheme">
|
android:theme="@style/AppTheme">
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -45,13 +45,15 @@
|
||||||
android:layout_alignBottom="@+id/pwr5BntMainAct"
|
android:layout_alignBottom="@+id/pwr5BntMainAct"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_marginRight="10dp"
|
||||||
android:height="110dp"
|
android:height="110dp"
|
||||||
android:text="@string/powerBntMain"
|
android:text="@string/powerBntMain"
|
||||||
android:drawableTop="@drawable/pwr_widget_button"
|
android:drawableTop="@drawable/pwr_widget_button"
|
||||||
tools:layout_editor_absoluteX="16dp"
|
tools:layout_editor_absoluteX="16dp"
|
||||||
tools:layout_editor_absoluteY="98dp"
|
tools:layout_editor_absoluteY="98dp"
|
||||||
android:layout_toRightOf="@+id/pwr5BntMainAct"
|
android:layout_toRightOf="@+id/pwr5BntMainAct"
|
||||||
android:layout_toEndOf="@+id/pwr5BntMainAct" />
|
android:layout_toEndOf="@+id/pwr5BntMainAct"
|
||||||
|
android:layout_marginEnd="10dp" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/resBntMainAct"
|
android:id="@+id/resBntMainAct"
|
||||||
|
@ -61,13 +63,15 @@
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:layout_below="@+id/textView"
|
android:layout_below="@+id/textView"
|
||||||
android:layout_marginTop="19dp"
|
android:layout_marginTop="19dp"
|
||||||
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_toLeftOf="@+id/pwr5BntMainAct"
|
android:layout_toLeftOf="@+id/pwr5BntMainAct"
|
||||||
android:layout_toStartOf="@+id/pwr5BntMainAct"
|
android:layout_toStartOf="@+id/pwr5BntMainAct"
|
||||||
android:height="110dp"
|
android:height="110dp"
|
||||||
android:text="@string/resetBtnMain"
|
android:text="@string/resetBtnMain"
|
||||||
android:drawableTop="@drawable/reset_widget_button"
|
android:drawableTop="@drawable/reset_widget_button"
|
||||||
tools:layout_editor_absoluteX="148dp"
|
tools:layout_editor_absoluteX="148dp"
|
||||||
tools:layout_editor_absoluteY="98dp" />
|
tools:layout_editor_absoluteY="98dp"
|
||||||
|
android:layout_marginStart="10dp" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/pwr5BntMainAct"
|
android:id="@+id/pwr5BntMainAct"
|
||||||
|
@ -76,7 +80,7 @@
|
||||||
android:layout_alignBottom="@+id/resBntMainAct"
|
android:layout_alignBottom="@+id/resBntMainAct"
|
||||||
android:layout_alignTop="@+id/resBntMainAct"
|
android:layout_alignTop="@+id/resBntMainAct"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:height="100dp"
|
android:height="110dp"
|
||||||
android:text="@string/pwr5BntMain"
|
android:text="@string/pwr5BntMain"
|
||||||
android:drawableTop="@drawable/pwr5_widget_button"
|
android:drawableTop="@drawable/pwr5_widget_button"
|
||||||
tools:layout_editor_absoluteX="259dp"
|
tools:layout_editor_absoluteX="259dp"
|
||||||
|
|
Loading…
Reference in a new issue