Skip to content

Commit 733a1c5

Browse files
committed
new android examples
1 parent 9f58ef5 commit 733a1c5

6 files changed

Lines changed: 16 additions & 17 deletions

File tree

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="de.vogella.android.locationapi.pathfinder"
4-
android:versionCode="1"
5-
android:versionName="1.0">
6-
<application android:icon="@drawable/icon" android:label="@string/app_name">
7-
<activity android:name=".Pathfinder"
8-
android:label="@string/app_name">
9-
<intent-filter>
10-
<action android:name="android.intent.action.MAIN" />
11-
<category android:name="android.intent.category.LAUNCHER" />
12-
</intent-filter>
13-
</activity>
3+
package="de.vogella.android.locationapi.pathfinder"
4+
android:versionCode="1" android:versionName="1.0">
5+
<application android:icon="@drawable/icon" android:label="@string/app_name">
6+
<activity android:name=".Pathfinder" android:label="@string/app_name">
7+
<intent-filter>
8+
<action android:name="android.intent.action.MAIN" />
9+
<category android:name="android.intent.category.LAUNCHER" />
10+
</intent-filter>
11+
</activity>
1412

15-
</application>
16-
<uses-sdk android:minSdkVersion="7" />
13+
</application>
14+
<uses-sdk android:minSdkVersion="8" />
1715

1816

19-
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
20-
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
21-
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-permission>
17+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
18+
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
19+
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-permission>
2220
</manifest>
-4.21 KB
Binary file not shown.
Binary file not shown.
-11 KB
Binary file not shown.

de.vogella.android.todos/res/layout/todo_row.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:layout_width="wrap_content" android:layout_height="wrap_content">
3+
android:layout_height="wrap_content" android:layout_width="fill_parent">
44
<ImageView android:id="@+id/icon" android:src="@drawable/reminder"
55
android:layout_marginLeft="4px" android:layout_marginRight="8px"
66
android:layout_height="40px" android:layout_marginTop="8px"

de.vogella.android.todos/src/de/vogella/android/todos/Todos.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public class Todos extends ListActivity {
2727
public void onCreate(Bundle savedInstanceState) {
2828
super.onCreate(savedInstanceState);
2929
setContentView(R.layout.todo_list);
30+
this.getListView().setDividerHeight(2);
3031
dbHelper = new TodoDbAdapter(this);
3132
dbHelper.open();
3233
fillData();

0 commit comments

Comments
 (0)