diff --git a/app/src/main/java/me/gilo/wc/ui/home/HomeFragment.kt b/app/src/main/java/me/gilo/wc/ui/home/HomeFragment.kt index cfb6533..28075ff 100644 --- a/app/src/main/java/me/gilo/wc/ui/home/HomeFragment.kt +++ b/app/src/main/java/me/gilo/wc/ui/home/HomeFragment.kt @@ -6,6 +6,7 @@ import android.support.v7.widget.LinearLayoutManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup +import com.squareup.picasso.Picasso import kotlinx.android.synthetic.main.fragment_home.* import me.gilo.wc.R import me.gilo.wc.adapter.HomeProductAdapter @@ -52,6 +53,10 @@ class HomeFragment : Fragment() { setUpProducts() setUpHoodies() + Picasso + .with(activity) + .load("http://157.230.131.179/wp-content/uploads/2019/01/T_6_front.jpg") + .into(ivIntro) } private fun setUpProducts() { diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index e909d1b..d559a9a 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -1,89 +1,148 @@ + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/bg" + android:orientation="vertical" + tools:ignore="MissingPrefix" + > - - - - - + - + - + - + + + + + - + + - + + + + + + + + + + + + + + + \ No newline at end of file