Fix some UI

This commit is contained in:
Nezumi
2023-02-14 10:33:19 +07:00
parent fd3b73bbec
commit a95c0b306b
5 changed files with 23 additions and 12 deletions
+6 -5
View File
@@ -37,7 +37,7 @@
<TextView
android:id="@+id/text_address"
android:text="Home"
android:text="@string/home"
android:textSize="18sp"
android:textStyle="bold"
android:textColor="@color/secondary"
@@ -50,6 +50,7 @@
android:layout_weight="0.1"
android:layout_width="0dp"
android:layout_height="30dp"
android:contentDescription="@string/location_icon"
app:tint="@color/secondary"
/>
@@ -76,7 +77,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="20dp"
android:layout_marginEnd="10dp"
android:layout_marginTop="10dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:orientation="horizontal"
@@ -92,7 +93,7 @@
android:layout_marginTop="5dp"
android:textColor="@color/black"
android:textStyle="bold"
android:layout_marginStart="20dp"
android:layout_marginStart="10dp"
android:textSize="18sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -105,11 +106,11 @@
android:layout_width="0dp"
android:layout_height="100dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="20dp"
android:layout_marginEnd="10dp"
android:layout_marginTop="10dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:orientation="horizontal"
android:contentDescription="List Food"
android:contentDescription="@string/description"
tools:listitem="@layout/list_restaurant"
app:layout_constraintTop_toBottomOf="@id/restaurant_text"
app:layout_constraintStart_toStartOf="parent"
+6 -4
View File
@@ -33,19 +33,21 @@
<ImageView
android:id="@+id/favourite_icon"
android:src="@drawable/baseline_favorite_border_24"
android:layout_width="18dp"
android:layout_height="20dp"
android:background=""
android:layout_width="24dp"
android:layout_height="26dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="2dp"
app:layout_constraintEnd_toEndOf="@id/image_view"
app:layout_constraintBottom_toBottomOf="@id/image_view"
android:contentDescription="@string/favourite_icon"
/>
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="22dp"
android:text="Food Title"
android:text="@string/food_title"
android:layout_marginStart="6dp"
android:textSize="12sp"
android:fontFamily="@font/opensans"
@@ -68,7 +70,6 @@
<TextView
android:id="@+id/price"
android:text="$ 5.00"
android:textSize="20sp"
android:textColor="@color/primaryColor"
android:fontFamily="@font/bebas"
@@ -85,6 +86,7 @@
android:layout_weight="0.2"
android:layout_height="20dp"
android:layout_marginEnd="2dp"
android:contentDescription="@string/basket_icon"
/>
</LinearLayout>
+2 -2
View File
@@ -7,8 +7,8 @@
<TextView
android:id="@+id/menuTitle"
android:text="Title Menu"
android:textSize="25dp"
android:text="@string/title"
android:textSize="18sp"
android:fontFamily="@font/opensans"
android:textColor="@color/black"
android:textStyle="bold"
+7
View File
@@ -32,4 +32,11 @@
<string name="recommend_for_you">Recommend for you</string>
<string name="restaurant">Restaurant</string>
<string name="the_most_popular_food">The most popular food</string>
<string name="title">Title</string>
<string name="description">description</string>
<string name="home">Home</string>
<string name="location_icon">Location Icon</string>
<string name="food_title">Food Title</string>
<string name="basket_icon">Basket Icon</string>
<string name="favourite_icon">Favourite Icon</string>
</resources>
+2 -1
View File
@@ -19,4 +19,5 @@ android.useAndroidX=true
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.enableJetifier=true
android.enableJetifier=true
org.gradle.unsafe.configuration-cache=true