diff --git a/.gitignore b/.gitignore index 2cceb08c9..98da4570b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ gen/ local.properties # Eclipse project files -.classpath .settings # Proguard folder generated by Eclipse diff --git a/Examples/AlarmCreate/.classpath b/Examples/AlarmCreate/.classpath new file mode 100644 index 000000000..7bc01d9a9 --- /dev/null +++ b/Examples/AlarmCreate/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Examples/LocationGetLocationServices/project.properties b/Examples/LocationGetLocationServices/project.properties index 18673bd09..5c2cf41ec 100644 --- a/Examples/LocationGetLocationServices/project.properties +++ b/Examples/LocationGetLocationServices/project.properties @@ -9,4 +9,4 @@ # Project target. target=android-17 -android.library.reference.1=../../../../Classes/AndroidOnline/Coursersa-Android002/eclipse/google-play-services_lib +android.library.reference.1=../google-play-services_lib diff --git a/Examples/LoggingServiceClient/.classpath b/Examples/LoggingServiceClient/.classpath new file mode 100644 index 000000000..7bc01d9a9 --- /dev/null +++ b/Examples/LoggingServiceClient/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Examples/MapEarthQuakeMap/.classpath b/Examples/MapEarthQuakeMap/.classpath index 62aff606f..24c779d94 100644 --- a/Examples/MapEarthQuakeMap/.classpath +++ b/Examples/MapEarthQuakeMap/.classpath @@ -1,7 +1,7 @@ - + diff --git a/Examples/MapEarthQuakeMap/project.properties b/Examples/MapEarthQuakeMap/project.properties index bf46f24fd..a42eaf34f 100644 --- a/Examples/MapEarthQuakeMap/project.properties +++ b/Examples/MapEarthQuakeMap/project.properties @@ -9,4 +9,4 @@ # Project target. target=Google Inc.:Google APIs:19 -android.library.reference.1=../../../../Classes/AndroidOnline/Coursersa-Android002/eclipse/google-play-services_lib +android.library.reference.1=../google-play-services_lib diff --git a/Examples/NotificationStatusBarWithCustomView/src/course/examples/notification/statusbarwithcustomview/NotificationStatusBarWithCustomViewActivity.java b/Examples/NotificationStatusBarWithCustomView/src/course/examples/notification/statusbarwithcustomview/NotificationStatusBarWithCustomViewActivity.java index abd68601d..404c7c48f 100644 --- a/Examples/NotificationStatusBarWithCustomView/src/course/examples/notification/statusbarwithcustomview/NotificationStatusBarWithCustomViewActivity.java +++ b/Examples/NotificationStatusBarWithCustomView/src/course/examples/notification/statusbarwithcustomview/NotificationStatusBarWithCustomViewActivity.java @@ -36,7 +36,7 @@ public class NotificationStatusBarWithCustomViewActivity extends Activity { private long[] mVibratePattern = { 0, 200, 200, 300 }; RemoteViews mContentView = new RemoteViews( - "course.examples.Notification.StatusBarWithCustomView", + "course.examples.notification.statusbarwithcustomview",//package name is case-sensitive R.layout.custom_notification); @Override diff --git a/Examples/NotificationToastWithCustomView/res/layout/custom_toast.xml b/Examples/NotificationToastWithCustomView/res/layout/custom_toast.xml index bcfca8a07..bc63bcf75 100644 --- a/Examples/NotificationToastWithCustomView/res/layout/custom_toast.xml +++ b/Examples/NotificationToastWithCustomView/res/layout/custom_toast.xml @@ -11,6 +11,7 @@ android:layout_width="44dp" android:layout_height="44dp" android:layout_marginRight="10dp" + android:layout_marginEnd="10dp" android:src="@drawable/fire_eye_alien" android:layout_centerVertical="true" android:contentDescription="@string/eyeball_string" @@ -22,6 +23,7 @@ android:text="@string/toast_string" android:layout_centerVertical="true" android:layout_toRightOf="@id/image" + android:layout_toEndOf="@id/image" android:textSize="32sp" /> \ No newline at end of file diff --git a/Examples/NotificationToastWithCustomView/res/layout/main.xml b/Examples/NotificationToastWithCustomView/res/layout/main.xml index 16beed80a..b51ac06eb 100644 --- a/Examples/NotificationToastWithCustomView/res/layout/main.xml +++ b/Examples/NotificationToastWithCustomView/res/layout/main.xml @@ -1,5 +1,6 @@ diff --git a/Examples/NotificationToastWithCustomView/src/course/examples/notification/toastwithcustomview/NotificationToastActivity.java b/Examples/NotificationToastWithCustomView/src/course/examples/notification/toastwithcustomview/NotificationToastActivity.java index f719e32b4..daeaf73a4 100644 --- a/Examples/NotificationToastWithCustomView/src/course/examples/notification/toastwithcustomview/NotificationToastActivity.java +++ b/Examples/NotificationToastWithCustomView/src/course/examples/notification/toastwithcustomview/NotificationToastActivity.java @@ -4,6 +4,7 @@ import android.os.Bundle; import android.view.Gravity; import android.view.View; +import android.view.ViewGroup; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Toast; @@ -14,6 +15,8 @@ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); + final ViewGroup mainLinearLayout = (ViewGroup)findViewById(R.id.main_linear_layout); + Button button = (Button) findViewById(R.id.toast_button); button.setOnClickListener(new OnClickListener() { @@ -25,7 +28,7 @@ public void onClick(View v) { toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); toast.setDuration(Toast.LENGTH_LONG); - toast.setView(getLayoutInflater().inflate(R.layout.custom_toast,null)); + toast.setView(getLayoutInflater().inflate(R.layout.custom_toast, mainLinearLayout, false)); toast.show(); } diff --git a/Examples/SensorRawAccelerometer/.classpath b/Examples/SensorRawAccelerometer/.classpath new file mode 100644 index 000000000..7bc01d9a9 --- /dev/null +++ b/Examples/SensorRawAccelerometer/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Examples/UIDatePickerFragment/.classpath b/Examples/UIDatePickerFragment/.classpath new file mode 100644 index 000000000..7bc01d9a9 --- /dev/null +++ b/Examples/UIDatePickerFragment/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Examples/UIGoogleMaps/project.properties b/Examples/UIGoogleMaps/project.properties index 7d0e6ed73..e6f742574 100644 --- a/Examples/UIGoogleMaps/project.properties +++ b/Examples/UIGoogleMaps/project.properties @@ -12,4 +12,4 @@ # Project target. target=android-18 -android.library.reference.1=../../../../Classes/AndroidOnline/Coursersa-Android002/eclipse/google-play-services_lib +android.library.reference.1=../google-play-services_lib diff --git a/Examples/UIGoogleMaps/src/course/examples/ui/mapview/GoogleMapActivity.java b/Examples/UIGoogleMaps/src/course/examples/ui/mapview/GoogleMapActivity.java index 86892aee3..3e2ab29b9 100644 --- a/Examples/UIGoogleMaps/src/course/examples/ui/mapview/GoogleMapActivity.java +++ b/Examples/UIGoogleMaps/src/course/examples/ui/mapview/GoogleMapActivity.java @@ -3,6 +3,12 @@ import android.app.Activity; import android.os.Bundle; +import com.google.android.gms.maps.CameraUpdateFactory; +import com.google.android.gms.maps.GoogleMap; +import com.google.android.gms.maps.MapFragment; +import com.google.android.gms.maps.model.LatLng; +import com.google.android.gms.maps.model.MarkerOptions; + // This applications requires several set up steps. // See https://developers.google.com/maps/documentation/android/start for more information diff --git a/Examples/UITimePickerFragment/.classpath b/Examples/UITimePickerFragment/.classpath new file mode 100644 index 000000000..7bc01d9a9 --- /dev/null +++ b/Examples/UITimePickerFragment/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Examples/UIViewPager/.classpath b/Examples/UIViewPager/.classpath new file mode 100644 index 000000000..397e3f585 --- /dev/null +++ b/Examples/UIViewPager/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Examples/google-play-services_lib/res/values/version.xml b/Examples/google-play-services_lib/res/values/version.xml new file mode 100644 index 000000000..890d9119a --- /dev/null +++ b/Examples/google-play-services_lib/res/values/version.xml @@ -0,0 +1,4 @@ + + + 4030500 +