Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#FBFCFE"
- android:orientation="horizontal"
- tools:context=".MainActivity">
- <RelativeLayout
- android:id="@+id/menu_bar"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
- <TextView
- android:id="@+id/text_view_exchange"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:layout_gravity="center"
- android:text="Exchange"
- android:textSize="30sp"
- android:textStyle="bold" />
- <ImageView
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:layout_alignParentRight="true"
- android:src="@drawable/image_menu_foreground" />
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@+id/menu_bar">
- <ImageView
- android:id="@+id/button_prev_1"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_alignBottom="@id/card_view_menu_1"
- android:layout_marginTop="20dp"
- android:src="@drawable/button_prev"/>
- <ImageView
- android:id="@+id/button_next_1"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_alignBottom="@id/card_view_menu_1"
- android:layout_alignParentRight="true"
- android:layout_marginTop="20dp"
- android:src="@drawable/button_next" />
- <RelativeLayout
- android:id="@+id/card_view_menu_1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="24dp">
- <android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
- android:id="@+id/card_view_1"
- android:layout_width="match_parent"
- android:layout_height="120dp"
- android:layout_gravity="center"
- card_view:cardCornerRadius="10dp">
- <RelativeLayout
- android:id="@+id/card_view_1_relative"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <de.hdodenhof.circleimageview.CircleImageView xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/country_image_1"
- android:layout_width="60dp"
- android:layout_height="60dp"
- android:layout_alignParentLeft="true"
- android:layout_centerInParent="true"
- android:layout_marginLeft="10dp"
- android:src="@drawable/flag_usa"
- app:civ_border_color="#FF000000"
- app:civ_border_width="2dp" />
- <TextView
- android:id="@+id/currency_code_1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignTop="@id/country_image_1"
- android:layout_marginLeft="15dp"
- android:layout_toRightOf="@id/country_image_1"
- android:text="USD"
- android:textColor="#172B54"
- android:textSize="30sp" />
- <TextView
- android:id="@+id/currency_name_1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/currency_code_1"
- android:layout_marginLeft="15dp"
- android:layout_toRightOf="@id/country_image_1"
- android:text="AMERICANN DOLLAR"
- android:textAllCaps="true"
- android:textColor="#BFC6DE"
- android:textSize="15sp" />
- <EditText
- android:id="@+id/currency_edit_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBaseline="@id/currency_code_1"
- android:layout_alignParentRight="true"
- android:layout_margin="10dp"
- android:maxLines="1"
- android:text="100.00"
- android:textColor="#BFC6DE"
- android:textSize="30sp" />
- </RelativeLayout>
- </android.support.v7.widget.CardView>
- </RelativeLayout>
- <TextView
- android:id="@+id/text_view_convertto"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/card_view_menu_1"
- android:layout_centerInParent="true"
- android:text="CONVERT TO"
- android:textColor="#C0C6DE"
- android:textSize="16sp" />
- <ImageView
- android:id="@+id/button_prev_2"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_alignTop="@id/card_view_menu_2"
- android:layout_alignBottom="@id/card_view_menu_2"
- android:src="@drawable/button_prev" />
- <ImageView
- android:id="@+id/button_next_2"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_alignTop="@id/card_view_menu_2"
- android:layout_alignBottom="@id/card_view_menu_2"
- android:layout_alignParentRight="true"
- android:src="@drawable/button_next" />
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="30dp"
- android:layout_alignTop="@+id/card_view_menu_2"
- android:elevation="10dp"
- android:layout_marginTop="-15dp"
- android:layout_centerInParent="true">
- <ImageView android:id="@+id/float_image_2"
- android:layout_width="160dp"
- android:layout_height="30dp"
- android:background="@drawable/float_info"
- android:layout_centerHorizontal="true"/>
- <TextView android:id="@+id/float_text_currency_code_1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#6951BA"
- android:textStyle="bold"
- android:layout_alignParentLeft="true"
- android:layout_marginLeft="5dp"
- android:layout_centerInParent="true"
- android:text="$"/>
- <TextView android:id="@+id/float_text_currency_value_1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#6951BA"
- android:textStyle="bold"
- android:layout_marginTop="5dp"
- android:layout_centerInParent="true"
- android:text="100.00"
- android:layout_toRightOf="@+id/float_text_currency_code_1"/>
- <TextView android:id="@+id/float_text_equal"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#6951BA"
- android:textStyle="bold"
- android:layout_marginTop="5dp"
- android:layout_marginLeft="5dp"
- android:layout_marginRight="5dp"
- android:layout_centerInParent="true"
- android:text="="
- android:layout_toRightOf="@+id/float_text_currency_value_1"/>
- <TextView android:id="@+id/float_text_currency_code_2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#6951BA"
- android:textStyle="bold"
- android:layout_marginTop="5dp"
- android:layout_centerInParent="true"
- android:text="£"
- android:layout_toRightOf="@id/float_text_equal"/>
- <TextView android:id="@+id/float_text_currency_value_2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#6951BA"
- android:textStyle="bold"
- android:layout_marginTop="5dp"
- android:layout_centerInParent="true"
- android:text="100.00"
- android:layout_toRightOf="@id/float_text_currency_code_2"/>
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/card_view_menu_2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/text_view_convertto"
- android:layout_margin="24dp">
- <android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
- android:id="@+id/card_view_2"
- android:layout_width="match_parent"
- android:layout_height="120dp"
- android:layout_gravity="center"
- card_view:cardCornerRadius="10dp">
- <RelativeLayout
- android:id="@+id/card_view_2_relative"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <de.hdodenhof.circleimageview.CircleImageView xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/country_image_2"
- android:layout_width="60dp"
- android:layout_height="60dp"
- android:layout_alignParentLeft="true"
- android:layout_centerInParent="true"
- android:layout_marginLeft="10dp"
- android:src="@drawable/flag_englend"
- app:civ_border_color="#FF000000"
- app:civ_border_width="2dp" />
- <TextView
- android:id="@+id/currency_code_2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignTop="@id/country_image_2"
- android:layout_marginLeft="15dp"
- android:layout_toRightOf="@id/country_image_2"
- android:text="GBP"
- android:textColor="#172B54"
- android:textSize="30sp" />
- <TextView
- android:id="@+id/currency_name_2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/currency_code_2"
- android:layout_marginLeft="15dp"
- android:layout_toRightOf="@id/country_image_2"
- android:text="GB PUND"
- android:textAllCaps="true"
- android:textColor="#BFC6DE"
- android:textSize="15sp" />
- <TextView
- android:id="@+id/currency_edit_text_2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBaseline="@id/currency_code_2"
- android:layout_alignParentRight="true"
- android:layout_margin="10dp"
- android:maxLines="1"
- android:text="119.00"
- android:textColor="#BFC6DE"
- android:textSize="30sp" />
- </RelativeLayout>
- </android.support.v7.widget.CardView>
- </RelativeLayout>
- <Button
- android:id="@+id/button_convert"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerInParent="true"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp"
- android:layout_marginBottom="20dp"
- android:background="@drawable/button_rounded"
- android:text="Convert"
- android:textAllCaps="false"
- android:textColor="#ffffff"
- android:textSize="16sp" />
- </RelativeLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement