Permalink
Browse files

initial commit

  • Loading branch information...
sergkh committed Oct 8, 2012
0 parents commit a813e5a899dd2834a68f6ed0e758e35831f98449
@@ -0,0 +1,30 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="ua.stldev.pharm"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk
+ android:minSdkVersion="9"
+ android:targetSdkVersion="15" />
+
+ <application
+ android:icon="@drawable/ic_launcher"
+ android:label="@string/app_name"
+ android:theme="@style/AppTheme" >
+
+ <activity
+ android:name=".ItemsSearchActivity"
+ android:label="@string/title_activity_drugs_search" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ <activity
+ android:name=".AddItemActivity"
+ android:label="@string/title_activity_view_drugs" >
+ </activity>
+ </application>
+
+</manifest>
Binary file not shown.
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-14
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,81 @@
+<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" >
+
+ <TextView
+ android:id="@+id/titleTv"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginLeft="16dp"
+ android:layout_marginTop="76dp"
+ android:text="@string/title" />
+
+ <EditText
+ android:id="@+id/titleEdit"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignBaseline="@+id/titleTv"
+ android:layout_alignBottom="@+id/titleTv"
+ android:layout_alignParentRight="true"
+ android:layout_marginRight="21dp"
+ android:ems="10"
+ android:inputType="textNoSuggestions"
+ android:singleLine="true" >
+
+ <requestFocus />
+ </EditText>
+
+ <TextView
+ android:id="@+id/GroupTv"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignRight="@+id/titleTv"
+ android:layout_below="@+id/titleEdit"
+ android:layout_marginTop="31dp"
+ android:text="@string/group" />
+
+ <TextView
+ android:id="@+id/shelfTv"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignRight="@+id/GroupTv"
+ android:layout_below="@+id/GroupTv"
+ android:layout_marginTop="38dp"
+ android:text="@string/shelf" />
+
+ <EditText
+ android:id="@+id/groupEdit"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignBaseline="@+id/GroupTv"
+ android:layout_alignBottom="@+id/GroupTv"
+ android:layout_alignLeft="@+id/titleEdit"
+ android:ems="10"
+ android:inputType="textNoSuggestions"
+ android:singleLine="true" />
+
+ <EditText
+ android:id="@+id/shelfEdit"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignBaseline="@+id/shelfTv"
+ android:layout_alignBottom="@+id/shelfTv"
+ android:layout_alignLeft="@+id/groupEdit"
+ android:ems="10"
+ android:inputType="textNoSuggestions"
+ android:singleLine="true" />
+
+ <Button
+ android:id="@+id/addItemButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@+id/shelfEdit"
+ android:layout_centerHorizontal="true"
+ android:layout_marginTop="42dp"
+ android:onClick="add"
+ android:text="@string/addBtn" />
+
+</RelativeLayout>
@@ -0,0 +1,34 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical" >
+
+ <LinearLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal" >
+
+ <EditText
+ android:id="@+id/searchField"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:hint="@string/search_hint"
+ android:singleLine="true" />
+
+ <Button
+ android:id="@+id/searchBtn"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:onClick="search"
+ android:text="@string/search_btn" />
+ </LinearLayout>
+
+ <ListView
+ android:id="@+id/foundItemsList"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ tools:listitem="@android:layout/simple_list_item_2" />
+
+</LinearLayout>
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="horizontal"
+ android:padding="8dp" >
+
+ <TextView
+ android:id="@+id/titleTw"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textStyle="bold" />
+
+ <TextView
+ android:id="@+id/groupTw"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="6dp"
+ android:layout_toRightOf="@id/titleTw" />
+
+ <TextView
+ android:id="@+id/shelfTw"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/groupTw" />
+
+</RelativeLayout>
@@ -0,0 +1,53 @@
+<?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:orientation="vertical" >
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <TextView
+ android:id="@+id/dlgGroupsTv"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginLeft="22dp" />
+
+ <TextView
+ android:id="@+id/dlgShelfTv"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginRight="22dp" />
+
+ </RelativeLayout>
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <Button
+ android:id="@+id/cancelBtn"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginRight="22dp"
+ android:text="@string/cancel" />
+
+ <Button
+ android:id="@+id/removeItemBtn"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginLeft="22dp"
+ android:text="@string/remove" />
+
+ </RelativeLayout>
+
+</LinearLayout>
@@ -0,0 +1,8 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:id="@+id/add_menu_item"
+ android:showAsAction="ifRoom"
+ android:title="@string/add"
+ android:orderInCategory="10" />
+
+</menu>
@@ -0,0 +1,3 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/back_menu_item" android:showAsAction="ifRoom" android:title="@string/back"></item>
+</menu>
@@ -0,0 +1,23 @@
+<sql>
+<statement>
+CREATE TABLE IF NOT EXISTS items (
+ _id INTEGER PRIMARY KEY AUTOINCREMENT,
+ title VARCHAR(50),
+ groups VARCHAR(50),
+ shelf VARCHAR(20))
+</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Ryan','Howard','1')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Michael','Scott','2')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Dwight','Schrute','2')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Jim','Halpert','2')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Pamela','Beesly','2')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Angela','Martin','1')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Kevin','Malone','3')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Oscar','Martinez','1')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Creed','Bratton','2')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Andy','Bernard','1')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Phyllis','Lapin','4')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Stanley','Hudson','1')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Meredith','Palmer','3')</statement>
+<statement>INSERT INTO items (title, groups, shelf) VALUES('Kelly','Kapoor','4')</statement>
+</sql>
@@ -0,0 +1,5 @@
+<resources>
+
+ <style name="AppTheme" parent="android:Theme.Holo.Light" />
+
+</resources>
@@ -0,0 +1,5 @@
+<resources>
+
+ <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" />
+
+</resources>
@@ -0,0 +1,19 @@
+<resources>
+
+ <string name="app_name">pharm</string>
+ <string name="menu_settings">Settings</string>
+ <string name="title_activity_drugs_search">Drug List</string>
+ <string name="search_hint">Search Item</string>
+ <string name="search_btn">Search</string>
+ <string name="title_activity_view_drugs">Add drug</string>
+ <string name="title_activity_search">SearchActivity</string>
+ <string name="add">Add+</string>
+ <string name="back">&lt; Back</string>
+ <string name="addBtn">Add</string>
+ <string name="title">Title</string>
+ <string name="group">Group</string>
+ <string name="shelf">Shelf</string>
+ <string name="remove">Remove</string>
+ <string name="cancel">Cancel</string>
+
+</resources>
@@ -0,0 +1,5 @@
+<resources>
+
+ <style name="AppTheme" parent="android:Theme.Light" />
+
+</resources>
Oops, something went wrong.

0 comments on commit a813e5a

Please sign in to comment.