tweaking item activity margins

This commit is contained in:
Shinokuni 2019-02-09 19:02:50 +00:00
parent 20efc02d4e
commit a2c3aa22c8
2 changed files with 6 additions and 5 deletions

View File

@ -37,6 +37,7 @@ public class ReadropsWebView extends WebView {
settings.setJavaScriptEnabled(true); settings.setJavaScriptEnabled(true);
setBackgroundColor(getResources().getColor(R.color.colorBackground)); setBackgroundColor(getResources().getColor(R.color.colorBackground));
setPadding(0, 0, 0, 0);
} }
private String getText() { private String getText() {

View File

@ -65,7 +65,6 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="@style/Base.TextAppearance.AppCompat.Headline" android:textAppearance="@style/Base.TextAppearance.AppCompat.Headline"
android:layout_marginBottom="8dp"
tools:text="This is a title" /> tools:text="This is a title" />
<TextView <TextView
@ -74,9 +73,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/activity_item_title" android:layout_below="@id/activity_item_title"
android:layout_marginTop="6dp"
android:visibility="gone" android:visibility="gone"
tools:text="By Santa Klaus" tools:text="By Santa Klaus"
tools:visibility="visible"/> tools:visibility="gone"/>
<RelativeLayout <RelativeLayout
android:id="@+id/activity_item_readtime_layout" android:id="@+id/activity_item_readtime_layout"
@ -84,7 +84,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone" android:visibility="gone"
android:layout_below="@id/activity_item_title" android:layout_below="@id/activity_item_title"
tools:visibility="visible"> android:layout_alignParentEnd="true"
tools:visibility="gone">
<ImageView <ImageView
android:id="@+id/activity_item_readtime_icon" android:id="@+id/activity_item_readtime_icon"
@ -116,8 +117,7 @@
android:id="@+id/item_webview" android:id="@+id/item_webview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/activity_item_details_layout" android:layout_below="@id/activity_item_details_layout" />
android:layout_marginTop="6dp" />
</RelativeLayout> </RelativeLayout>