Skip to content

Commit 349d5c1

Browse files
Initial commit
1 parent ff62bd8 commit 349d5c1

32 files changed

+662
-0
lines changed

SimpleList/.classpath

Lines changed: 8 additions & 0 deletions
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="lib" path="libs/android-support-v4.jar"/>
7+
<classpathentry kind="output" path="bin/classes"/>
8+
</classpath>

SimpleList/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin

SimpleList/.project

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>SimpleList</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>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3+
org.eclipse.jdt.core.compiler.compliance=1.5
4+
org.eclipse.jdt.core.compiler.source=1.5

SimpleList/AndroidManifest.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.survivingwithandroid.listview.SimpleList"
3+
android:versionCode="1"
4+
android:versionName="1.0" >
5+
6+
<uses-sdk
7+
android:minSdkVersion="8"
8+
android:targetSdkVersion="15" />
9+
10+
<application
11+
android:icon="@drawable/ic_launcher"
12+
android:label="@string/app_name"
13+
android:theme="@style/AppTheme" >
14+
<activity
15+
android:name=".MainActivity"
16+
android:label="@string/title_activity_main" >
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
20+
<category android:name="android.intent.category.LAUNCHER" />
21+
</intent-filter>
22+
</activity>
23+
</application>
24+
25+
</manifest>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** Automatically generated file. DO NOT MODIFY */
2+
package com.survivingwithandroid.listview.SimpleList;
3+
4+
public final class BuildConfig {
5+
public final static boolean DEBUG = true;
6+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/* AUTO-GENERATED FILE. DO NOT MODIFY.
2+
*
3+
* This class was automatically generated by the
4+
* aapt tool from the resource data it found. It
5+
* should not be modified by hand.
6+
*/
7+
8+
package com.survivingwithandroid.listview.SimpleList;
9+
10+
public final class R {
11+
public static final class attr {
12+
}
13+
public static final class drawable {
14+
public static final int arrow_right=0x7f020000;
15+
public static final int ic_action_search=0x7f020001;
16+
public static final int ic_launcher=0x7f020002;
17+
public static final int planet=0x7f020003;
18+
}
19+
public static final class id {
20+
public static final int addBtn=0x7f070001;
21+
public static final int button1=0x7f070003;
22+
public static final int dist=0x7f070006;
23+
public static final int editTextPlanet=0x7f070002;
24+
public static final int img=0x7f070004;
25+
public static final int listView=0x7f070000;
26+
public static final int menu_settings=0x7f070007;
27+
public static final int name=0x7f070005;
28+
}
29+
public static final class layout {
30+
public static final int activity_main=0x7f030000;
31+
public static final int dialog=0x7f030001;
32+
public static final int img_row_layout=0x7f030002;
33+
public static final int row_layout=0x7f030003;
34+
}
35+
public static final class menu {
36+
public static final int activity_main=0x7f060000;
37+
}
38+
public static final class string {
39+
public static final int app_name=0x7f040000;
40+
public static final int hello_world=0x7f040001;
41+
public static final int menu_settings=0x7f040002;
42+
public static final int title_activity_main=0x7f040003;
43+
}
44+
public static final class style {
45+
public static final int AppTheme=0x7f050000;
46+
}
47+
}

SimpleList/ic_launcher-web.png

37.2 KB
Loading
341 KB
Binary file not shown.

SimpleList/proguard-project.txt

Lines changed: 20 additions & 0 deletions
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+
#}

SimpleList/project.properties

Lines changed: 14 additions & 0 deletions
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=android-16
Loading
2.8 KB
Loading
1.38 KB
Loading
Loading
1.82 KB
Loading
Loading
3.74 KB
Loading
1.84 KB
Loading

SimpleList/res/drawable/planet.png

5.48 KB
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:orientation="vertical">
6+
7+
8+
9+
<ListView android:id="@+id/listView"
10+
android:layout_height="match_parent"
11+
android:layout_width="match_parent"
12+
android:layout_weight="1"/>
13+
14+
<Button android:id="@+id/addBtn"
15+
android:text="Add planet"
16+
android:onClick="addPlanet"
17+
android:layout_weight="0.5"
18+
android:layout_height="80dp"
19+
android:layout_width="match_parent"/>
20+
21+
22+
</LinearLayout>

SimpleList/res/layout/dialog.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:orientation="vertical" >
6+
7+
<EditText
8+
android:id="@+id/editTextPlanet"
9+
android:layout_width="match_parent"
10+
android:layout_height="wrap_content"
11+
android:layout_marginTop="20dp"
12+
android:ems="10"
13+
android:hint="Insert your planet name" >
14+
15+
<requestFocus />
16+
</EditText>
17+
18+
<Button
19+
android:id="@+id/button1"
20+
android:layout_width="wrap_content"
21+
android:layout_height="wrap_content"
22+
android:layout_gravity="center"
23+
android:text="Add" />
24+
25+
</LinearLayout>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="wrap_content" >
5+
6+
<ImageView
7+
android:id="@+id/img"
8+
android:layout_width="wrap_content"
9+
android:layout_height="match_parent"
10+
android:layout_alignParentLeft="true"
11+
android:src="@drawable/planet" />
12+
13+
<TextView
14+
android:id="@+id/name"
15+
android:layout_width="wrap_content"
16+
android:layout_height="wrap_content"
17+
android:layout_alignTop="@+id/img"
18+
android:layout_toRightOf="@+id/img"
19+
android:textStyle="bold" />
20+
21+
<TextView
22+
android:id="@+id/dist"
23+
android:layout_width="wrap_content"
24+
android:layout_height="wrap_content"
25+
android:layout_below="@id/name"
26+
android:layout_gravity="center"
27+
android:layout_marginTop="2dip"
28+
android:layout_toRightOf="@id/img"
29+
android:gravity="right"
30+
android:textSize="8dp"
31+
android:textStyle="italic" />
32+
<TextView
33+
android:id="@+id/name"
34+
android:layout_width="wrap_content"
35+
android:layout_height="wrap_content"
36+
android:textStyle="bold"
37+
/>
38+
</RelativeLayout>

SimpleList/res/layout/row_layout.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:orientation="vertical" >
6+
7+
<TextView
8+
android:id="@+id/name"
9+
android:layout_width="match_parent"
10+
android:layout_height="match_parent"
11+
android:layout_weight="1"
12+
android:textStyle="bold"
13+
/>
14+
15+
<TextView
16+
android:id="@+id/dist"
17+
android:layout_width="match_parent"
18+
android:layout_height="match_parent"
19+
android:textSize="8dp"
20+
android:textStyle="italic"/>
21+
22+
</LinearLayout>

SimpleList/res/menu/activity_main.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<menu xmlns:android="http://schemas.android.com/apk/res/android">
2+
<item android:id="@+id/menu_settings"
3+
android:title="@string/menu_settings"
4+
android:orderInCategory="100"
5+
android:showAsAction="never" />
6+
</menu>

SimpleList/res/values-v11/styles.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<resources>
2+
3+
<style name="AppTheme" parent="android:Theme.Holo.Light" />
4+
5+
</resources>

SimpleList/res/values-v14/styles.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<resources>
2+
3+
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" />
4+
5+
</resources>

SimpleList/res/values/strings.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<resources>
2+
3+
<string name="app_name">SimpleList</string>
4+
<string name="hello_world">Hello world!</string>
5+
<string name="menu_settings">Settings</string>
6+
<string name="title_activity_main">MainActivity</string>
7+
8+
</resources>

SimpleList/res/values/styles.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<resources>
2+
3+
<style name="AppTheme" parent="android:Theme.Light" />
4+
5+
</resources>

0 commit comments

Comments
 (0)