Skip to content

Commit ebc50ac

Browse files
committed
first commit
0 parents  commit ebc50ac

17 files changed

+473
-0
lines changed

.classpath

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
5+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7+
<classpathentry kind="output" path="bin/classes"/>
8+
</classpath>

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# built application files
2+
*.apk
3+
*.ap_
4+
5+
# files for the dex VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# generated files
12+
bin/
13+
gen/
14+
15+
# Local configuration file (sdk path, etc)
16+
local.properties

.project

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>optometria1</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

AndroidManifest.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="net.cassiolandim.yuri1"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk android:minSdkVersion="10" />
8+
9+
<application
10+
android:icon="@drawable/ic_launcher"
11+
android:label="@string/app_name"
12+
android:theme="@android:style/Theme.Light.NoTitleBar" >
13+
<activity
14+
android:name=".MainActivity"
15+
android:label="@string/app_name"
16+
android:screenOrientation="landscape">
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
<category android:name="android.intent.category.LAUNCHER" />
20+
</intent-filter>
21+
</activity>
22+
<activity android:name=".InstrucoesActivity" />
23+
</application>
24+
</manifest>

README.md

Whitespace-only changes.

proguard-project.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# To enable ProGuard in your project, edit project.properties
2+
# to define the proguard.config property as described in that file.
3+
#
4+
# Add project specific ProGuard rules here.
5+
# By default, the flags in this file are appended to flags specified
6+
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7+
# You can edit the include path and order by changing the ProGuard
8+
# include property in project.properties.
9+
#
10+
# For more details, see
11+
# http://developer.android.com/guide/developing/tools/proguard.html
12+
13+
# Add any project specific keep options here:
14+
15+
# If your project uses WebView with JS, uncomment the following
16+
# and specify the fully qualified class name to the JavaScript interface
17+
# class:
18+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19+
# public *;
20+
#}

project.properties

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=Google Inc.:Google APIs:10

res/drawable-hdpi/ic_launcher.png

9.18 KB
Loading

res/drawable-ldpi/ic_launcher.png

2.67 KB
Loading

res/drawable-mdpi/ic_launcher.png

5.11 KB
Loading

res/drawable-xhdpi/ic_launcher.png

14 KB
Loading

res/layout/instrucoes.xml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:orientation="vertical"
6+
android:background="#FFF">
7+
<LinearLayout
8+
android:layout_width="fill_parent"
9+
android:layout_height="0dp"
10+
android:orientation="vertical"
11+
android:layout_weight="1"
12+
android:gravity="center">
13+
14+
<TextView
15+
android:layout_width="fill_parent"
16+
android:layout_height="wrap_content"
17+
android:paddingTop="15dp"
18+
android:gravity="center"
19+
android:text="Instruções"
20+
android:textSize="18dp"
21+
android:textStyle="bold" />
22+
23+
<ScrollView
24+
android:layout_width="fill_parent"
25+
android:layout_height="0dp"
26+
android:layout_weight="1">
27+
<TextView
28+
android:layout_width="fill_parent"
29+
android:layout_height="wrap_content"
30+
android:padding="15dp"
31+
android:gravity="center"
32+
android:text="@string/instrucoes"
33+
android:textColor="#000"
34+
android:textSize="16dp" />
35+
</ScrollView>
36+
37+
</LinearLayout>
38+
<LinearLayout
39+
android:layout_width="fill_parent"
40+
android:layout_height="wrap_content"
41+
android:orientation="horizontal"
42+
android:gravity="center">
43+
44+
<Button
45+
android:id="@+id/voltar"
46+
android:layout_width="wrap_content"
47+
android:layout_height="wrap_content"
48+
android:text="Voltar" />
49+
</LinearLayout>
50+
</LinearLayout>

res/layout/main.xml

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:orientation="vertical"
6+
android:background="#FFF">
7+
<LinearLayout
8+
android:layout_width="fill_parent"
9+
android:layout_height="0dp"
10+
android:orientation="horizontal"
11+
android:layout_weight="1"
12+
android:gravity="center">
13+
14+
<LinearLayout
15+
android:layout_width="wrap_content"
16+
android:layout_height="fill_parent"
17+
android:orientation="vertical"
18+
android:gravity="right|center_vertical">
19+
20+
<TextView
21+
android:id="@+id/primeira"
22+
android:layout_width="wrap_content"
23+
android:layout_height="wrap_content"
24+
android:layout_marginRight="2mm"
25+
android:gravity="right|center_vertical"
26+
android:text="PAN"
27+
android:textColor="#0F0"
28+
android:textSize="2.75mm"
29+
android:textStyle="bold" />
30+
31+
<TextView
32+
android:id="@+id/primeiroNum"
33+
android:layout_width="wrap_content"
34+
android:layout_height="wrap_content"
35+
android:layout_marginRight="1mm"
36+
android:gravity="right|center_vertical"
37+
android:text="123+"
38+
android:textColor="#0F0"
39+
android:textSize="2mm" />
40+
</LinearLayout>
41+
42+
<LinearLayout
43+
android:layout_width="wrap_content"
44+
android:layout_height="fill_parent"
45+
android:orientation="vertical"
46+
android:gravity="left|center_vertical">
47+
48+
<TextView
49+
android:id="@+id/segunda"
50+
android:layout_width="wrap_content"
51+
android:layout_height="wrap_content"
52+
android:layout_marginLeft="2mm"
53+
android:gravity="left|center_vertical"
54+
android:text="ELA"
55+
android:textColor="#F00"
56+
android:textSize="2.75mm"
57+
android:textStyle="bold" />
58+
59+
<TextView
60+
android:id="@+id/segundoNum"
61+
android:layout_width="wrap_content"
62+
android:layout_height="wrap_content"
63+
android:layout_marginLeft="1mm"
64+
android:gravity="left|center_vertical"
65+
android:text="+456"
66+
android:textColor="#F00"
67+
android:textSize="2mm" />
68+
</LinearLayout>
69+
70+
</LinearLayout>
71+
<LinearLayout
72+
android:layout_width="fill_parent"
73+
android:layout_height="wrap_content"
74+
android:orientation="horizontal"
75+
android:gravity="center">
76+
77+
<Button
78+
android:id="@+id/instrucoes"
79+
android:layout_width="wrap_content"
80+
android:layout_height="wrap_content"
81+
android:text="Ajuda" />
82+
83+
<Button
84+
android:id="@+id/proxima"
85+
android:layout_width="wrap_content"
86+
android:layout_height="wrap_content"
87+
android:text="Próxima" />
88+
89+
<EditText
90+
android:id="@+id/palavra"
91+
android:hint="digite aqui"
92+
android:layout_width="wrap_content"
93+
android:layout_height="wrap_content"
94+
android:inputType="text"/>
95+
96+
<Button
97+
android:id="@+id/enviar"
98+
android:layout_width="wrap_content"
99+
android:layout_height="wrap_content"
100+
android:text="Enviar" />
101+
</LinearLayout>
102+
</LinearLayout>

res/values/arrays.xml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<array name="palavras">
4+
<item>casa</item>
5+
<item>bola</item>
6+
<item>podre</item>
7+
<item>teste</item>
8+
<item>treze</item>
9+
<item>peixe</item>
10+
<item>zebra</item>
11+
<item>sempre</item>
12+
<item>panela</item>
13+
<item>escuta</item>
14+
<item>novela</item>
15+
<item>novena</item>
16+
<item>ouvido</item>
17+
<item>senhor</item>
18+
<item>dezena</item>
19+
<item>postal</item>
20+
<item>seguro</item>
21+
<item>camada</item>
22+
<item>nociva</item>
23+
<item>exposto</item>
24+
<item>durante</item>
25+
<item>natural</item>
26+
<item>destino</item>
27+
<item>amarelo</item>
28+
<item>senhora</item>
29+
<item>leitura</item>
30+
<item>emitido</item>
31+
<item>utilize</item>
32+
<item>incolor</item>
33+
<item>viseira</item>
34+
<item>telhado</item>
35+
<item>compota</item>
36+
<item>garantia</item>
37+
<item>material</item>
38+
<item>cegueira</item>
39+
</array>
40+
</resources>

res/values/strings.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="app_name">Optometria 1</string>
4+
<string name="instrucoes">Após iniciar o aplicativo, o paciente deve posicionar a tela a uma distancia de 33cm dos olhos, colocar os óculos vermelho e azul.
5+
Ao observar a palavra separada na tela, o paciente deve unir as duas partes da palavra fazendo movimento de convergência (movimento de ambos os olhos para dentro) até que veja uma única palavra, em seguida digitar ele deve digitar a palavra lida no campo abaixo e pressionar o botão \'Enviar\'. Caso o paciente apresente dificuldade em visualizar a palavra, ele pode avançar para a próxima palavra pressionando o botão \'Próxima\'.</string>
6+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package net.cassiolandim.yuri1;
2+
3+
import android.app.Activity;
4+
import android.os.Bundle;
5+
import android.view.View;
6+
import android.view.View.OnClickListener;
7+
import android.widget.Button;
8+
9+
public class InstrucoesActivity extends Activity {
10+
11+
private Button voltar;
12+
13+
@Override
14+
public void onCreate(Bundle savedInstanceState) {
15+
super.onCreate(savedInstanceState);
16+
setContentView(R.layout.instrucoes);
17+
18+
voltar = (Button) findViewById(R.id.voltar);
19+
20+
voltar.setOnClickListener(new OnClickListener() {
21+
@Override
22+
public void onClick(View v) {
23+
finish();
24+
}
25+
});
26+
}
27+
}

0 commit comments

Comments
 (0)