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

@ -17,9 +17,9 @@
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=""
android:textSize="18sp"
tools:text="@string/debug_default_test_number" /> tools:text="@string/debug_default_test_number" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView

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,6 +26,7 @@
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"
@ -31,11 +34,13 @@
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"

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"