Initial commit
BIN
app/src/main/res/drawable-nodpi/easyycc_widget_preview.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
9
app/src/main/res/drawable-nodpi/gradient.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<gradient
|
||||
android:startColor="#b3001b"
|
||||
android:endColor="#262626"
|
||||
android:type="linear"
|
||||
android:angle="45"/>
|
||||
</shape>
|
||||
9
app/src/main/res/drawable-nodpi/gradient_colour.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<gradient
|
||||
android:startColor="@color/colour_three"
|
||||
android:endColor="@color/colour_two"
|
||||
android:type="linear"
|
||||
android:angle="45"/>
|
||||
</shape>
|
||||
10
app/src/main/res/drawable-nodpi/round_edit_text.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" android:padding="10dp">
|
||||
<solid android:color="@color/colour_two" />
|
||||
<corners
|
||||
android:bottomRightRadius="22dp"
|
||||
android:bottomLeftRadius="22dp"
|
||||
android:topLeftRadius="22dp"
|
||||
android:topRightRadius="22dp" />
|
||||
</shape>
|
||||
111
app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,111 @@
|
||||
<?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:card_view="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:layout_centerInParent="true"
|
||||
android:orientation="vertical"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="true"
|
||||
tools:context="com.appttude.h_mal.easycc.MainActivity">
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_margin="12dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/whole_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="18dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/cardview_theme">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/currency_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="12dp"
|
||||
android:text="Currency One"
|
||||
android:textColor="@color/colour_five"
|
||||
android:textSize="18sp" />
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:background="@drawable/round_edit_text"
|
||||
android:ems="10"
|
||||
android:hint="insert value one"
|
||||
android:textColorHighlight="#608d91"
|
||||
android:inputType="numberDecimal"
|
||||
android:padding="12dp"
|
||||
android:selectAllOnFocus="true" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/cardview_theme">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/currency_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="12dp"
|
||||
android:text="Currency Two"
|
||||
android:textColor="@color/colour_five"
|
||||
android:textSize="18sp" />
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editText2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_weight="7"
|
||||
android:background="@drawable/round_edit_text"
|
||||
android:ems="10"
|
||||
android:hint="insert value two"
|
||||
android:textColorHighlight="#608d91"
|
||||
android:inputType="numberDecimal"
|
||||
android:padding="12dp"
|
||||
android:selectAllOnFocus="true" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:indeterminate="true"
|
||||
android:indeterminateTint="@color/colour_four"
|
||||
android:indeterminateTintMode="src_atop" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
56
app/src/main/res/layout/confirm_dialog.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:backgroundTint="@android:color/transparent"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
card_view:cardBackgroundColor="@color/colour_three"
|
||||
card_view:cardCornerRadius="22dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/confirm_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
android:layout_margin="8dp"
|
||||
android:text="Create widget for AUDGBP?"
|
||||
android:textColor="@color/colour_five" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/confirm_yes"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
android:text="@android:string/yes"
|
||||
android:textColor="@color/colour_five" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/confirm_no"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
android:text="@android:string/no"
|
||||
android:textColor="@color/colour_five" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
</LinearLayout>
|
||||
36
app/src/main/res/layout/currency_app_widget.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/widget_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="72dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/exchangeName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginBottom="3dp"
|
||||
android:layout_weight="1"
|
||||
android:autoSizeMaxTextSize="100sp"
|
||||
android:autoSizeMinTextSize="8sp"
|
||||
android:autoSizeStepGranularity="2sp"
|
||||
android:autoSizeTextType="uniform"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
tools:text="AUDGBP" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/exchangeRate"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2"
|
||||
android:autoSizeMaxTextSize="100sp"
|
||||
android:autoSizeMinTextSize="6sp"
|
||||
android:autoSizeStepGranularity="2sp"
|
||||
android:autoSizeTextType="uniform"
|
||||
android:gravity="center"
|
||||
android:textColor="#ffffff"
|
||||
android:textStyle="bold"
|
||||
tools:text="0.56" />
|
||||
</LinearLayout>
|
||||
70
app/src/main/res/layout/currency_app_widget_configure.xml
Normal file
@@ -0,0 +1,70 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_margin="10dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/whole_view">
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/cardview_theme"
|
||||
android:layout_margin="11dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/currency_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="12dp"
|
||||
android:text="Currency One"
|
||||
android:textColor="@color/colour_five"
|
||||
android:textSize="18sp" />
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/cardview_theme"
|
||||
android:layout_margin="11dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/currency_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="12dp"
|
||||
android:text="Currency Two"
|
||||
android:textColor="@color/colour_five"
|
||||
android:textSize="18sp" />
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginRight="22dp"
|
||||
android:id="@+id/submit_widget"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/whole_view"
|
||||
android:layout_alignParentRight="true"
|
||||
android:textColor="@color/colour_five"
|
||||
android:text="Submit" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
43
app/src/main/res/layout/custom_dialog.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:backgroundTint="@android:color/transparent"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
card_view:cardCornerRadius="22dp"
|
||||
card_view:cardBackgroundColor="@color/colour_three"
|
||||
android:layout_marginTop="45dp">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
</ListView>
|
||||
|
||||
</android.support.v7.widget.CardView>
|
||||
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="45dp"
|
||||
android:layout_marginTop="20dp"
|
||||
card_view:cardBackgroundColor="@color/colour_three"
|
||||
card_view:cardCornerRadius="22dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/search_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
android:hint="Search Currency" />
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
</LinearLayout>
|
||||
BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
app/src/main/res/mipmap-hdpi/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
app/src/main/res/mipmap-hdpi/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
app/src/main/res/mipmap-hdpi/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
app/src/main/res/mipmap-hdpi/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/res/mipmap-hdpi/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
10
app/src/main/res/values-v14/dimens.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Refer to App Widget Documentation for margin information
|
||||
http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
|
||||
-->
|
||||
<dimen name="widget_margin">0dp</dimen>
|
||||
|
||||
</resources>
|
||||
12
app/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
|
||||
<color name="colour_one">#253031</color>
|
||||
<color name="colour_two">#315659</color>
|
||||
<color name="colour_three">#2978A0</color>
|
||||
<color name="colour_four">#8549ff</color>
|
||||
<color name="colour_five">#C6E0FF</color>
|
||||
</resources>
|
||||
10
app/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Refer to App Widget Documentation for margin information
|
||||
http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
|
||||
-->
|
||||
<dimen name="widget_margin">8dp</dimen>
|
||||
|
||||
</resources>
|
||||
163
app/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,163 @@
|
||||
<resources>
|
||||
<string name="app_name">easyCC</string>
|
||||
|
||||
<string-array name="currency_arrays">
|
||||
<item>ALL - Albanian Lek</item>
|
||||
<item>AFN - Afghan Afghani</item>
|
||||
<item>DZD - Algerian Dinar</item>
|
||||
<item>AOA - Angolan Kwanza</item>
|
||||
<item>ARS - Argentine Peso</item>
|
||||
<item>AMD - Armenian Dram</item>
|
||||
<item>AWG - Aruban Florin</item>
|
||||
<item>AUD - Australian Dollar</item>
|
||||
<item>AZN - Azerbaijani Manat</item>
|
||||
<item>BSD - Bahamian Dollar</item>
|
||||
<item>BHD - Bahraini Dinar</item>
|
||||
<item>BDT - Bangladeshi Taka</item>
|
||||
<item>BBD - Barbadian Dollar</item>
|
||||
<item>BYR - Belarusian Ruble</item>
|
||||
<item>BZD - Belize Dollar</item>
|
||||
<item>BTN - Bhutanese Ngultrum</item>
|
||||
<item>BTC - Bitcoin</item>
|
||||
<item>BOB - Bolivian Boliviano</item>
|
||||
<item>BAM - Bosnia And Herzegovina Konvertibilna Marka</item>
|
||||
<item>BWP - Botswana Pula</item>
|
||||
<item>BRL - Brazilian Real</item>
|
||||
<item>GBP - British Pound</item>
|
||||
<item>BND - Brunei Dollar</item>
|
||||
<item>BGN - Bulgarian Lev</item>
|
||||
<item>BIF - Burundi Franc</item>
|
||||
<item>KHR - Cambodian Riel</item>
|
||||
<item>CAD - Canadian Dollar</item>
|
||||
<item>CVE - Cape Verdean Escudo</item>
|
||||
<item>KYD - Cayman Islands Dollar</item>
|
||||
<item>XAF - Central African CFA Franc</item>
|
||||
<item>XPF - CFP Franc</item>
|
||||
<item>CLP - Chilean Peso</item>
|
||||
<item>CNY - Chinese Yuan</item>
|
||||
<item>COP - Colombian Peso</item>
|
||||
<item>KMF - Comorian Franc</item>
|
||||
<item>CDF - Congolese Franc</item>
|
||||
<item>CRC - Costa Rican Colon</item>
|
||||
<item>HRK - Croatian Kuna</item>
|
||||
<item>CUP - Cuban Peso</item>
|
||||
<item>CZK - Czech Koruna</item>
|
||||
<item>DKK - Danish Krone</item>
|
||||
<item>DJF - Djiboutian Franc</item>
|
||||
<item>DOP - Dominican Peso</item>
|
||||
<item>XCD - East Caribbean Dollar</item>
|
||||
<item>EGP - Egyptian Pound</item>
|
||||
<item>ERN - Eritrean Nakfa</item>
|
||||
<item>ETB - Ethiopian Birr</item>
|
||||
<item>EUR - Euro</item>
|
||||
<item>FKP - Falkland Islands Pound</item>
|
||||
<item>FJD - Fijian Dollar</item>
|
||||
<item>GMD - Gambian Dalasi</item>
|
||||
<item>GEL - Georgian Lari</item>
|
||||
<item>GHS - Ghanaian Cedi</item>
|
||||
<item>GIP - Gibraltar Pound</item>
|
||||
<item>GTQ - Guatemalan Quetzal</item>
|
||||
<item>GNF - Guinean Franc</item>
|
||||
<item>GYD - Guyanese Dollar</item>
|
||||
<item>HTG - Haitian Gourde</item>
|
||||
<item>HNL - Honduran Lempira</item>
|
||||
<item>HKD - Hong Kong Dollar</item>
|
||||
<item>HUF - Hungarian Forint</item>
|
||||
<item>ISK - Icelandic Kr\u00f3na</item>
|
||||
<item>INR - Indian Rupee</item>
|
||||
<item>IDR - Indonesian Rupiah</item>
|
||||
<item>IRR - Iranian Rial</item>
|
||||
<item>IQD - Iraqi Dinar</item>
|
||||
<item>ILS - Israeli New Sheqel</item>
|
||||
<item>JMD - Jamaican Dollar</item>
|
||||
<item>JPY - Japanese Yen</item>
|
||||
<item>JOD - Jordanian Dinar</item>
|
||||
<item>KZT - Kazakhstani Tenge</item>
|
||||
<item>KES - Kenyan Shilling</item>
|
||||
<item>KWD - Kuwaiti Dinar</item>
|
||||
<item>KGS - Kyrgyzstani Som</item>
|
||||
<item>LAK - Lao Kip</item>
|
||||
<item>LVL - Latvian Lats</item>
|
||||
<item>LBP - Lebanese Lira</item>
|
||||
<item>LSL - Lesotho Loti</item>
|
||||
<item>LRD - Liberian Dollar</item>
|
||||
<item>LYD - Libyan Dinar</item>
|
||||
<item>MOP - Macanese Pataca</item>
|
||||
<item>MKD - Macedonian Denar</item>
|
||||
<item>MGA - Malagasy Ariary</item>
|
||||
<item>MWK - Malawian Kwacha</item>
|
||||
<item>MYR - Malaysian Ringgit</item>
|
||||
<item>MVR - Maldivian Rufiyaa</item>
|
||||
<item>MRO - Mauritanian Ouguiya</item>
|
||||
<item>MUR - Mauritian Rupee</item>
|
||||
<item>MXN - Mexican Peso</item>
|
||||
<item>MDL - Moldovan Leu</item>
|
||||
<item>MNT - Mongolian Tugrik</item>
|
||||
<item>MAD - Moroccan Dirham</item>
|
||||
<item>MZN - Mozambican Metical</item>
|
||||
<item>MMK - Myanma Kyat</item>
|
||||
<item>NAD - Namibian Dollar</item>
|
||||
<item>NPR - Nepalese Rupee</item>
|
||||
<item>ANG - Netherlands Antillean Gulden</item>
|
||||
<item>TWD - New Taiwan Dollar</item>
|
||||
<item>NZD - New Zealand Dollar</item>
|
||||
<item>NIO - Nicaraguan Cordoba</item>
|
||||
<item>NGN - Nigerian Naira</item>
|
||||
<item>KPW - North Korean Won</item>
|
||||
<item>NOK - Norwegian Krone</item>
|
||||
<item>OMR - Omani Rial</item>
|
||||
<item>TOP - Paanga</item>
|
||||
<item>PKR - Pakistani Rupee</item>
|
||||
<item>PAB - Panamanian Balboa</item>
|
||||
<item>PGK - Papua New Guinean Kina</item>
|
||||
<item>PYG - Paraguayan Guarani</item>
|
||||
<item>PEN - Peruvian Nuevo Sol</item>
|
||||
<item>PHP - Philippine Peso</item>
|
||||
<item>PLN - Polish Zloty</item>
|
||||
<item>QAR - Qatari Riyal</item>
|
||||
<item>RON - Romanian Leu</item>
|
||||
<item>RUB - Russian Ruble</item>
|
||||
<item>RWF - Rwandan Franc</item>
|
||||
<item>SHP - Saint Helena Pound</item>
|
||||
<item>WST - Samoan Tala</item>
|
||||
<item>STD - Sao Tome And Principe Dobra</item>
|
||||
<item>SAR - Saudi Riyal</item>
|
||||
<item>RSD - Serbian Dinar</item>
|
||||
<item>SCR - Seychellois Rupee</item>
|
||||
<item>SLL - Sierra Leonean Leone</item>
|
||||
<item>SGD - Singapore Dollar</item>
|
||||
<item>SBD - Solomon Islands Dollar</item>
|
||||
<item>SOS - Somali Shilling</item>
|
||||
<item>ZAR - South African Rand</item>
|
||||
<item>KRW - South Korean Won</item>
|
||||
<item>XDR - Special Drawing Rights</item>
|
||||
<item>LKR - Sri Lankan Rupee</item>
|
||||
<item>SDG - Sudanese Pound</item>
|
||||
<item>SRD - Surinamese Dollar</item>
|
||||
<item>SZL - Swazi Lilangeni</item>
|
||||
<item>SEK - Swedish Krona</item>
|
||||
<item>CHF - Swiss Franc</item>
|
||||
<item>SYP - Syrian Pound</item>
|
||||
<item>TJS - Tajikistani Somoni</item>
|
||||
<item>TZS - Tanzanian Shilling</item>
|
||||
<item>THB - Thai Baht</item>
|
||||
<item>TTD - Trinidad and Tobago Dollar</item>
|
||||
<item>TND - Tunisian Dinar</item>
|
||||
<item>TRY - Turkish New Lira</item>
|
||||
<item>TMT - Turkmenistan Manat</item>
|
||||
<item>AED - UAE Dirham</item>
|
||||
<item>UGX - Ugandan Shilling</item>
|
||||
<item>UAH - Ukrainian Hryvnia</item>
|
||||
<item>USD - United States Dollar</item>
|
||||
<item>UYU - Uruguayan Peso</item>
|
||||
<item>UZS - Uzbekistani Som</item>
|
||||
<item>VUV - Vanuatu Vatu</item>
|
||||
<item>VEF - Venezuelan Bolivar</item>
|
||||
<item>VND - Vietnamese Dong</item>
|
||||
<item>XOF - West African CFA Franc</item>
|
||||
<item>YER - Yemeni Rial</item>
|
||||
<item>ZMW - Zambian Kwacha</item>
|
||||
</string-array>
|
||||
<string name="configure">Configure</string>
|
||||
<string name="add_widget">Add widget</string>
|
||||
</resources>
|
||||
32
app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colour_two</item>
|
||||
<item name="colorPrimaryDark">@color/colour_two</item>
|
||||
<item name="colorAccent">@color/colour_two</item>
|
||||
<item name="android:windowBackground">@drawable/gradient_colour</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="android:editTextColor">@color/colour_five</item>
|
||||
<item name="android:textColorPrimary">@color/colour_five</item>
|
||||
</style>
|
||||
|
||||
<style name="cardview_theme" parent="CardView">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
<item name="cardBackgroundColor">@color/colour_three</item>
|
||||
<item name="cardCornerRadius">22dp</item>
|
||||
<!--<item name="cardElevation">0dp</item>-->
|
||||
</style>
|
||||
|
||||
<style name="edittext_theme">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:ems">10</item>
|
||||
<item name="android:inputType">numberDecimal</item>
|
||||
<item name="android:selectAllOnFocus">true</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
15
app/src/main/res/xml/currency_app_widget_info.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:configure="com.appttude.h_mal.easycc.CurrencyAppWidgetConfigureActivity"
|
||||
android:initialKeyguardLayout="@layout/currency_app_widget"
|
||||
android:initialLayout="@layout/currency_app_widget"
|
||||
android:minHeight="40dp"
|
||||
android:minWidth="110dp"
|
||||
android:minResizeHeight="40dp"
|
||||
android:minResizeWidth="40dp"
|
||||
android:previewImage="@drawable/easyycc_widget_preview"
|
||||
android:resizeMode="horizontal"
|
||||
android:updatePeriodMillis="86400000"
|
||||
android:widgetCategory="home_screen">
|
||||
|
||||
</appwidget-provider>
|
||||