home page design
This commit is contained in:
parent
3272450dd7
commit
74362552b3
@ -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() {
|
||||
|
||||
@ -15,6 +15,66 @@
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/rect_white"
|
||||
android:elevation="4dp"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_margin="16dp"
|
||||
>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="160dp"
|
||||
android:id="@+id/ivIntro"
|
||||
android:scaleType="centerCrop"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
fontPath="@string/font_medium"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="left"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:text="Original Sales, Free delivery"
|
||||
android:textColor="@color/text"
|
||||
android:textSize="20sp"/>
|
||||
|
||||
<TextView
|
||||
fontPath="@string/font_regular"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="left"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:lineSpacingMultiplier="1.4"
|
||||
android:text="New exclusive styles, the best items out there, delivered free worldwide to your doorstep"
|
||||
android:textColor="@color/text_black_5"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
<TextView
|
||||
fontPath="@string/font_regular"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:gravity="left"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="Dismiss"
|
||||
android:textColor="#1c5c9a"
|
||||
android:padding="16dp"
|
||||
android:textSize="16sp"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
fontPath="@string/font_medium"
|
||||
android:layout_width="wrap_content"
|
||||
@ -83,7 +143,6 @@
|
||||
></android.support.v7.widget.RecyclerView>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</android.support.v4.widget.NestedScrollView>
|
||||
Loading…
Reference in New Issue
Block a user