summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas <tschneider.ac@gmail.com>2022-12-04 15:50:14 +0100
committerThomas <tschneider.ac@gmail.com>2022-12-04 15:50:14 +0100
commit5290173184bfda87c7337a790d6a31ff061e81e6 (patch)
tree960442ba72c830c2ab4851092e42c76adbb8d744
parent0b2eb64a723a4a0f8ade16a1013df842d130b13c (diff)
parent468f825dc061ce6ea68701d91dfc24536f0f8957 (diff)
Merge branch 'develop'3.9.4
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/main/assets/release_notes/notes.json5
-rw-r--r--app/src/main/java/app/fedilab/android/BaseMainActivity.java10
-rw-r--r--app/src/main/java/app/fedilab/android/client/entities/api/Account.java8
-rw-r--r--app/src/main/java/app/fedilab/android/helper/SpannableHelper.java37
-rw-r--r--app/src/main/java/app/fedilab/android/ui/fragment/settings/FragmentThemingSettings.java6
-rw-r--r--app/src/main/res/layout/drawer_account.xml13
-rw-r--r--app/src/main/res/layout/drawer_account_list.xml14
-rw-r--r--app/src/main/res/layout/drawer_admin_account.xml14
-rw-r--r--app/src/main/res/layout/drawer_announcement.xml13
-rw-r--r--app/src/main/res/layout/drawer_conversation.xml13
-rw-r--r--app/src/main/res/layout/drawer_domain_block.xml12
-rw-r--r--app/src/main/res/layout/drawer_follow.xml13
-rw-r--r--app/src/main/res/layout/drawer_instance_reg.xml12
-rw-r--r--app/src/main/res/layout/drawer_status.xml14
-rw-r--r--app/src/main/res/layout/drawer_status_draft.xml12
-rw-r--r--app/src/main/res/layout/drawer_status_filtered.xml12
-rw-r--r--app/src/main/res/layout/drawer_status_filtered_hide.xml12
-rw-r--r--app/src/main/res/layout/drawer_status_history.xml13
-rw-r--r--app/src/main/res/layout/drawer_status_scheduled.xml12
-rw-r--r--app/src/main/res/layout/drawer_status_simple.xml15
-rw-r--r--app/src/main/res/layout/drawer_suggestion.xml12
-rw-r--r--app/src/main/res/layout/drawer_tag.xml13
-rw-r--r--app/src/main/res/values-night/themes.xml14
-rw-r--r--src/fdroid/fastlane/metadata/android/en/changelogs/439.txt6
25 files changed, 200 insertions, 109 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 6d80864f3..4ab8912db 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -13,8 +13,8 @@ android {
defaultConfig {
minSdk 21
targetSdk 32
- versionCode 438
- versionName "3.9.3"
+ versionCode 439
+ versionName "3.9.4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
flavorDimensions "default"
diff --git a/app/src/main/assets/release_notes/notes.json b/app/src/main/assets/release_notes/notes.json
index 7f6aff912..3a01fdffd 100644
--- a/app/src/main/assets/release_notes/notes.json
+++ b/app/src/main/assets/release_notes/notes.json
@@ -1,5 +1,10 @@
[
{
+ "version": "3.9.4",
+ "code": "439",
+ "note": "Changed:\n- Remove card presentation\n- Link color for black theme\n\nFixed:\n- Crash when changing the theme"
+ },
+ {
"version": "3.9.3",
"code": "438",
"note": "Added:\n- New design with 5 themes\n\nChanged:\n- Remove built-in browser support\n- Fit preview image displays images vertically\n- Add counters next to images\n\nFixed:\n- Jumps in timelines\n- Replies to wrong messages with followed instances\n- Bug with delete&redraft with a media\n- List cannot be hidden\n- Some crashes"
diff --git a/app/src/main/java/app/fedilab/android/BaseMainActivity.java b/app/src/main/java/app/fedilab/android/BaseMainActivity.java
index bf1cf1f04..1f28b8bea 100644
--- a/app/src/main/java/app/fedilab/android/BaseMainActivity.java
+++ b/app/src/main/java/app/fedilab/android/BaseMainActivity.java
@@ -646,10 +646,12 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
if (currentAccount.mastodon_account.display_name == null || currentAccount.mastodon_account.display_name.isEmpty()) {
currentAccount.mastodon_account.display_name = currentAccount.mastodon_account.acct;
}
- headerMainBinding.accountName.setText(
- currentAccount.mastodon_account.getSpanDisplayName(BaseMainActivity.this,
- new WeakReference<>(headerMainBinding.accountName)),
- TextView.BufferType.SPANNABLE);
+ if (!isFinishing()) {
+ headerMainBinding.accountName.setText(
+ currentAccount.mastodon_account.getSpanDisplayName(BaseMainActivity.this,
+ new WeakReference<>(headerMainBinding.accountName)),
+ TextView.BufferType.SPANNABLE);
+ }
float scale = sharedpreferences.getFloat(getString(R.string.SET_FONT_SCALE), 1.1f);
headerMainBinding.accountName.setTextSize(TypedValue.COMPLEX_UNIT_SP, 18 * 1.1f / scale);
headerMainBinding.accountAcc.setTextSize(TypedValue.COMPLEX_UNIT_SP, 18 * 1.1f / scale);
diff --git a/app/src/main/java/app/fedilab/android/client/entities/api/Account.java b/app/src/main/java/app/fedilab/android/client/entities/api/Account.java
index 36fb7a741..9ece81820 100644
--- a/app/src/main/java/app/fedilab/android/client/entities/api/Account.java
+++ b/app/src/main/java/app/fedilab/android/client/entities/api/Account.java
@@ -14,6 +14,7 @@ package app.fedilab.android.client.entities.api;
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
* see <http://www.gnu.org/licenses>. */
+import android.app.Activity;
import android.content.Context;
import android.text.Spannable;
import android.view.View;
@@ -87,6 +88,13 @@ public class Account implements Serializable {
return SpannableHelper.convert(context, display_name, null, this, null, false, viewWeakReference);
}
+ public synchronized Spannable getSpanDisplayName(Activity activity, WeakReference<View> viewWeakReference) {
+ if (display_name == null || display_name.isEmpty()) {
+ display_name = username;
+ }
+ return SpannableHelper.convertEmoji(activity, display_name, this, viewWeakReference);
+ }
+
public synchronized Spannable getSpanDisplayNameTitle(Context context, WeakReference<View> viewWeakReference, String title) {
return SpannableHelper.convert(context, title, null, this, null, false, viewWeakReference);
}
diff --git a/app/src/main/java/app/fedilab/android/helper/SpannableHelper.java b/app/src/main/java/app/fedilab/android/helper/SpannableHelper.java
index 1987da189..455614b3a 100644
--- a/app/src/main/java/app/fedilab/android/helper/SpannableHelper.java
+++ b/app/src/main/java/app/fedilab/android/helper/SpannableHelper.java
@@ -18,6 +18,7 @@ package app.fedilab.android.helper;
import static app.fedilab.android.BaseMainActivity.currentAccount;
import static app.fedilab.android.ui.drawer.StatusAdapter.sendAction;
+import android.app.Activity;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
@@ -1037,4 +1038,40 @@ public class SpannableHelper {
}
return spannableString;
}
+
+
+ public static Spannable convertEmoji(Activity activity, String text, Account account, WeakReference<View> viewWeakReference) {
+
+ SpannableString initialContent;
+ if (text == null) {
+ return null;
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
+ initialContent = new SpannableString(Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY));
+ else
+ initialContent = new SpannableString(Html.fromHtml(text));
+
+ SpannableStringBuilder content = new SpannableStringBuilder(initialContent);
+ List<Emoji> emojiList = account.emojis;
+ SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(activity);
+ boolean animate = !sharedpreferences.getBoolean(activity.getString(R.string.SET_DISABLE_ANIMATED_EMOJI), false);
+ if (emojiList != null && emojiList.size() > 0) {
+ for (Emoji emoji : emojiList) {
+ Matcher matcher = Pattern.compile(":" + emoji.shortcode + ":", Pattern.LITERAL)
+ .matcher(content);
+ while (matcher.find()) {
+ CustomEmoji customEmoji = new CustomEmoji(new WeakReference<>(viewWeakReference.get()));
+ content.setSpan(customEmoji, matcher.start(), matcher.end(), 0);
+ if (Helper.isValidContextForGlide(activity)) {
+ Glide.with(viewWeakReference.get())
+ .asDrawable()
+ .load(animate ? emoji.url : emoji.static_url)
+ .into(customEmoji.getTarget(animate));
+ }
+ }
+ }
+ }
+
+ return trimSpannable(new SpannableStringBuilder(content));
+ }
}
diff --git a/app/src/main/java/app/fedilab/android/ui/fragment/settings/FragmentThemingSettings.java b/app/src/main/java/app/fedilab/android/ui/fragment/settings/FragmentThemingSettings.java
index 50e05c84d..72f635331 100644
--- a/app/src/main/java/app/fedilab/android/ui/fragment/settings/FragmentThemingSettings.java
+++ b/app/src/main/java/app/fedilab/android/ui/fragment/settings/FragmentThemingSettings.java
@@ -23,7 +23,6 @@ import androidx.preference.PreferenceFragmentCompat;
import app.fedilab.android.R;
import app.fedilab.android.helper.Helper;
-import app.fedilab.android.helper.ThemeHelper;
import es.dmoral.toasty.Toasty;
public class FragmentThemingSettings extends PreferenceFragmentCompat implements SharedPreferences.OnSharedPreferenceChangeListener {
@@ -61,9 +60,8 @@ public class FragmentThemingSettings extends PreferenceFragmentCompat implements
if (key.compareTo(getString(R.string.SET_THEME_BASE)) == 0) {
ListPreference SET_THEME_BASE = findPreference(getString(R.string.SET_THEME_BASE));
if (SET_THEME_BASE != null) {
- ThemeHelper.switchTo(SET_THEME_BASE.getValue());
- requireActivity().recreate();
- Helper.recreateMainActivity(requireActivity());
+ requireActivity().finish();
+ startActivity(requireActivity().getIntent());
}
}
//TODO: check if can be removed
diff --git a/app/src/main/res/layout/drawer_account.xml b/app/src/main/res/layout/drawer_account.xml
index 25b46fc54..75a4731a8 100644
--- a/app/src/main/res/layout/drawer_account.xml
+++ b/app/src/main/res/layout/drawer_account.xml
@@ -14,16 +14,19 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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="wrap_content"
android:layout_marginHorizontal="6dp"
- android:layout_marginTop="6dp"
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ android:layout_marginTop="6dp">
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
@@ -151,4 +154,4 @@
</androidx.constraintlayout.widget.ConstraintLayout>
-</com.google.android.material.card.MaterialCardView>
+</RelativeLayout>
diff --git a/app/src/main/res/layout/drawer_account_list.xml b/app/src/main/res/layout/drawer_account_list.xml
index 32c86a302..06c946949 100644
--- a/app/src/main/res/layout/drawer_account_list.xml
+++ b/app/src/main/res/layout/drawer_account_list.xml
@@ -14,16 +14,18 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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="wrap_content"
-
android:layout_marginHorizontal="12dp"
- android:layout_marginTop="12dp"
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ android:layout_marginTop="12dp">
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
@@ -84,4 +86,4 @@
</androidx.constraintlayout.widget.ConstraintLayout>
-</com.google.android.material.card.MaterialCardView>
+</RelativeLayout>
diff --git a/app/src/main/res/layout/drawer_admin_account.xml b/app/src/main/res/layout/drawer_admin_account.xml
index 7faf4ef50..11be13127 100644
--- a/app/src/main/res/layout/drawer_admin_account.xml
+++ b/app/src/main/res/layout/drawer_admin_account.xml
@@ -1,13 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/admin_account_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="6dp"
- android:layout_marginTop="6dp"
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ android:layout_marginTop="6dp">
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
@@ -138,5 +140,5 @@
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
-</androidx.cardview.widget.CardView>
+</RelativeLayout>
diff --git a/app/src/main/res/layout/drawer_announcement.xml b/app/src/main/res/layout/drawer_announcement.xml
index 2ba338a14..b7fe36219 100644
--- a/app/src/main/res/layout/drawer_announcement.xml
+++ b/app/src/main/res/layout/drawer_announcement.xml
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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:id="@+id/cardview_container"
@@ -24,9 +24,12 @@
android:layout_marginHorizontal="@dimen/card_margin"
android:layout_marginTop="@dimen/card_margin"
android:clipChildren="false"
- android:clipToPadding="false"
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ android:clipToPadding="false">
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/card_status_container"
@@ -93,4 +96,4 @@
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.constraintlayout.widget.ConstraintLayout>
-</com.google.android.material.card.MaterialCardView>
+</RelativeLayout>
diff --git a/app/src/main/res/layout/drawer_conversation.xml b/app/src/main/res/layout/drawer_conversation.xml
index 41e0f0d3b..3fa599d23 100644
--- a/app/src/main/res/layout/drawer_conversation.xml
+++ b/app/src/main/res/layout/drawer_conversation.xml
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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:id="@+id/container"
@@ -22,9 +22,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="6dp"
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ android:layout_marginTop="6dp">
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
@@ -112,4 +115,4 @@
tools:visibility="visible" />
</androidx.appcompat.widget.LinearLayoutCompat>
-</com.google.android.material.card.MaterialCardView>
+</RelativeLayout>
diff --git a/app/src/main/res/layout/drawer_domain_block.xml b/app/src/main/res/layout/drawer_domain_block.xml
index 0de61977a..81edbc780 100644
--- a/app/src/main/res/layout/drawer_domain_block.xml
+++ b/app/src/main/res/layout/drawer_domain_block.xml
@@ -14,14 +14,16 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>.
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="12dp"
+ android:layout_margin="12dp">
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
@@ -49,4 +51,4 @@
android:padding="6dp"
app:icon="@drawable/ic_baseline_delete_24" />
</androidx.appcompat.widget.LinearLayoutCompat>
-</com.google.android.material.card.MaterialCardView> \ No newline at end of file
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/drawer_follow.xml b/app/src/main/res/layout/drawer_follow.xml
index 22d6f8bf1..0fcc8e74a 100644
--- a/app/src/main/res/layout/drawer_follow.xml
+++ b/app/src/main/res/layout/drawer_follow.xml
@@ -14,15 +14,18 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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="wrap_content"
android:layout_marginHorizontal="@dimen/card_margin"
- app:cardElevation="5dp"
- android:layout_marginTop="@dimen/card_margin"
- app:strokeWidth="0dp">
+ android:layout_marginTop="@dimen/card_margin">
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
@@ -125,4 +128,4 @@
</androidx.appcompat.widget.LinearLayoutCompat>
-</com.google.android.material.card.MaterialCardView>
+</RelativeLayout>
diff --git a/app/src/main/res/layout/drawer_instance_reg.xml b/app/src/main/res/layout/drawer_instance_reg.xml
index 430c1dd0c..0f97003ab 100644
--- a/app/src/main/res/layout/drawer_instance_reg.xml
+++ b/app/src/main/res/layout/drawer_instance_reg.xml
@@ -14,15 +14,17 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>.
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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="wrap_content"
- android:layout_margin="12dp"
+ android:layout_margin="12dp">
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
@@ -97,4 +99,4 @@
</androidx.constraintlayout.widget.ConstraintLayout>
-</com.google.android.material.card.MaterialCardView> \ No newline at end of file
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/drawer_status.xml b/app/src/main/res/layout/drawer_status.xml
index 9c22561f6..3a741fe3f 100644
--- a/app/src/main/res/layout/drawer_status.xml
+++ b/app/src/main/res/layout/drawer_status.xml
@@ -14,19 +14,21 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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:id="@+id/cardview_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
-
android:layout_marginHorizontal="@dimen/card_margin"
android:layout_marginTop="@dimen/card_margin"
android:clipToPadding="false"
- app:cardElevation="5dp"
- android:clipChildren="false"
- app:strokeWidth="0dp">
+ android:clipChildren="false">
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/main_container"
@@ -732,4 +734,4 @@
</androidx.appcompat.widget.LinearLayoutCompat>
-</com.google.android.material.card.MaterialCardView>
+</RelativeLayout>
diff --git a/app/src/main/res/layout/drawer_status_draft.xml b/app/src/main/res/layout/drawer_status_draft.xml
index a51911c4c..1eb24ce4b 100644
--- a/app/src/main/res/layout/drawer_status_draft.xml
+++ b/app/src/main/res/layout/drawer_status_draft.xml
@@ -14,16 +14,18 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="12dp"
+ android:layout_margin="12dp">
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
@@ -104,4 +106,4 @@
</HorizontalScrollView>
</androidx.appcompat.widget.LinearLayoutCompat>
-</com.google.android.material.card.MaterialCardView>
+</RelativeLayout>
diff --git a/app/src/main/res/layout/drawer_status_filtered.xml b/app/src/main/res/layout/drawer_status_filtered.xml
index 7eee092e2..69154e28a 100644
--- a/app/src/main/res/layout/drawer_status_filtered.xml
+++ b/app/src/main/res/layout/drawer_status_filtered.xml
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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:id="@+id/cardview_container"
@@ -23,10 +23,12 @@
android:layout_marginHorizontal="@dimen/card_margin"
android:layout_marginTop="@dimen/card_margin"
android:clipChildren="false"
+ android:clipToPadding="false">
- android:clipToPadding="false"
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
@@ -76,4 +78,4 @@
tools:visibility="visible" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.constraintlayout.widget.ConstraintLayout>
-</com.google.android.material.card.MaterialCardView> \ No newline at end of file
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/drawer_status_filtered_hide.xml b/app/src/main/res/layout/drawer_status_filtered_hide.xml
index 19385238a..4b7b32232 100644
--- a/app/src/main/res/layout/drawer_status_filtered_hide.xml
+++ b/app/src/main/res/layout/drawer_status_filtered_hide.xml
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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:id="@+id/cardview_container"
@@ -23,10 +23,12 @@
android:layout_marginHorizontal="@dimen/card_margin"
android:layout_marginTop="@dimen/card_margin"
android:clipChildren="false"
+ android:clipToPadding="false">
- android:clipToPadding="false"
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/container_fetchmore"
@@ -45,4 +47,4 @@
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible" />
</androidx.appcompat.widget.LinearLayoutCompat>
-</com.google.android.material.card.MaterialCardView> \ No newline at end of file
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/drawer_status_history.xml b/app/src/main/res/layout/drawer_status_history.xml
index 4507a628c..0522d2c66 100644
--- a/app/src/main/res/layout/drawer_status_history.xml
+++ b/app/src/main/res/layout/drawer_status_history.xml
@@ -14,8 +14,7 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/cardview_container"
android:layout_width="match_parent"
@@ -23,10 +22,12 @@
android:layout_marginHorizontal="12dp"
android:layout_marginTop="12dp"
android:clipChildren="false"
- android:clipToPadding="false"
+ android:clipToPadding="false">
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
@@ -99,4 +100,4 @@
tools:text="@tools:sample/lorem/random" />
</androidx.appcompat.widget.LinearLayoutCompat>
-</com.google.android.material.card.MaterialCardView> \ No newline at end of file
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/drawer_status_scheduled.xml b/app/src/main/res/layout/drawer_status_scheduled.xml
index c55ba39bc..b22296a2c 100644
--- a/app/src/main/res/layout/drawer_status_scheduled.xml
+++ b/app/src/main/res/layout/drawer_status_scheduled.xml
@@ -14,16 +14,18 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>
-->
-<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout 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:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="12dp"
+ android:layout_margin="12dp">
- app:cardElevation="5dp"
- app:strokeWidth="0dp">
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="?colorOutline" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
@@ -94,4 +96,4 @@
</HorizontalScrollView>
</androidx.appcompat.widget.LinearLayoutCompat>
-</com.google.android.material.card.M