Basic browsing functionality

This commit is contained in:
Balazs Toldi
2023-07-20 15:58:52 +02:00
parent fd499edccf
commit d78b12f78d
128 changed files with 1613 additions and 1873 deletions

View File

@@ -61,6 +61,13 @@
android:layout_gravity="center_horizontal"
android:fontFamily="?attr/font_family" />
<TextView
android:id="@+id/community_fulname_text_view_view_subreddit_detail_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="TextView" />
<com.google.android.material.chip.Chip
android:id="@+id/subscribe_subreddit_chip_view_subreddit_detail_activity"
android:layout_width="wrap_content"

View File

@@ -56,11 +56,19 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:layout_marginBottom="4dp"
android:textSize="?attr/font_18"
android:fontFamily="?attr/font_family"
android:layout_gravity="center_horizontal"/>
<TextView
android:id="@+id/user_qualified_name_text_view_view_user_detail_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="16dp"
android:text="TextView" />
<com.google.android.material.chip.Chip
android:id="@+id/subscribe_user_chip_view_user_detail_activity"
android:layout_width="wrap_content"

View File

@@ -61,6 +61,13 @@
android:layout_gravity="center_horizontal"
android:fontFamily="?attr/font_family" />
<TextView
android:id="@+id/community_fulname_text_view_view_subreddit_detail_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="TextView" />
<com.google.android.material.chip.Chip
android:id="@+id/subscribe_subreddit_chip_view_subreddit_detail_activity"
android:layout_width="wrap_content"

View File

@@ -56,10 +56,17 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:layout_marginBottom="4dp"
android:textSize="?attr/font_18"
android:fontFamily="?attr/font_family"
android:layout_gravity="center_horizontal"/>
<TextView
android:id="@+id/user_qualified_name_text_view_view_user_detail_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="16dp"
android:text="TextView" />
<com.google.android.material.chip.Chip
android:id="@+id/subscribe_user_chip_view_user_detail_activity"

View File

@@ -39,19 +39,70 @@
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />
<eu.toldi.infinityforlemmy.customviews.LollipopBugFixedWebView
android:id="@+id/webview_login_activity"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:layout_margin="15dp"
android:orientation="vertical">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Instance URL">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/instance_url_input"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="@string/instance_url" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/username_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/afs_md2_popup_margin_end"
android:hint="@string/user_username" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/user_password_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/user_password"
android:password="true" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/user_2fa_token_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/user_2fa_token" />
</com.google.android.material.textfield.TextInputLayout>
<Button
android:id="@+id/user_login_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/user_login" />
</LinearLayout>
</LinearLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_login_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:layout_gravity="bottom|end"
android:src="@drawable/ic_help_24dp" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@@ -61,6 +61,12 @@
android:layout_gravity="center_horizontal"
android:fontFamily="?attr/font_family" />
<TextView
android:id="@+id/community_fulname_text_view_view_subreddit_detail_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" />
<com.google.android.material.chip.Chip
android:id="@+id/subscribe_subreddit_chip_view_subreddit_detail_activity"
android:layout_width="wrap_content"

View File

@@ -55,11 +55,19 @@
android:id="@+id/user_name_text_view_view_user_detail_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:textSize="?attr/font_18"
android:layout_marginBottom="2dp"
android:fontFamily="?attr/font_family"
android:layout_gravity="center_horizontal"/>
android:textSize="?attr/font_18" />
<TextView
android:id="@+id/user_qualified_name_text_view_view_user_detail_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="16dp"
android:text="TextView" />
<com.google.android.material.chip.Chip
android:id="@+id/subscribe_user_chip_view_user_detail_activity"

View File

@@ -24,11 +24,4 @@
android:fontFamily="?attr/font_family"
android:layout_gravity="center_vertical" />
<ImageView
android:id="@+id/favorite_image_view_item_subscribed_thing"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="end|center_vertical"
android:layout_marginStart="32dp" />
</LinearLayout>

View File

@@ -716,7 +716,7 @@ Chodí popředu."</string>
<string name="report_reason_general_child_pornography">"Obsahuje dětskou pornografii"</string>
<string name="report_reason_general_abusive_content">"Obsahuje zneužívající obsah"</string>
<string name="home">"Domů"</string>
<string name="popular">"Populární"</string>
<string name="local">"Populární"</string>
<string name="notifications">"Oznámení"</string>
<string name="messages">"Zprávy"</string>
<string name="message">"Zpráva"</string>

