use titlewebview in tablet mode

This commit is contained in:
Andrew Dolgov 2013-01-02 22:24:17 +04:00
parent 3974868298
commit 5d1c621be8

View File

@ -4,7 +4,13 @@
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical" android:orientation="vertical"
android:padding="10sp" > android:padding="10sp" >
<org.fox.ttrss.TitleWebView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<LinearLayout <LinearLayout
android:id="@+id/article_header" android:id="@+id/article_header"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -12,7 +18,7 @@
android:layout_weight="0" android:layout_weight="0"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="4sp" > android:paddingBottom="4sp" >
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -21,7 +27,7 @@
android:text="There are many variations of passages of Lorem Ipsum available" android:text="There are many variations of passages of Lorem Ipsum available"
android:textColor="?linkColor" android:textColor="?linkColor"
android:textSize="21sp" /> android:textSize="21sp" />
<TextView <TextView
android:id="@+id/comments" android:id="@+id/comments"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -32,7 +38,7 @@
android:text="24 comments" android:text="24 comments"
android:textColor="?linkColor" android:textColor="?linkColor"
android:textSize="13sp" /> android:textSize="13sp" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -45,10 +51,10 @@
android:layout_weight="0.7" android:layout_weight="0.7"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:textColor="?headlineExcerptTextColor"
android:text="{TAGS}" android:text="{TAGS}"
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" /> android:textSize="13sp" />
<TextView <TextView
android:id="@+id/date" android:id="@+id/date"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -60,61 +66,53 @@
android:textColor="?headlineExcerptTextColor" android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" android:textSize="13sp"
android:textStyle="italic" /> android:textStyle="italic" />
</LinearLayout> </LinearLayout>
<ImageView <ImageView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="5sp"
android:layout_marginTop="5sp"
android:layout_weight="0" android:layout_weight="0"
android:background="?horizontalDivider" android:background="?horizontalDivider"
android:layout_marginTop="5sp"
android:layout_marginBottom="5sp"
android:paddingTop="2dip" /> android:paddingTop="2dip" />
</LinearLayout> </LinearLayout>
</org.fox.ttrss.TitleWebView>
<WebView <LinearLayout
android:id="@+id/content" android:id="@+id/attachments_holder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="0"
/> android:paddingTop="5sp" >
<LinearLayout <Spinner
android:id="@+id/attachments_holder" android:id="@+id/attachments"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:prompt="@string/attachments_prompt" />
<Button
android:id="@+id/attachment_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0" android:layout_weight="0"
android:paddingTop="5sp" > android:text="@string/attachment_view" />
<Spinner <Button
android:id="@+id/attachments" android:id="@+id/attachment_share"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="0"
android:prompt="@string/attachments_prompt" /> android:text="@string/attachment_share" />
<Button <Button
android:id="@+id/attachment_view" android:id="@+id/attachment_copy"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0" android:layout_weight="0"
android:text="@string/attachment_view" /> android:text="@string/attachment_copy" />
</LinearLayout>
<Button
android:id="@+id/attachment_share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="@string/attachment_share" />
<Button
android:id="@+id/attachment_copy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="@string/attachment_copy" />
</LinearLayout>
</LinearLayout> </LinearLayout>