Added post web links support

This commit is contained in:
Pierre HUBERT
2018-08-06 15:02:48 +02:00
parent 77c19375fc
commit 84bc2f1fd4
12 changed files with 321 additions and 23 deletions

View File

@ -85,6 +85,12 @@
android:layout_height="200dp"
style="@style/PostMovie"/>
<!-- Post Web link (if any) -->
<org.communiquons.android.comunic.client.ui.views.WebLinkView
android:id="@+id/post_web_link"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!-- Related PDF (if any) -->
<org.communiquons.android.comunic.client.ui.views.PDFLinkButtonView
android:id="@+id/btn_pdf_link"

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:background="@drawable/bg_weblink">
<org.communiquons.android.comunic.client.ui.views.WebImageView
android:id="@+id/link_image"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/world"
android:layout_gravity="center_vertical"
android:layout_marginEnd="5dp"/>
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/link_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="Link title"
android:textSize="20sp"/>
<TextView
android:id="@+id/link_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="http://example.com/link"
style="@android:style/TextAppearance.Small"
android:textColor="@android:color/holo_blue_dark"/>
<TextView
android:id="@+id/link_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="A description content with interesting content about the page and its content."/>
</LinearLayout>
</LinearLayout>