View File

@@ -770,7 +770,7 @@ Sie ist nicht krank oder so, aber sie könnte sich definitiv bessern."</string>
<string name="report_reason_general_child_pornography">"Es enthält Kinderpornografie"</string>
<string name="report_reason_general_abusive_content">"Es enthält gewalttätiges Material"</string>
<string name="home">"Home"</string>
<string name="popular">"Beliebt"</string>
<string name="local">"Beliebt"</string>
<string name="notifications">"Benachrichtigungen"</string>
<string name="messages">"Nachrichten"</string>
<string name="message">"Nachricht"</string>

View File

@@ -757,7 +757,7 @@ No está enferma ni nada, pero definitivamente podría mejorar."</string>
<string name="report_reason_general_child_pornography">"Contiene pornografía infantil"</string>
<string name="report_reason_general_abusive_content">"Contiene contenido abusivo"</string>
<string name="home">"Inicio"</string>
<string name="popular">"Popular"</string>
<string name="local">"Popular"</string>
<string name="notifications">"Notificaciones"</string>
<string name="messages">"Mensajes"</string>
<string name="message">"Mensaje"</string>

View File

@@ -807,7 +807,7 @@ Basé sur le thème sombre Indigo"</string>
<string name="report_reason_general_child_pornography">"Ça contient de la pédopornographie"</string>
<string name="report_reason_general_abusive_content">"Ça contient du contenu abusif"</string>
<string name="home">"Accueil"</string>
<string name="popular">"Populaire"</string>
<string name="local">"Populaire"</string>
<string name="notifications">"Notifications"</string>
<string name="messages">"Messages"</string>
<string name="message">"Message"</string>

View File

@@ -783,7 +783,7 @@ https://play.google.com/store/apps/details?id=eu.toldi.infinityforlemmy"</string
<string name="report_reason_general_child_pornography">"इसमें चाइल्ड पाॅर्नोग्राफी है "</string>
<string name="report_reason_general_abusive_content">"इसकी अंतःवस्तु अनुचित है "</string>
<string name="home">"होम "</string>
<string name="popular">"लोकप्रिय "</string>
<string name="local">"लोकप्रिय "</string>
<string name="notifications">"अधिसूचनाएं "</string>
<string name="messages">"संदेश "</string>
<string name="message">"संदेश "</string>

View File

@@ -750,7 +750,7 @@ Baziraj na Indigo Amoled temi"</string>
<string name="report_reason_general_child_pornography">"Sadrži dječju pornografiju"</string>
<string name="report_reason_general_abusive_content">"Sadrži uvredljiv sadržaj"</string>
<string name="home">"Naslovnica"</string>
<string name="popular">"Popularno"</string>
<string name="local">"Popularno"</string>
<string name="notifications">"Obavijesti"</string>
<string name="messages">"Poruke"</string>
<string name="message">"Poruka"</string>

View File

@@ -723,7 +723,7 @@ Az alap az indigó amoled téma"</string>
<string name="report_reason_general_child_pornography">"Ez gyermek gyermek pornográfiát tartalmaz"</string>
<string name="report_reason_general_abusive_content">"Ez bántalmazó tartalmat tartalmaz"</string>
<string name="home">"Home"</string>
<string name="popular">"Népszerű"</string>
<string name="local">"Helyi"</string>
<string name="notifications">"Értesítések"</string>
<string name="messages">"Üzenetek"</string>
<string name="message">"Üzenet"</string>

View File

@@ -705,7 +705,7 @@ https://play.google.com/store/apps/details?id=eu.toldi.infinityforlemmy"</string
<string name="report_reason_general_child_pornography">"Contiene pedopornografia"</string>
<string name="report_reason_general_abusive_content">"Contiene contenuto offensivo"</string>
<string name="home">"Home"</string>
<string name="popular">"Popolari"</string>
<string name="local">"Popolari"</string>
<string name="notifications">"Notifiche"</string>
<string name="messages">"Messaggi"</string>
<string name="message">"Messaggio"</string>

View File

