Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   FMX Android] findViewById (https://www.delphipraxis.net/203191-fmx-android%5D-findviewbyid.html)

greenmile 22. Jan 2020 10:47

FMX Android] findViewById
 
Hallo,

bei der Suche, automatisiert ein Formular in meiner Android App auszufüllen und abzusenden, bin ich nun über "performClick" gestolpert, allerdings verstehe ich das noch nicht so recht. Vielleicht kann mir da jemand helfen?

Code:
  myView := SharedActivity.findViewById(0);
  myView.performClick;
Im Beispiel von Google geht es so:

Code:
WebView myWebView = (WebView) findViewById(R.id.webview);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
Wie muss ich den Webbrowser in "findViewById" eingeben? Was ist "R.id.webview"?
Wenn ich es recht verstehe, kann ich mir über "findViewById" ein Zugriff auf das Element holen und es dann im Anschluß (wie im Beispiel mit "performClick") ansteuern. Oder bin ich da auf dem Holzweg?

greenmile 27. Jan 2020 10:39

AW: FMX Android] findViewById
 
Muss es leider nochmal pushen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:05 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz