This file contains hidden or 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
@NonNull | |
private String mapPhotoReference(@NonNull String photoReference) { | |
//noinspection SpellCheckingInspection | |
return "https://maps.googleapis.com/maps/api/place/photo?maxwidth=1080" | |
+ "&photoreference=" + photoReference | |
+ "&key=" + BuildConfig.GOOGLE_PLACES_KEY; | |
} |
This file contains hidden or 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 java.util.Scanner; | |
public class HelloWorld { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int nbEntry = scanner.nextInt(); | |
Rectangle smallYellow = new Rectangle(25, 50, 20, 45); |
This file contains hidden or 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.view.View; | |
import androidx.annotation.IdRes; | |
import androidx.test.espresso.UiController; | |
import androidx.test.espresso.ViewAction; | |
import org.hamcrest.Matcher; | |
public class ClickChildViewWithId implements ViewAction { |
This file contains hidden or 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"?> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout | |
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/view_tracks_coordinatorlayout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/background_grey_50" |
This file contains hidden or 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.app.Application | |
import androidx.lifecycle.ViewModel | |
import androidx.lifecycle.ViewModelProvider | |
import caux.martin.go4lunch.MainApplication | |
import caux.martin.go4lunch.repositories.UserRepository | |
import caux.martin.go4lunch.repositories.places.PlacesRepository | |
import caux.martin.go4lunch.viewModel.LocationViewModel | |
import caux.martin.go4lunch.viewModel.WorkmatesViewModel | |
class ViewModelFactory private constructor( |
This file contains hidden or 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.util.Log; | |
import androidx.annotation.MainThread; | |
import androidx.annotation.NonNull; | |
import androidx.annotation.Nullable; | |
import androidx.lifecycle.LifecycleOwner; | |
import androidx.lifecycle.MutableLiveData; | |
import androidx.lifecycle.Observer; | |
import java.util.concurrent.atomic.AtomicBoolean; |
This file contains hidden or 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
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 29 | |
buildToolsVersion "29.0.2" | |
defaultConfig { | |
applicationId "fr.delcey.mareu" | |
minSdkVersion 21 | |
targetSdkVersion 29 | |
versionCode 1 |
This file contains hidden or 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.util.Log; | |
import androidx.annotation.MainThread; | |
import androidx.annotation.NonNull; | |
import androidx.lifecycle.LifecycleOwner; | |
import androidx.lifecycle.MutableLiveData; | |
import androidx.lifecycle.Observer; | |
import java.util.concurrent.atomic.AtomicBoolean; |
This file contains hidden or 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
class MapFragment : SupportMapFragment() { | |
private lateinit var mapViewModel: MapViewModel | |
private lateinit var googleMap: GoogleMap | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) |
This file contains hidden or 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
android { | |
compileSdkVersion 29 | |
buildToolsVersion "29.0.2" | |
defaultConfig { | |
applicationId "fr.delcey.mareu" | |
minSdkVersion 21 | |
targetSdkVersion 29 | |
versionCode 1 | |
versionName "1.0" |