@@ -795,7 +795,7 @@ https://play.google.com/store/apps/details?id=eu.toldi.infinityforlemmy"</string
<string name="report_reason_general_child_pornography">"児童ポルノが含まれている"</string>
<string name="report_reason_general_abusive_content">"虐待的内容が含まれている"</string>
<string name="home">"ホーム"</string>
<string name="popular">"人気"</string>
<string name="local">"人気"</string>
<string name="notifications">"通知"</string>
<string name="messages">"メッセージ"</string>
<string name="message">"メッセージ"</string>

View File

@@ -725,7 +725,7 @@ Ze is niet ziek of zo, maar ze kan zeker beter worden."</string>
<string name="report_reason_general_child_pornography">"Het bevat kinderpornografie"</string>
<string name="report_reason_general_abusive_content">"Het bevat beledigende inhoud"</string>
<string name="home">"Thuis"</string>
<string name="popular">"Populair"</string>
<string name="local">"Populair"</string>
<string name="notifications">"Notificaties"</string>
<string name="messages">"Berichten"</string>
<string name="message">"Bericht"</string>

View File

@@ -714,7 +714,7 @@ Nie jest chora ani nic, ale na pewno może stać się lepsza."</string>
<string name="report_reason_general_child_pornography">"Zawiera pornografię dziecięcą"</string>
<string name="report_reason_general_abusive_content">"Zawiera obraźliwe treści"</string>
<string name="home">"Strona główna"</string>
<string name="popular">"Popularne"</string>
<string name="local">"Popularne"</string>
<string name="notifications">"Powiadomienia"</string>
<string name="messages">"Wiadomości"</string>
<string name="message">"Wiadomość"</string>

View File

@@ -716,7 +716,7 @@ Ela não está doente nem nada, mas definitivamente poderia melhorar."</string>
<string name="report_reason_general_child_pornography">"Contém pornografia infantil"</string>
<string name="report_reason_general_abusive_content">"Contém conteúdo abusivo"</string>
<string name="home">"Tela inicial"</string>
<string name="popular">"Popular"</string>
<string name="local">"Popular"</string>
<string name="notifications">"Notificações"</string>
<string name="messages">"Mensagens"</string>
<string name="message">"Mensagem"</string>

View File

@@ -713,7 +713,7 @@ Ela não está doente nem nada, mas certamente poderá melhorar."</string>
<string name="report_reason_general_child_pornography">"Contém Pornografia Infantil"</string>
<string name="report_reason_general_abusive_content">"Contém Conteúdo Abusivo"</string>
<string name="home">"Início"</string>
<string name="popular">"Popular"</string>
<string name="local">"Popular"</string>
<string name="notifications">"Notificações"</string>
<string name="messages">"Mensagens"</string>
<string name="message">"Mensagem"</string>

View File

@@ -752,7 +752,7 @@ Nu e bolnavă sau ceva de genul, dar cu siguranță ar putea să se facă bine."
<string name="report_reason_general_child_pornography">"Conține Pornografie Infantilă"</string>
<string name="report_reason_general_abusive_content">"Conține Conținut Abuziv"</string>
<string name="home">"Acasă"</string>
<string name="popular">"Popular"</string>
<string name="local">"Popular"</string>
<string name="notifications">"Notificări"</string>
<string name="messages">"Mesaje"</string>
<string name="message">"Mesaj"</string>

View File

@@ -726,7 +726,7 @@ https://play.google.com/store/apps/details?id=eu.toldi.infinityforlemmy"</string
<string name="report_reason_general_child_pornography">"Содержит детскую порнографию"</string>
<string name="report_reason_general_abusive_content">"Содержит оскорбительный контент"</string>
<string name="home">"Главная"</string>
<string name="popular">"Популярное"</string>
<string name="local">"Популярное"</string>
<string name="notifications">"Уведомления"</string>
<string name="messages">"Сообщения"</string>
<string name="message">"Сообщение"</string>

View File

@@ -732,7 +732,7 @@ Amoled Tema Şablonu Oluştur"</string>
<string name="report_reason_general_child_pornography">"Çocuk Pornografisi İçeriyor"</string>
<string name="report_reason_general_abusive_content">"Kötüye Kullanım Amaçlı İçerik İçeriyor"</string>
<string name="home">"Ana Sayfa"</string>
<string name="popular">"Popüler"</string>
<string name="local">"Popüler"</string>
<string name="notifications">"Bildirimler"</string>
<string name="messages">"Mesajlar"</string>
<string name="message">"Mesaj"</string>

