Skip to content

Commit

Permalink
XML para el bosquejo de la pantalla inicial de recomendaciones de rec…
Browse files Browse the repository at this point in the history
…etas
  • Loading branch information
Franverri committed Jan 12, 2020
1 parent cb66a5e commit 7bd6cc3
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 7 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
}
Binary file added app/src/main/res/drawable/food1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/food2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/food3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/rate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="?attr/actionBarSize">
android:layout_height="match_parent">

<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/nav_view"
Expand All @@ -25,9 +24,11 @@
android:layout_height="match_parent"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@id/nav_view"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
app:navGraph="@navigation/mobile_navigation" />

</androidx.constraintlayout.widget.ConstraintLayout>
167 changes: 163 additions & 4 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:orientation="vertical"
android:layout_height="match_parent"
android:background="#000000">

<TextView
android:id="@+id/text_home"
android:text="FOOD"
android:textColor="#FFFFFF"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
Expand All @@ -15,5 +19,160 @@
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
app:layout_constraintTop_toTopOf="parent"
android:layout_marginBottom="20dp"/>

<androidx.cardview.widget.CardView
android:layout_margin="15dp"
android:layout_width="match_parent"
app:cardCornerRadius="8dp"
android:layout_height="wrap_content">

<LinearLayout
android:padding="12dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">

<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_height="wrap_content">

<TextView
android:textSize="24dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="FOOD MENU 1">

</TextView>

<LinearLayout
android:layout_marginTop="4dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">

<ImageView
android:layout_width="wrap_content"
android:src="@drawable/rate"
android:layout_height="wrap_content">

</ImageView>

<ImageView
android:layout_width="wrap_content"
android:src="@drawable/rate"
android:layout_height="wrap_content">

</ImageView>

<ImageView
android:layout_width="wrap_content"
android:src="@drawable/rate"
android:layout_height="wrap_content">

</ImageView>

<ImageView
android:layout_width="wrap_content"
android:src="@drawable/rate"
android:layout_height="wrap_content">

</ImageView>

<ImageView
android:layout_width="wrap_content"
android:src="@drawable/rate"
android:layout_height="wrap_content">

</ImageView>

</LinearLayout>

<LinearLayout
android:layout_marginTop="10dp"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">

<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">


<TextView
android:layout_gravity="center"
android:layout_width="wrap_content"
android:textSize="20dp"
android:text="20"
android:layout_height="wrap_content">

</TextView>

<TextView
android:layout_gravity="center"
android:layout_width="wrap_content"
android:textSize="14dp"
android:text="Minutos"
android:layout_height="wrap_content">

</TextView>
</LinearLayout>

<LinearLayout
android:orientation="vertical"
android:layout_marginLeft="35dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">


<TextView
android:layout_gravity="center"
android:layout_width="wrap_content"
android:textSize="20dp"
android:text="15"
android:layout_height="wrap_content">

</TextView>

<TextView
android:layout_gravity="center"
android:layout_width="wrap_content"
android:textSize="14dp"
android:text="Calorías"
android:layout_height="wrap_content">

</TextView>
</LinearLayout>

</LinearLayout>

</LinearLayout>

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/food1">

</ImageView>

</RelativeLayout>

</LinearLayout>

</LinearLayout>

</androidx.cardview.widget.CardView>
</LinearLayout>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 7bd6cc3

Please sign in to comment.