简体   繁体   English

使用 Basic4android 在 Android 上进行页面导航

[英]Page navigation on Android using Basic4android

I am new to Android programming.我是 Android 编程的新手。 Using VB, how to navigate from one page to another page using Basic4android tool in www.basic4android.com使用 VB,如何使用 www.basic4android.com 中的 Basic4android 工具从一个页面导航到另一个页面

Code will be代码将是

startacticity("login")

From what I can gather, Basic4Android uses Layouts rather than the typical VB Forms据我所知,Basic4Android 使用布局而不是典型的 VB Forms

So if you want to click a button to move from 1 layout to another, behind the click event you would have因此,如果您想单击一个按钮以从一种布局移动到另一种布局,那么在单击事件之后,您将拥有

Activity.LoadLayout("layoutname")

To switch between activities on Basic4Android , you must enter the name of the activity in the code below.要在Basic4Android上的 Activity 之间切换,您必须在下面的代码中输入 Activity 的名称。

StartActivity(LoginActivity)

Note that you should not include the name of an activity in Quotation mark.Name the activity without putting the mark.请注意,您不应在引号中包含活动的名称。为活动命名时不要加上引号。

I hope to help you我希望能帮助你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM