Add original project.
BIN
app/src/main/res/drawable-hdpi/dr_face_straight2_circle.png
Executable file
After Width: | Height: | Size: 6.9 KiB |
BIN
app/src/main/res/drawable-hdpi/dr_face_straight2_square.png
Executable file
After Width: | Height: | Size: 9.1 KiB |
BIN
app/src/main/res/drawable-hdpi/figsy_grass_circle_full.png
Executable file
After Width: | Height: | Size: 72 KiB |
BIN
app/src/main/res/drawable-hdpi/figsy_grass_circle_medium.png
Executable file
After Width: | Height: | Size: 31 KiB |
BIN
app/src/main/res/drawable-hdpi/figsy_grass_circle_small.png
Executable file
After Width: | Height: | Size: 9.3 KiB |
BIN
app/src/main/res/drawable-hdpi/figsy_grass_full.jpg
Executable file
After Width: | Height: | Size: 32 KiB |
BIN
app/src/main/res/drawable-hdpi/ic_launcher.png
Executable file
After Width: | Height: | Size: 9.2 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_launcher.png
Executable file
After Width: | Height: | Size: 5.1 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_launcher.png
Executable file
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_launcher.png
Executable file
After Width: | Height: | Size: 19 KiB |
94
app/src/main/res/layout/activity_home.xml
Executable file
@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
tools:context="com.hyperling.carbupbeta.Home"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:weightSum="1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_weight=".45"
|
||||
android:weightSum="1">
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight=".5"
|
||||
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
||||
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/activity_vertical_margin"
|
||||
android:background="@color/colorAccent"
|
||||
android:text="Carb Calculator"
|
||||
android:textColor="@color/textAccentInverse"
|
||||
android:textAllCaps="false"
|
||||
android:id="@+id/btnCarbCalc"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight=".5"
|
||||
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
||||
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/activity_vertical_margin"
|
||||
android:background="@color/colorPrimary"
|
||||
android:text="Calculator Help"
|
||||
android:textColor="@color/textPrimaryInverse"
|
||||
android:textAllCaps="false"
|
||||
android:id="@+id/btnCalcHelp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_weight=".45"
|
||||
android:weightSum="1">
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight=".5"
|
||||
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
||||
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/activity_vertical_margin"
|
||||
android:background="@color/colorPrimary"
|
||||
android:text="Why High Carb?"
|
||||
android:textColor="@color/textPrimaryInverse"
|
||||
android:textAllCaps="false"
|
||||
android:id="@+id/btnWhyHCLF"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight=".5"
|
||||
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
||||
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/activity_vertical_margin"
|
||||
android:background="@color/colorAccent"
|
||||
android:text="Why Vegan?"
|
||||
android:textColor="@color/textAccentInverse"
|
||||
android:textAllCaps="false"
|
||||
android:id="@+id/btnWhyVegan"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/adViewHome"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight=".1"
|
||||
ads:adSize="BANNER"
|
||||
ads:adUnitId="@string/banner_ad_home">
|
||||
</com.google.android.gms.ads.AdView>
|
||||
|
||||
</LinearLayout>
|
55
app/src/main/res/layout/activity_splash.xml
Executable file
@ -0,0 +1,55 @@
|
||||
<RelativeLayout 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:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
tools:context=".Splash">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="25dp"
|
||||
android:id="@+id/txtSpace"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/txtAppVersion"
|
||||
android:text="@string/version_number"
|
||||
android:textSize="32sp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_above="@id/txtSpace"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/app_name_short"
|
||||
android:textSize="60sp"
|
||||
android:id="@+id/txtAppName"
|
||||
android:layout_above="@+id/txtAppVersion"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
<ProgressBar
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:id="@+id/pbCircle"
|
||||
android:layout_below="@+id/txtSpace"/>
|
||||
|
||||
<!-- If the splash screen ever does anything, this will change with @strings -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Loading..."
|
||||
android:textSize="24sp"
|
||||
android:id="@+id/txtLoadStatus"
|
||||
android:layout_below="@+id/pbCircle"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
</RelativeLayout>
|
41
app/src/main/res/layout/list.xml
Executable file
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal" android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="5dp">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/delete_button"
|
||||
android:id="@+id/delete_btn"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/edit_button"
|
||||
android:id="@+id/edit_btn"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:id="@+id/radio_btn"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_toLeftOf="@+id/radio_btn"
|
||||
android:layout_toStartOf="@+id/radio_btn"
|
||||
android:id="@+id/item_btn"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
23
app/src/main/res/layout/list_item.xml
Executable file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal" android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/delete_button"
|
||||
android:id="@+id/delete_btn"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/edit_button"
|
||||
android:id="@+id/edit_btn"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/item_btn"/>
|
||||
|
||||
</LinearLayout>
|
33
app/src/main/res/layout/main.xml
Executable file
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TabHost
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/title"
|
||||
android:id="@android:id/tabhost">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TabWidget
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@android:id/tabs"/>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@android:id/tabcontent"
|
||||
android:layout_below="@android:id/tabs"
|
||||
android:padding="7dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</TabHost>
|
||||
|
||||
</RelativeLayout>
|
53
app/src/main/res/layout/my_settings.xml
Executable file
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:id="@+id/version"
|
||||
android:text="@string/version_number"
|
||||
android:textSize="18sp"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="false"
|
||||
android:layout_above="@+id/version"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:id="@+id/app"
|
||||
android:text="@string/app_name_long"
|
||||
android:textSize="18sp"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="false"
|
||||
android:layout_above="@+id/app"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:id="@+id/author"
|
||||
android:text="@string/author"
|
||||
android:textSize="24sp"/>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentTop="false"
|
||||
android:layout_above="@id/author">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/settingsArea" />
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</RelativeLayout>
|
99
app/src/main/res/layout/tab1.xml
Executable file
@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/list_header"
|
||||
android:textSize="20sp"/>
|
||||
|
||||
<EditText
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/etListName"
|
||||
android:hint="@string/list_name_hint"
|
||||
android:capitalize="words"
|
||||
android:inputType="textCapWords"/>
|
||||
|
||||
<!-- The following items are assigned @strings in Tab1.java -->
|
||||
<TableLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TableRow>
|
||||
<TextView
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:gravity="start"
|
||||
android:text="Testing "
|
||||
android:textSize="20sp"
|
||||
android:id="@+id/leftEditView"/>
|
||||
<TextView
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:gravity="start"
|
||||
android:text="Test List"
|
||||
android:textSize="20sp"
|
||||
android:id="@+id/rightEditView"/>
|
||||
<TextView
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"/>
|
||||
<Button
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:id="@+id/btnAddToList"
|
||||
android:text="Test"
|
||||
android:textSize="18sp"/>
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="Test:"
|
||||
android:textSize="24sp"
|
||||
android:id="@+id/selectListHeader"/>
|
||||
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/adView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
ads:adSize="BANNER"
|
||||
android:visibility="gone"
|
||||
ads:adUnitId="@string/banner_ad_tab1">
|
||||
</com.google.android.gms.ads.AdView>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_above="@+id/adView">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/tab1ListArea"/>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
128
app/src/main/res/layout/tab2.xml
Executable file
@ -0,0 +1,128 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/item_header"
|
||||
android:textSize="20sp"/>
|
||||
|
||||
<TableLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TableRow>
|
||||
<!-- First row data entry -->
|
||||
<EditText
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="5"
|
||||
android:capitalize="words"
|
||||
android:inputType="textCapWords"
|
||||
android:id="@+id/etItemName"
|
||||
android:hint="@string/item_name_hint"/>
|
||||
<EditText
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:inputType="numberDecimal"
|
||||
android:id="@+id/etItemCost"
|
||||
android:hint="@string/item_cost_hint" />
|
||||
|
||||
<EditText
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:inputType="numberDecimal"
|
||||
android:id="@+id/etItemServs"
|
||||
android:hint="@string/item_servings_hint"/>
|
||||
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
<EditText
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:inputType="numberDecimal"
|
||||
android:id="@+id/etItemCals"
|
||||
android:hint="@string/item_calories_hint"/>
|
||||
|
||||
<EditText
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:inputType="numberDecimal"
|
||||
android:id="@+id/etItemCarbs"
|
||||
android:hint="@string/item_carbs_hint" />
|
||||
|
||||
<EditText
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:inputType="numberDecimal"
|
||||
android:id="@+id/etItemFiber"
|
||||
android:hint="@string/item_fiber_hint" />
|
||||
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
<Button
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:id="@+id/btnClear"
|
||||
android:text="@string/item_clear_button"
|
||||
android:textSize="18sp"/>
|
||||
<TextView
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
<!-- Text is set with @string in Tab2.java -->
|
||||
<Button
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:id="@+id/btnAddToList"
|
||||
android:text="Test"
|
||||
android:textSize="18sp"/>
|
||||
</TableRow>
|
||||
|
||||
</TableLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/adView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
ads:adSize="BANNER"
|
||||
android:visibility="gone"
|
||||
ads:adUnitId="@string/banner_ad_tab2">
|
||||
</com.google.android.gms.ads.AdView>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_above="@+id/adView">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/layTab2ListArea"
|
||||
android:isScrollContainer="true"/>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
50
app/src/main/res/layout/testing.xml
Executable file
@ -0,0 +1,50 @@
|
||||
<?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:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:id="@+id/settingName"
|
||||
android:text="Quick Boot:"
|
||||
android:textSize="24sp"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/settingName"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:id="@+id/settingDescription"
|
||||
android:text="Skip the splash screen"
|
||||
android:textSize="18sp"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="5dp"
|
||||
android:id="@+id/checkBox"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
13
app/src/main/res/menu/menu_home.xml
Executable file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu 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"
|
||||
tools:context="com.hyperling.carbupbeta.Home">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_exit"
|
||||
android:orderInCategory="999"
|
||||
android:title="Exit"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
11
app/src/main/res/values-v21/styles.xml
Executable file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="android:navigationBarColor">?android:attr/colorPrimaryDark</item>
|
||||
</style>
|
||||
</resources>
|
6
app/src/main/res/values-w820dp/dimens.xml
Executable file
@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
8
app/src/main/res/values/colors.xml
Executable file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#CCCC00</color>
|
||||
<color name="colorPrimaryDark">#333333</color>
|
||||
<color name="colorAccent">#330066</color>
|
||||
<color name="textPrimaryInverse">#FFFFFF</color>
|
||||
<color name="textAccentInverse">#FFFFFF</color>
|
||||
</resources>
|
5
app/src/main/res/values/dimens.xml
Executable file
@ -0,0 +1,5 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
</resources>
|
65
app/src/main/res/values/strings.xml
Executable file
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">Carb Up! BETA</string>
|
||||
<string name="app_name_long">Carb Up! CTFU Helper</string>
|
||||
<string name="app_name_short">Carb Up!</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="title_activity_main">Main</string>
|
||||
<string name="version_name">-=Version Banana=-</string>
|
||||
<string name="version_number">-=Beta v0.10=-</string>
|
||||
|
||||
<string name="author">Hyperling</string>
|
||||
|
||||
<!-- Tab1 Views -->
|
||||
|
||||
<string name="list_header">Create a New List:</string>
|
||||
<string name="list_name_hint">List Name</string>
|
||||
|
||||
<string name="list_editing">Editing </string>
|
||||
|
||||
<string name="list_create_button_insert">Create</string>
|
||||
<string name="list_create_button_update">Rename</string>
|
||||
|
||||
<string name="list_select_header">Click on a List\'s Name:</string>
|
||||
|
||||
<!-- Tab2 Views -->
|
||||
|
||||
<string name="item_header">Create a New Item:</string>
|
||||
<string name="item_create_button_insert">Add</string>
|
||||
<string name="item_create_button_update">Update</string>
|
||||
|
||||
<string name="item_name_hint">Item Name</string>
|
||||
<string name="item_cost_hint">Cost ($)</string>
|
||||
<string name="item_servings_hint">Servings</string>
|
||||
<string name="item_calories_hint">Calories per Serving</string>
|
||||
<string name="item_carbs_hint">Carbs (g)</string>
|
||||
<string name="item_fiber_hint">Fiber (g)</string>
|
||||
|
||||
<string name="item_clear_button">Clear</string>
|
||||
|
||||
<!-- Settings -->
|
||||
|
||||
|
||||
<!-- Shared -->
|
||||
|
||||
<string name="delete_button">X</string>
|
||||
<string name="edit_button">Edit</string>
|
||||
|
||||
<string name="delete_dialog_title">Are you sure?</string>
|
||||
<string name="delete_dialog_list_message">This will delete the list permanently.</string>
|
||||
<string name="delete_dialog_item_message">This will delete the item permanently.</string>
|
||||
<string name="delete_dialog_ok">Delete</string>
|
||||
<string name="delete_dialog_cancel">Cancel</string>
|
||||
|
||||
<!-- Ads -->
|
||||
|
||||
<string name="banner_ad_unit_id">ca-app-pub-9712416021907617/1895014881</string>
|
||||
<string name="banner_ad_tab1">ca-app-pub-9712416021907617/1895014881</string>
|
||||
<string name="banner_ad_tab2">ca-app-pub-9712416021907617/6325214486</string>
|
||||
<string name="banner_ad_home">ca-app-pub-9712416021907617/4055112081</string>
|
||||
<string name="interstitial_ad_splash">ca-app-pub-9712416021907617/9278680882</string>
|
||||
<string name="title_activity_home">Home</string>
|
||||
|
||||
|
||||
</resources>
|
17
app/src/main/res/values/styles.xml
Executable file
@ -0,0 +1,17 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="android:colorForeground">@color/colorPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
</resources>
|