Reformat layouts

This commit is contained in:
xynngh 2020-05-10 19:44:46 +04:00
parent 23fb81bc8d
commit 08b144fa6f
5 changed files with 20 additions and 14 deletions

View File

@ -49,10 +49,11 @@
android:layout_height="wrap_content"
tools:text="Some data" />
<include layout="@layout/reviews_summary"
android:layout_marginTop="6dp"
<include
layout="@layout/reviews_summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:layout_marginTop="6dp" />
</LinearLayout>

View File

@ -23,7 +23,7 @@
app:layout_scrollFlags="scroll|exitUntilCollapsed"
app:toolbarId="@+id/toolbar">
<include layout="@layout/reviews_summary"/>
<include layout="@layout/reviews_summary" />
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"

View File

@ -17,10 +17,10 @@
android:id="@+id/text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:layout_margin="@dimen/text_margin"
android:text=""
tools:text="@string/debug_default_test_number"/>
android:textSize="18sp"
tools:text="@string/debug_default_test_number" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/reviews_list"

View File

@ -6,16 +6,18 @@
android:orientation="horizontal"
android:paddingLeft="@dimen/item_padding"
android:paddingRight="@dimen/item_padding">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/rating_icon"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|center_horizontal"
android:layout_marginTop="10dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="10dp"
android:tint="@color/rateNeutral"
android:src="@drawable/ic_thumbs_up_down_24dp"/>
android:src="@drawable/ic_thumbs_up_down_24dp"
android:tint="@color/rateNeutral" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -24,22 +26,25 @@
android:layout_marginBottom="6dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/number_category"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:textSize="16sp"
android:textStyle="bold"
tool:text="Category"/>
tool:text="Category" />
<TextView
android:id="@+id/review_title"
android:layout_width="wrap_content"
android:layout_height="match_parent"
tool:text="Title"/>
tool:text="Title" />
<TextView
android:id="@+id/review_comment"
android:layout_width="wrap_content"
android:layout_height="match_parent"
tool:text="Comment"/>
tool:text="Comment" />
</LinearLayout>
</LinearLayout>

View File

@ -6,8 +6,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
app:layout_collapseMode="parallax"
android:orientation="horizontal">
android:orientation="horizontal"
app:layout_collapseMode="parallax">
<LinearLayout
android:layout_width="wrap_content"