2 pièce(s) jointe(s)
Comment afficher une Embed Representation d'une URL(URL embed)?
Bonjour,
J'utilise ce WebView dans mon activité.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Main2Activity">
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginTop="88dp" />
</RelativeLayout> |
Avec celui-ci:
Code:
1 2 3 4
| WebView webView = findViewById(R.id.webView);
webView.setWebViewClient(new WebViewClient());
webView.loadUrl("https://google.com/"); |
Je ne veux pas charger la page de l'URL dans mon application comme ci-dessous:
Pièce jointe 576010
Mais je veux monter une "embed representation" de ce URL comme ci-dessous:
Pièce jointe 576008
Est-ce possible avec webView Ou dois-je utiliser une autre bibliothèque ou SDK?
Comment afficher une Embed Representation d'une URL dans mon activité ?
Merci.