Skip to content

Commit

Permalink
Merge pull request #2 from chimdi2000/malaria-setup-screen
Browse files Browse the repository at this point in the history
Malaria setup screen
  • Loading branch information
rosariorobinson committed Mar 9, 2015
2 parents 8e32fdf + ff101c6 commit 395bb31
Show file tree
Hide file tree
Showing 32 changed files with 2,655 additions and 440 deletions.
23 changes: 12 additions & 11 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.viewpagertest"
package="com.peacecorps.malaria"
android:installLocation="internalOnly"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="11"
android:minSdkVersion="14"
android:targetSdkVersion="19" />

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.INTERNET"/>

<application

android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:theme="@android:style/Theme.Holo.Light.DarkActionBar" >
<service android:name="com.peacecorps.malaria.AlarmService" >
</service>

Expand All @@ -30,15 +32,15 @@
</receiver>
<receiver
android:name="com.peacecorps.malaria.AlarmHandlerClass"
android:exported="true" >
android:exported="false" >
<intent-filter>
<action android:name="com.example.viewpagertest.START_ALARM" />
<action android:name="com.peacecorps.malaria.START_ALARM" />

</intent-filter>
</receiver>

<activity
android:name="com.peacecorps.malaria.UserMedicineSettingsFragment"
android:name="com.peacecorps.malaria.UserMedicineSettingsFragmentActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -58,10 +60,9 @@
</action>
</intent-filter>
</activity>
<activity
android:name="com.peacecorps.malaria.AlertDialogFragment"
android:label="@string/app_name" >
</activity>
<activity android:name="com.peacecorps.malaria.InfoHubFragmentActivity"/>

<activity android:name="com.peacecorps.malaria.PeaceCorpsPolicyFragmentActivity"/>
</application>

</manifest>
Binary file added libs/GraphView-3.1.2.jar
Binary file not shown.
5 changes: 2 additions & 3 deletions project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-16
android.library.reference.1=..\\appcompat_v7_3
android.library.reference.2=../ViewPagerIndicator
target=android-19
android.library.reference.1=../ViewPagerIndicator
Binary file modified res/drawable/peace_corps_logo_normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 63 additions & 36 deletions res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,58 +1,85 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"

android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:background="@drawable/background"
android:orientation="vertical" >
android:layout_gravity="center"

>


<android.support.v4.view.ViewPager

<android.support.v4.view.ViewPager
android:id="@+id/vPager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
android:layout_weight="1"
/>


<com.viewpagerindicator.CirclePageIndicator

android:id="@+id/vIndicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dip"
android:textColor="@color/view_pager_indicator_text_color"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:textColor="#2FB3E3"

app:footerLineHeight="1dp"
app:footerIndicatorHeight="3dp"
app:footerIndicatorStyle="underline"
app:footerLineHeight="1dp"
app:selectedColor="#FFFFFF"
app:selectedBold="true"
app:selectedColor="@color/white" />
/>

<View


<View
android:layout_height="0.5dp"
android:layout_width="200dp"
android:layout_height="0.5dp"
android:background="#000000"
android:layout_gravity="center_horizontal"
android:background="@color/black" />


/>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
android:orientation="horizontal"
android:paddingBottom="5dp" >

<Button
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:adjustViewBounds="true"
android:background="@drawable/home_icon_normal"
android:scaleType="fitCenter" />
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
android:paddingBottom="5dp"



>

<Button
android:id="@+id/homeButton"

android:background="@drawable/home_icon_normal"
android:layout_width="30dp"
android:layout_height="30dp"
android:adjustViewBounds="true"
android:layout_marginRight="15dp"
android:scaleType="fitCenter"

/>


<Button
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="15dp"
android:adjustViewBounds="true"
android:background="@drawable/info_hub_inactive_normal"
android:scaleType="fitCenter" />
</LinearLayout>
android:background="@drawable/info_hub_inactive_normal"
android:id="@+id/infoButton"
android:layout_width="30dp"
android:layout_height="30dp"
android:adjustViewBounds="true"
android:layout_marginLeft="15dp"
android:scaleType="fitCenter"
/>

</LinearLayout>
</LinearLayout>
</LinearLayout>
23 changes: 0 additions & 23 deletions res/layout/activity_welcomeactivity.xml

This file was deleted.

Loading

0 comments on commit 395bb31

Please sign in to comment.