This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When Edison had been an unknown inventor who specialized in the | |
telegraphic equipment business, reporters had not sought him out and begged | |
him for an opportunity to become his friend. Now, however, in early May 1878, | |
sycophantic journalists led him to believe that he was wise in all manner of | |
subjects, far afield of the electrical business. If they wished to listen to his | |
opinions, and they did indeed, he was glad to hold forth on any topic, such as the | |
relationship of diet to national destiny, a lecture delivered over lunch while | |
digging into strawberry shortcake, strawberries and cream, and an apple | |
dumpling. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onMapReady(GoogleMap googleMap) { | |
map.clear(); | |
map = googleMap; | |
LatLng hcmus = new LatLng(Double.parseDouble(latitude1), Double.parseDouble(longitude1)); | |
map.moveCamera(CameraUpdateFactory.newLatLngZoom(hcmus, 10)); | |
originMarkers.add(map.addMarker(new MarkerOptions() | |
.title(mStudentObject.getAddress()) | |
.position(hcmus))); | |
LatLng startMarker=new LatLng(Double.parseDouble(latitude1),Double.parseDouble(longitude1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/content_main" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BezInterpolator { | |
private static BezInterpolator bezInterpolator; | |
//Control points to create the cubic bezier curve. | |
private float[] PRINCIPLE_DEFAULT_EASE = {(float)0.25, (float)0.1, (float)0.25, (float)1.0}; | |
private float[] EASE_OUT = {(float)0, (float)0, (float)0.58, (float)1.0}; | |
private float[] EASE_IN = {(float)0.42, (float)0, (float)1.0, (float)1.0}; | |
public static BezInterpolator getInstance(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Copyright 2016 Google Inc. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Button; | |
import android.widget.TextView; | |
/** | |
* Created by khaled bakhtiari on 10/26/2014. | |
* <a href="http://about.me/kh.bakhtiari"> | |
*/ |