diff --git a/app/src/androidTest/java/org/fdroid/fdroid/MainActivityEspressoTest.java b/app/src/androidTest/java/org/fdroid/fdroid/MainActivityEspressoTest.java
index d7bab4010..7cfc98ea0 100644
--- a/app/src/androidTest/java/org/fdroid/fdroid/MainActivityEspressoTest.java
+++ b/app/src/androidTest/java/org/fdroid/fdroid/MainActivityEspressoTest.java
@@ -204,7 +204,7 @@ public class MainActivityEspressoTest {
allOf(withText(R.string.main_menu__swap_nearby), isDisplayed()));
nearbyBottonNavButton.perform(click());
ViewInteraction findPeopleButton = onView(
- allOf(withId(R.id.button), withText(R.string.nearby_splash__find_people_button), isDisplayed()));
+ allOf(withId(R.id.find_people_button), withText(R.string.nearby_splash__find_people_button), isDisplayed()));
findPeopleButton.perform(click());
onView(withText(R.string.swap_send_fdroid)).check(matches(isDisplayed()));
}
diff --git a/app/src/full/java/org/fdroid/fdroid/views/main/NearbyViewBinder.java b/app/src/full/java/org/fdroid/fdroid/views/main/NearbyViewBinder.java
index bf9684911..cf2a24223 100644
--- a/app/src/full/java/org/fdroid/fdroid/views/main/NearbyViewBinder.java
+++ b/app/src/full/java/org/fdroid/fdroid/views/main/NearbyViewBinder.java
@@ -58,13 +58,13 @@ class NearbyViewBinder {
NearbyViewBinder(final Activity activity, FrameLayout parent) {
View swapView = activity.getLayoutInflater().inflate(R.layout.main_tab_swap, parent, true);
- TextView subtext = swapView.findViewById(R.id.text2);
+ TextView subtext = swapView.findViewById(R.id.both_parties_need_fdroid_text);
subtext.setText(activity.getString(R.string.nearby_splash__both_parties_need_fdroid,
activity.getString(R.string.app_name)));
ImageView nearbySplash = swapView.findViewById(R.id.image);
- Button startButton = swapView.findViewById(R.id.button);
+ Button startButton = swapView.findViewById(R.id.find_people_button);
startButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
@@ -110,9 +110,10 @@ class NearbyViewBinder {
|| PackageManager.PERMISSION_GRANTED
!= ContextCompat.checkSelfPermission(activity, writeExternalStorage)) {
nearbySplash.setVisibility(View.GONE);
- View readExternalStorage = swapView.findViewById(R.id.readExternalStorage);
- readExternalStorage.setVisibility(View.VISIBLE);
- Button requestReadExternalStorage = swapView.findViewById(R.id.requestReadExternalStorage);
+ TextView readExternalStorageText = swapView.findViewById(R.id.read_external_storage_text);
+ readExternalStorageText.setVisibility(View.VISIBLE);
+ Button requestReadExternalStorage = swapView.findViewById(R.id.request_read_external_storage_button);
+ requestReadExternalStorage.setVisibility(View.VISIBLE);
requestReadExternalStorage.setOnClickListener(new View.OnClickListener() {
@RequiresApi(api = 21)
@Override
diff --git a/app/src/full/res/layout/main_tab_swap.xml b/app/src/full/res/layout/main_tab_swap.xml
index 8e71b13a8..03c35548e 100644
--- a/app/src/full/res/layout/main_tab_swap.xml
+++ b/app/src/full/res/layout/main_tab_swap.xml
@@ -1,102 +1,97 @@
-
-
-
-
-
-
-
-
-
-
-
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/mainTabSwapBackground">
+ android:id="@+id/image"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:src="@drawable/nearby_splash"
+ android:importantForAccessibility="no"
+ app:layout_constraintRight_toRightOf="parent"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/both_parties_need_fdroid_text"
+ android:layout_marginTop="36dp"
+ android:tint="?attr/mainTabSwapSplashTint"
+ android:scaleType="fitXY"
+ tools:targetApi="jelly_bean"/>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/org/fdroid/fdroid/views/categories/CategoryController.java b/app/src/main/java/org/fdroid/fdroid/views/categories/CategoryController.java
index 0815b5b76..f06e25669 100644
--- a/app/src/main/java/org/fdroid/fdroid/views/categories/CategoryController.java
+++ b/app/src/main/java/org/fdroid/fdroid/views/categories/CategoryController.java
@@ -55,7 +55,7 @@ public class CategoryController extends RecyclerView.ViewHolder implements Loade
appCardsAdapter = new AppPreviewAdapter(activity);
- viewAll = (Button) itemView.findViewById(R.id.button);
+ viewAll = (Button) itemView.findViewById(R.id.view_all_button);
viewAll.setOnClickListener(onViewAll);
heading = (TextView) itemView.findViewById(R.id.name);
diff --git a/app/src/main/res/layout/category_item.xml b/app/src/main/res/layout/category_item.xml
index c6a17f017..6d789a8ce 100644
--- a/app/src/main/res/layout/category_item.xml
+++ b/app/src/main/res/layout/category_item.xml
@@ -11,7 +11,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintBaseline_toBaselineOf="@+id/button"
+ app:layout_constraintBaseline_toBaselineOf="@+id/view_all_button"
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
android:textSize="18sp"
android:textColor="?attr/categoryName"
@@ -24,7 +24,7 @@
android:focusableInTouchMode="true" />
+ tools:ignore="ContentDescription" tools:targetApi="jelly_bean"/>
\ No newline at end of file