View File

@@ -710,7 +710,7 @@ https://play.google.com/store/apps/details?id=eu.toldi.infinityforlemmy"</string
<string name="report_reason_general_child_pornography">"Містить дитячу порнографію"</string>
<string name="report_reason_general_abusive_content">"Містить образливий вміст"</string>
<string name="home">"Домівка"</string>
<string name="popular">"Популярне"</string>
<string name="local">"Популярне"</string>
<string name="notifications">"Сповіщення"</string>
<string name="messages">"Повідомлення"</string>
<string name="message">"Повідомлення"</string>

View File

@@ -725,7 +725,7 @@ Cô ta không ốm hay gì cả, nhưng cô ấy chắc chắn có thể khá h
<string name="report_reason_general_child_pornography">"Nó chứa porn trẻ em"</string>
<string name="report_reason_general_abusive_content">"Nó chứa nội dung lạm dụng"</string>
<string name="home">"Trang chủ"</string>
<string name="popular">"Phổ biến"</string>
<string name="local">"Phổ biến"</string>
<string name="notifications">"Thông báo"</string>
<string name="messages">"Tin nhắn"</string>
<string name="message">"Tin nhắn"</string>

View File

@@ -769,7 +769,7 @@ https://play.google.com/store/apps/details?id=eu.toldi.infinityforlemmy"</string
<string name="report_reason_general_child_pornography">"它包含儿童色情内容"</string>
<string name="report_reason_general_abusive_content">"它包含侮辱性内容"</string>
<string name="home">"主页"</string>
<string name="popular">"热门"</string>
<string name="local">"热门"</string>
<string name="notifications">"通知"</string>
<string name="messages">"消息"</string>
<string name="message">"消息"</string>

View File

@@ -195,7 +195,7 @@
<string-array name="settings_tab_post_type">
<item>@string/home</item>
<item>@string/popular</item>
<item>@string/local</item>
<item>@string/all</item>
<item>@string/subreddit</item>
<item>@string/multi_reddit</item>
@@ -209,7 +209,7 @@
<string-array name="settings_tab_post_type_anonymous">
<item>@string/home</item>
<item>@string/popular</item>
<item>@string/local</item>
<item>@string/all</item>
<item>@string/subreddit</item>
<item>@string/multi_reddit</item>

View File

@@ -1009,7 +1009,7 @@
<string name="report_reason_general_abusive_content">It Contains Abusive Content</string>
<string name="home">Home</string>
<string name="popular">Popular</string>
<string name="local">Local</string>
<string name="notifications">Notifications</string>
<string name="messages">Messages</string>
<string name="message">Message</string>
@@ -1052,7 +1052,7 @@
<string name="top_score">%1$s pts</string>
<string name="login_activity_2fa_prompt">If you have 2-factor authentication enabled, kindly type your password like the following: &lt;password&gt;:&lt;2FA code&gt;.\nExample: yourpass:123456</string>
<string name="login_activity_2fa_prompt">If you have 2-factor authentication enabled, you need to fill the 2FA token filed. Leave empty otherwise</string>
<string name="block_user">Block User</string>
<string name="block_user_success">Blocked</string>
@@ -1325,5 +1325,9 @@
<string name="reddit_api_info_title">Important Notice Regarding Reddit API Changes</string>
<string name="reddit_api_info">Starting from July 1st, 2023, Reddit API will be pay-per-use for 3rd-party clients, which include Infinity for Reddit. The announcement from Reddit can be found here: %1$s\n\nIn order to survive this change, Infinity will become a subscription-only app after July 1st. You can learn more about the changes in this post: %2$s\n\nIt\'s required for you to update Infinity after July 1st so that you will get the new version with subscription options. None of the previous versions (including this one) will work after July 1st. But due to a tight timeline Reddit gave, the update may not be available immediately on July 1st since it requires proper testing. Thank you for your understanding!</string>
<string name="i_understand">I understand</string>
<string name="instance_url">Instance URL</string>
<string name="user_username">Username</string>
<string name="user_password">Password</string>
<string name="user_2fa_token">2FA token (if needed)</string>
<string name="user_login">Login</string>
</resources>