diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-12-26 15:57:02 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-12-26 15:57:02 +0000 |
commit | 5bf1d342f6f30699f02a985cc8b16b6da90d4688 (patch) | |
tree | f707abcdee123e12db7a004b709ab1ae1db8d660 /app/src/main/res | |
parent | f7baba9412c53b0abd54e36d74657433efb6e58e (diff) | |
download | infinity-for-reddit-5bf1d342f6f30699f02a985cc8b16b6da90d4688.tar infinity-for-reddit-5bf1d342f6f30699f02a985cc8b16b6da90d4688.tar.gz infinity-for-reddit-5bf1d342f6f30699f02a985cc8b16b6da90d4688.tar.bz2 infinity-for-reddit-5bf1d342f6f30699f02a985cc8b16b6da90d4688.tar.lz infinity-for-reddit-5bf1d342f6f30699f02a985cc8b16b6da90d4688.tar.xz infinity-for-reddit-5bf1d342f6f30699f02a985cc8b16b6da90d4688.tar.zst infinity-for-reddit-5bf1d342f6f30699f02a985cc8b16b6da90d4688.zip |
Markdown table support.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/adapter_default_entry.xml | 15 | ||||
-rw-r--r-- | app/src/main/res/layout/adapter_table_block.xml | 19 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_detail.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/layout/view_table_entry_cell.xml | 9 |
4 files changed, 46 insertions, 7 deletions
diff --git a/app/src/main/res/layout/adapter_default_entry.xml b/app/src/main/res/layout/adapter_default_entry.xml new file mode 100644 index 00000000..e9fb8929 --- /dev/null +++ b/app/src/main/res/layout/adapter_default_entry.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="16dip" + android:layout_marginRight="16dip" + android:lineSpacingExtra="2dip" + android:paddingTop="8dip" + android:paddingBottom="8dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="#000" + android:textSize="16sp" + tools:text="Hello" />
\ No newline at end of file diff --git a/app/src/main/res/layout/adapter_table_block.xml b/app/src/main/res/layout/adapter_table_block.xml new file mode 100644 index 00000000..b3b63a27 --- /dev/null +++ b/app/src/main/res/layout/adapter_table_block.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:clipChildren="false" + android:clipToPadding="false" + android:paddingLeft="16dp" + android:paddingTop="8dp" + android:paddingRight="16dp" + android:paddingBottom="8dp" + android:scrollbarStyle="outsideInset"> + + <TableLayout + android:id="@+id/table_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:stretchColumns="*" /> + +</HorizontalScrollView>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail.xml b/app/src/main/res/layout/item_post_detail.xml index 7a9dac19..41fa34da 100644 --- a/app/src/main/res/layout/item_post_detail.xml +++ b/app/src/main/res/layout/item_post_detail.xml @@ -81,15 +81,11 @@ android:textColor="@color/primaryTextColor" android:textSize="?attr/title_font_18" /> - <TextView + <androidx.recyclerview.widget.RecyclerView android:id="@+id/content_markdown_view_item_post_detail" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingEnd="16dp" - android:layout_marginTop="16dp" - android:visibility="gone" - android:textSize="?attr/content_font_default" /> + android:layout_height="match_parent" + android:visibility="gone" /> <com.nex3z.flowlayout.FlowLayout android:layout_width="match_parent" diff --git a/app/src/main/res/layout/view_table_entry_cell.xml b/app/src/main/res/layout/view_table_entry_cell.xml new file mode 100644 index 00000000..6d544918 --- /dev/null +++ b/app/src/main/res/layout/view_table_entry_cell.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="#000" + android:textSize="16sp" + tools:text="Table content" />
\ No newline at end of file |