Bonjour,
J'utilise ce WebView dans mon activité.
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
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 : Sélectionner tout - Visualiser dans une fenêtre à part
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:
Nom : aaa.jpg
Affichages : 62
Taille : 13,6 Ko

Mais je veux monter une "embed representation" de ce URL comme ci-dessous:
Nom : embed.PNG
Affichages : 49
Taille : 40,5 Ko

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.