2014-11-07 20:57:08 +00:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-06-01 20:25:46 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:id="@+id/article_fragment"
|
|
|
|
android:layout_width="fill_parent"
|
2014-10-27 10:39:37 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?articleBackground">
|
2014-10-16 20:06:56 +00:00
|
|
|
|
2014-11-20 18:11:26 +00:00
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/article_fullscreen_video"
|
|
|
|
android:visibility="invisible"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"></FrameLayout>
|
|
|
|
|
2014-10-16 20:06:56 +00:00
|
|
|
<org.fox.ttrss.util.NoChildFocusScrollView
|
|
|
|
android:id="@+id/article_scrollview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fillViewport="false" >
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical" >
|
|
|
|
|
2015-05-10 21:34:24 +00:00
|
|
|
<!-- hack for hiding actionbar on small devices -->
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/article_heading_spacer"
|
|
|
|
android:visibility="gone"
|
2015-05-11 10:02:46 +00:00
|
|
|
android:layout_marginTop="@dimen/abc_action_bar_default_height_material"
|
2015-05-10 21:34:24 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"/>
|
|
|
|
|
2014-10-16 20:06:56 +00:00
|
|
|
<LinearLayout
|
2015-02-12 11:28:03 +00:00
|
|
|
android:padding="16dp"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:id="@+id/article_header"
|
2014-11-05 19:10:01 +00:00
|
|
|
android:background="?articleHeader"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2015-02-12 11:28:03 +00:00
|
|
|
android:paddingBottom="6dp">
|
2014-10-16 20:06:56 +00:00
|
|
|
|
2015-06-01 21:00:14 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-06-01 21:00:14 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
2015-06-01 21:04:57 +00:00
|
|
|
android:background="@drawable/ripple"
|
2015-06-01 21:00:14 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="My simple but hilariously and excessively long headline"
|
|
|
|
android:textColor="?articleHeaderTextColor"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/share"
|
|
|
|
android:background="@drawable/ripple"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:clickable="true"
|
|
|
|
android:src="?ic_share"
|
|
|
|
android:layout_gravity="center_vertical|right" />
|
|
|
|
</LinearLayout>
|
2014-10-16 20:06:56 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/comments"
|
2015-06-01 21:04:57 +00:00
|
|
|
android:background="@drawable/ripple"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:fontFamily="sans-serif-light"
|
2015-02-12 11:28:03 +00:00
|
|
|
android:paddingTop="8dp"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:text="24 comments"
|
2015-02-12 12:17:11 +00:00
|
|
|
android:textColor="?headlineSecondaryTextColor"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2015-02-12 11:28:03 +00:00
|
|
|
android:paddingTop="8dp">
|
2014-10-16 20:06:56 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tags"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="middle"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:text="Example Feed"
|
2015-02-12 12:17:11 +00:00
|
|
|
android:textColor="?headlineSecondaryTextColor"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/date"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="right"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:text="Jan 01, 12:00"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-02-12 12:17:11 +00:00
|
|
|
android:textColor="?headlineSecondaryTextColor"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-02-12 11:28:03 +00:00
|
|
|
<View
|
|
|
|
android:layout_gravity="top|center_horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?articleHeaderSeparator"/>
|
|
|
|
|
2014-10-16 20:06:56 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/note"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2014-11-12 12:15:12 +00:00
|
|
|
android:background="?articleNoteBackground"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:textColor="?articleNoteTextColor"
|
2015-02-12 11:28:03 +00:00
|
|
|
android:textSize="12sp"
|
|
|
|
android:text="[Article note]"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:paddingBottom="8dp" />
|
2014-10-16 20:06:56 +00:00
|
|
|
|
|
|
|
<org.fox.ttrss.util.LessBrokenWebView
|
2015-02-12 11:28:03 +00:00
|
|
|
android:layout_margin="16dp"
|
2014-10-31 10:42:19 +00:00
|
|
|
android:id="@+id/article_content"
|
2014-10-16 20:06:56 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</org.fox.ttrss.util.NoChildFocusScrollView>
|
|
|
|
|
2014-11-07 20:57:08 +00:00
|
|
|
<com.shamanland.fab.FloatingActionButton
|
|
|
|
android:id="@+id/article_fab"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginBottom="20dp"
|
2015-06-01 20:25:46 +00:00
|
|
|
app:floatingActionButtonColor="?colorAccent"
|
2014-11-07 20:57:08 +00:00
|
|
|
android:src="@drawable/ic_action_web_site"
|
|
|
|
/>
|
2014-10-16 20:06:56 +00:00
|
|
|
|
2014-11-07 20:57:08 +00:00
|
|
|
</FrameLayout>
|