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" android:layout_height="wrap_content"
tools:text="Some data" /> tools:text="Some data" />
<include layout="@layout/reviews_summary" <include
android:layout_marginTop="6dp" layout="@layout/reviews_summary"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"
android:layout_marginTop="6dp" />
</LinearLayout> </LinearLayout>

View File

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

View File

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

View File

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

View File

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