diff --git a/app/build.gradle b/app/build.gradle
index 9ccf2c86a..306d70ebc 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -17,7 +17,7 @@ android {
targetCompatibility JavaVersion.VERSION_1_7
}
compileSdkVersion 29
- buildToolsVersion '29.0.3'
+ buildToolsVersion '30.0.2'
defaultConfig {
applicationId "nodomain.freeyourgadget.gadgetbridge"
@@ -68,7 +68,7 @@ dependencies {
testImplementation "com.google.code.gson:gson:2.8.6"
implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation "androidx.appcompat:appcompat:1.2.0"
+ implementation "androidx.appcompat:appcompat:1.3.0"
implementation "androidx.preference:preference:1.1.1"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.2.0"
@@ -78,6 +78,7 @@ dependencies {
implementation "androidx.palette:palette:1.0.0"
implementation "com.google.android.material:material:1.3.0"
+ implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation "com.google.code.gson:gson:2.8.6"
implementation "no.nordicsemi.android:dfu:1.11.1"
diff --git a/app/src/main/res/layout/device_itemv2.xml b/app/src/main/res/layout/device_itemv2.xml
index d130565b9..75ffd9652 100644
--- a/app/src/main/res/layout/device_itemv2.xml
+++ b/app/src/main/res/layout/device_itemv2.xml
@@ -51,8 +51,8 @@
android:clickable="true"
android:contentDescription="@string/controlcenter_set_alias"
android:focusable="true"
- android:tint="?attr/textColorTertiary"
- card_view:srcCompat="@drawable/ic_create" />
+ card_view:srcCompat="@drawable/ic_create"
+ card_view:tint="?attr/textColorTertiary" />
+ card_view:srcCompat="@drawable/ic_delete"
+ card_view:tint="?attr/textColorTertiary" />
@@ -120,249 +120,255 @@
android:layout_marginTop="8dp"
android:clickable="true"
android:contentDescription="@string/candidate_item_device_image"
- android:tint="@color/secondarytext"
android:background="?android:attr/selectableItemBackground"
card_view:srcCompat="@drawable/ic_more_vert"
- android:focusable="true" />
-
-
-
-
-
-
-
-
-
-
+ card_view:tint="@color/secondarytext" />
-
-
+ card_view:flexWrap="wrap">
-
-
-
-
+ android:layout_alignParentStart="true"
+ android:layout_margin="4dp"
+ android:orientation="vertical">
-
+
-
+
+
+
+ card_view:srcCompat="@drawable/ic_settings"
+ card_view:tint="@color/secondarytext" />
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/build.gradle b/build.gradle
index e9fe5bc29..95085a2c4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,7 +9,7 @@ buildscript {
}
}
dependencies {
- classpath 'com.android.tools.build:gradle:4.2.0'
+ classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:2.0.0'
// NOTE: Do not place your application dependencies here; they belong