Monday , November 29 2021

Building Tinder Like Swipe Cards in Android – Android Coding by DMTechnolab

<?xml the version=“1.0” Encoding=“utf-8”?>

<Layout xmlns:App=“http://schemas.android.com/apk/res-auto”

xmlns:equipment=“http://schemas.android.com/tools”>

<The data>

<Variable

Name=“Profile”

Type=“net.simplifiedcoding.tinder.Profile” />

</The data>

<Androidx.Cardview.Widget.Card view xmlns:Android=“http://schemas.android.com/apk/res/android”

Android:Layout_process=“380dp”

Android:Layout_height=“380dp”

Android:Layout_marin=“12dp”

Android:The height=“12dp”

Android:Orientation=“Vertical”>

<Relative Layout

Android:Layout_process=“match parent”

Android:Layout_height=“match parent”>

<With.Facebook.Shout.Opinion.SimpleDraweeView

Android:Id=“@ + id / image_view_profile_pic”

Android:Layout_process=“match parent”

Android:Layout_height=“match parent”

Android:Layout_alignParentStart=“True”

Android:Layout_alignParentTop=“True”

App:The image=“@ {profile.profile_pic}”

equipment:The background=“@Drawable / ema_watson” />

<Linear Layout

Android:Layout_process=“match parent”

Android:Layout_height=“wrap content”

Android:Layout_alignParentBottom=“True”

Android:The background=“@android: color / white”

Android:Orientation=“Vertical”

Android:Padding=“12dp”>

<text view

Android:Layout_process=“wrap content”

Android:Layout_height=“wrap content”

Android:font family=“Casual”

Android:The text=“@ @ profile.name +`, `+ profile.age}”

Android:Hand color=“@android: color / black”

Android:text size=“24sp”

Android:The text=“Adventure”

equipment:The text=“Emma Watson, 26” />

<text view

Android:Layout_process=“wrap content”

Android:Layout_height=“wrap content”

Android:font family=“Sans-serif-lite”

Android:The text=“@ @ profile.distance +` miles away ‘} “

Android:Hand color=“@android: color / black”

Android:text size=“16sp”

equipment:The text=“5 miles away” />

</Linear Layout>

</Relative Layout>

</Androidx.Cardview.Widget.Card view>

</Layout>


Source link

About dmtechnolab

Check Also

Simplified Coding

Android Espresso Tutorial – Testing Fragment in Isolation – Android Coding by DMTechnolab

Welcome to another tutorial in the Android test series. And this post is called Android …

Leave a Reply

Your email address will not be published. Required fields are marked *