From f27244e555af62b5b4646bcb91037005f3a51fc7 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:35:26 -0400 Subject: New UI design in ViewUserDetailActivity. --- .../activities/ViewUserDetailActivity.java | 2 +- .../res/layout-land/activity_view_user_detail.xml | 125 ++++++++++++--------- .../layout-sw600dp/activity_view_user_detail.xml | 125 ++++++++++++--------- .../main/res/layout/activity_view_user_detail.xml | 125 ++++++++++++--------- app/src/main/res/values-cs/strings.xml | 1 - app/src/main/res/values-de/strings.xml | 1 - app/src/main/res/values-el/strings.xml | 1 - app/src/main/res/values-es/strings.xml | 1 - app/src/main/res/values-fr/strings.xml | 1 - app/src/main/res/values-hi/strings.xml | 1 - app/src/main/res/values-hr/strings.xml | 1 - app/src/main/res/values-hu/strings.xml | 1 - app/src/main/res/values-it/strings.xml | 1 - app/src/main/res/values-ja/strings.xml | 1 - app/src/main/res/values-ko/strings.xml | 1 - app/src/main/res/values-nl/strings.xml | 1 - app/src/main/res/values-pl/strings.xml | 1 - app/src/main/res/values-pt-rBR/strings.xml | 1 - app/src/main/res/values-pt/strings.xml | 1 - app/src/main/res/values-ro/strings.xml | 1 - app/src/main/res/values-ru/strings.xml | 1 - app/src/main/res/values-ta/strings.xml | 1 - app/src/main/res/values-tr-rTR/strings.xml | 1 - app/src/main/res/values-uk/strings.xml | 1 - app/src/main/res/values-vi/strings.xml | 1 - app/src/main/res/values-zh-rCN/strings.xml | 1 - app/src/main/res/values/strings.xml | 3 +- 27 files changed, 218 insertions(+), 184 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java index c5d1889f..c0984cbe 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java @@ -614,7 +614,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele collapsedTabTextColor = mCustomThemeWrapper.getTabLayoutWithCollapsedCollapsingToolbarTextColor(); collapsedTabIndicatorColor = mCustomThemeWrapper.getTabLayoutWithCollapsedCollapsingToolbarTabIndicator(); collapsedTabBackgroundColor = mCustomThemeWrapper.getTabLayoutWithCollapsedCollapsingToolbarTabBackground(); - binding.toolbarLinearLayoutViewUserDetailActivity.setBackgroundColor(expandedTabBackgroundColor); + binding.toolbarConstraintLayoutViewUserDetailActivity.setBackgroundColor(expandedTabBackgroundColor); unsubscribedColor = mCustomThemeWrapper.getUnsubscribed(); subscribedColor = mCustomThemeWrapper.getSubscribed(); binding.userNameTextViewViewUserDetailActivity.setTextColor(mCustomThemeWrapper.getUsername()); diff --git a/app/src/main/res/layout-land/activity_view_user_detail.xml b/app/src/main/res/layout-land/activity_view_user_detail.xml index 33b8b296..c5349ce1 100644 --- a/app/src/main/res/layout-land/activity_view_user_detail.xml +++ b/app/src/main/res/layout-land/activity_view_user_detail.xml @@ -15,14 +15,15 @@ - + android:layout_height="wrap_content" + android:orientation="vertical"> - - - + android:padding="16dp"> + + + app:layout_constraintVertical_chainStyle="packed" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintTop_toTopOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintBottom_toTopOf="@id/subscribe_user_chip_view_user_detail_activity" /> + app:chipStrokeColor="#00000000" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintTop_toBottomOf="@id/user_name_text_view_view_user_detail_activity" + app:layout_constraintBottom_toBottomOf="@id/icon_gif_image_view_view_user_detail_activity" + tools:visibility="visible" /> - + + - - - - - - + android:layout_marginTop="16dp" + android:gravity="end" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/barrier5" /> + android:visibility="gone" + app:layout_constraintTop_toBottomOf="@id/barrier6" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + tools:visibility="visible" /> + + + + - + - + - + android:layout_height="wrap_content" + android:orientation="vertical"> - - - + android:padding="16dp"> + + + app:layout_constraintVertical_chainStyle="packed" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintTop_toTopOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintBottom_toTopOf="@id/subscribe_user_chip_view_user_detail_activity" /> + app:chipStrokeColor="#00000000" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintTop_toBottomOf="@id/user_name_text_view_view_user_detail_activity" + app:layout_constraintBottom_toBottomOf="@id/icon_gif_image_view_view_user_detail_activity" + tools:visibility="visible" /> - + + - - - - - - + android:layout_marginTop="16dp" + android:gravity="end" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/barrier5" /> + android:visibility="gone" + app:layout_constraintTop_toBottomOf="@id/barrier6" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + tools:visibility="visible" /> + + + + - + - + - + android:layout_height="wrap_content" + android:orientation="vertical"> - - - + android:padding="16dp"> + + + app:layout_constraintVertical_chainStyle="packed" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintTop_toTopOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintBottom_toTopOf="@id/subscribe_user_chip_view_user_detail_activity" /> + app:chipStrokeColor="#00000000" + app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_view_user_detail_activity" + app:layout_constraintTop_toBottomOf="@id/user_name_text_view_view_user_detail_activity" + app:layout_constraintBottom_toBottomOf="@id/icon_gif_image_view_view_user_detail_activity" + tools:visibility="visible" /> - - - - - - - + android:layout_marginTop="16dp" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + app:layout_constraintEnd_toStartOf="@id/cakeday_text_view_view_user_detail_activity" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/barrier5" + app:layout_constraintHorizontal_bias="0" /> + + + android:visibility="gone" + app:layout_constraintTop_toBottomOf="@id/barrier6" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + tools:visibility="visible" /> + + + + - + - + "Sledování selhalo" "Sledování zrušeno" "Rušení sledování selhalo" - "Bannerový obrázek subredditu" "Infinity" "Hledat cokoli" "Nejsou dostupné žádné příspěvky" diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 2c74441f..27911615 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -142,7 +142,6 @@ Tippen für Neuversuch." "Folgen fehlgeschlagen" "Entfolgt" "Entfolgen fehlgeschlagen" - "Subreddit Banner-Bild" "Infinity" "Alles durchsuchen" "Keine Beiträge verfügbar" diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index b4d61766..fede6623 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -120,7 +120,6 @@ "Η παρακολούθηση απέτυχε" "Καταργήθηκε η παρακολούθηση" "Η κατάργηση παρακολούθησης απέτυχε" - "Εικόνα Μπάνερ Subreddit" "Infinity" "Αναζήτηση" "Καμία ανάρτηση" diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 09577f60..3a3fefb4 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -150,7 +150,6 @@ Toca para reintentar." "No fue posible seguir" "Dejó de Seguir" "Error al dejar de seguir" - "Imagen de portada del subreddit" "Infinity" "Busca cualquier cosa" "No hay publicaciones disponibles" diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 23210c5a..6d807084 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -152,7 +152,6 @@ Appuyez pour réessayer." "Échec du suivi" "Suivi annulé" "Echec de l'annulation du suivi" - "Image de la bannière du subreddit" "Infinity" "Rechercher n'importe quoi" "Aucune publication disponible" diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml index 55b2e2a2..39d64ed0 100644 --- a/app/src/main/res/values-hi/strings.xml +++ b/app/src/main/res/values-hi/strings.xml @@ -155,7 +155,6 @@ "अनुसरण असफल" "अनफॉलोड" "अ-अनुसरण असफल" - "सबरैडिट बैनर चित्र" "इनफिनिटी" "कुछ खोजिए" "कोई पोस्ट उपलब्ध नहीं" diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index d85716d2..a4221052 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -142,7 +142,6 @@ "Praćenje nije uspjelo" "Odpraćeno" "Odpraćenje nije uspjelo" - "Slika podreddita" "Infinity" "Pretražite nešto" "Nema dostupnih objava" diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 49797443..9de8f1aa 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -124,7 +124,6 @@ "Követés sikertelen" "Követés megszüntetve" "Követés megszüntetése sikertelen" - "Subreddit borítóképe" "Infinity" "Keressen bármire" "Nincs rendelkezésre álló bejegyzés" diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index bff0782b..12af767b 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -126,7 +126,6 @@ Tocca per riprovare." "Errore nel seguire" "Smesso di seguire" "Disiscrizione non riuscita" - "Banner subreddit" "Infinity" "Cerca qualcosa" "Nessun post disponibile" diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 16e5af01..c6c7dfe2 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -157,7 +157,6 @@ "フォローに失敗しました" "フォローを解除しました" "フォローの解除に失敗しました" - "Subredditのバナー画像" "ホーム - Infinity" "何でも検索してみてください" "投稿がありません" diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index 2743e087..37814dde 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -144,7 +144,6 @@ "팔로우 실패" "언팔로우됨" "언팔로우 실패" - "서브레딧 배너 사진" "인피니티" "아무거나 검색" "글 없음" diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 5b4d50e8..bf7f1c6d 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -141,7 +141,6 @@ Druk om opnieuw te proberen." "Het volgen is mislukt" "Ontvolgd" "Het ontvolgen is mislukt" - "Omslagfoto van subreddit" "Infinity" "Zoek iets" "Geen berichten beschikbaar" diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 50a26ecf..0c343d9c 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -139,7 +139,6 @@ Naciśnij, aby spróbować ponownie." "Nie udało się zaobserwować" "Przestano obserwować" "Nie udało się przestać obserwować" - "Banner subreddita" "Infinity" "Wyszukaj cokolwiek" "Nie znaleziono postów" diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index b608a9d6..47a3c4e2 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -142,7 +142,6 @@ Toque para tentar de novo." "Erro ao seguir" "Parou de Seguir" "Erro ao parar de seguir" - "Imagem do cartaz do subreddit" "Infinity" "Busque qualquer coisa" "Sem postagens disponíveis" diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index 646f9916..3bc40f7f 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -144,7 +144,6 @@ Toque para tentar novamente." "Falhou ao Seguir" "Deixado de Seguir" "Falhou ao Deixar de Seguir" - "Imagem Estandarte da Comunidade" "Infinity" "Pesquisar por qualquer coisa" "Sem publicações disponíveis" diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml index 6758df68..483d2ac8 100644 --- a/app/src/main/res/values-ro/strings.xml +++ b/app/src/main/res/values-ro/strings.xml @@ -144,7 +144,6 @@ Apăsați pentru reîncercare." "Urmărire eșuată" "Urmărire anulată" "Eșuare anulare urmărire" - "Banner subreddit" "Infinity" "Căutați orice" "Nicio postare disponibilă" diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 031ce02f..3166d7bd 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -147,7 +147,6 @@ "Невозможно начать следить" "Вы не следите" "Невозможно отписаться" - "Изображение баннера сабреддита" "Infinity" "Ищите что угодно" "Нет доступных постов" diff --git a/app/src/main/res/values-ta/strings.xml b/app/src/main/res/values-ta/strings.xml index 6fdc6705..34e53837 100644 --- a/app/src/main/res/values-ta/strings.xml +++ b/app/src/main/res/values-ta/strings.xml @@ -137,7 +137,6 @@ "பின்தொடர்தல் தோல்வி" "பின்தொடர்நீக்கம்" "பின்தொடர்நீக்கம் தோல்வி" - "துணைரெட்டிட் பதாகைப் படம்" "எதையும் தேடு" "இடுகைகள் ஏதுமில்லை" "சோம்பல் பயன்முறை நின்றது" diff --git a/app/src/main/res/values-tr-rTR/strings.xml b/app/src/main/res/values-tr-rTR/strings.xml index 714462ed..68cb602c 100644 --- a/app/src/main/res/values-tr-rTR/strings.xml +++ b/app/src/main/res/values-tr-rTR/strings.xml @@ -141,7 +141,6 @@ This translation does it work well in this kinda format. People use "since" in s "Takip edilemedi" "Takip bırakıldı" "Takip bırakılamadı" - "Subreddit Banner Resmi" "Infinity" "Bir şey arayın" "Hiç gönderi yok" diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index fe0c728c..c2ffe7f8 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -144,7 +144,6 @@ "Не вдалося стежити" "Не відстежується" "Не вдалося не відстежувати" - "Зображення банера сабредиту" "Infinity" "Шукати все" "Нема доступних дописів" diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml index 42f543d8..3ed89fbf 100644 --- a/app/src/main/res/values-vi/strings.xml +++ b/app/src/main/res/values-vi/strings.xml @@ -140,7 +140,6 @@ "Theo dõi thất bại" "Đã hủy theo dõi" "Hủy theo dõi thất bại" - "Ảnh bìa của Subreddit" "Infinity" "Tìm bất cứ thứ gì" "Không bài đăng nào có sẵn" diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 91dee8b4..7511203c 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -140,7 +140,6 @@ "取消关注失败" - "版块横幅图片" "Infinity" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ffc28bf4..ee33c49d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -167,8 +167,6 @@ Unfollowed Unfollowing Failed - Subreddit Banner Image - Infinity Search anything Search subreddits @@ -1434,6 +1432,7 @@ Comments that have a score lower than the following value will be filtered out (-1 means no restriction). Comments that have a score higher than the following value will be filtered out (-1 means no restriction). + Banner Image Create comment filter Apply comment filter to somewhere Add a user to comment filter -- cgit v1.2.3