首页 \ 问答 \ Xamarin一步步向导android视图(Xamarin step by step wizard android views)

Xamarin一步步向导android视图(Xamarin step by step wizard android views)

我想在Xamarin c#中构建一个Android活动,用于逐步注册和/或信息。 我该怎么做这样的事情:

在此处输入图像描述

任何人都可以给我一个代码示例或任何东西? 谢谢。


I want to build an android activity in Xamarin c# for step by step registration and/or information. How can I do something like this:

enter image description here

Can anyone give me a code sample or anything? Thanks.


原文:https://stackoverflow.com/questions/38962977
更新时间:2022-05-21 13:05

最满意答案

解决方案是将容器水平策略设置为“固定”


The solution was to set container horizontal policy as "fixed"

相关问答

更多
  • 问题是,我试图用MSVC2010编译这个代码,MSVC2010 不支持基于范围的for循环 。 使用normal for循环的工作代码如下: void mainWindow::tabifyDocks() { // get a list of all the docks QList docks = findChildren(); // first, un-float all the tabs std::for_each( ...
  • 在Qt中,窗口小部件可以通过布局自动管理。 小部件本身不会填充父级。 您需要在父窗口小部件上设置布局,并将窗口小部件添加到父窗口。 有很多教程。 适用于您的情况的特定布局是QFormLayout 。 这个答案有一个完整的例子。 In Qt, widget geometry can be automatically managed by layouts. A widget by itself won't fill the parent. You need to set a layout on the pare ...
  • 您应该查看QMainWindow并检查它可以为您提供的多个实用程序(工具栏,StatusBar,DockWidgets,CentralWidget等...)。 我理解你的情况的方式是你将始终可见MDI区域,并且标签栏将仅用于更改dockWidgets。 这是我怎么做的。 mainWindow的centralWidget将是一个QWidget,其QVBoxLayout首先包含一个QTabBar小部件(up), 下面包含一个QMdiArea 。 尺寸应自动处理。 这将允许用户(或您)将小部件停靠在mainWin ...
  • 两种可行的解决方案对我有用(但在Pyqt5中) 使用QFrame代替QWidget作为容器(卡) 将标签命名为label1和label2,然后添加以下命令 label1.setStyleSheet("QLabel{margin:50px;margin-bottom:0px;}") label2.setStyleSheet("QLabel{margin:50px;margin-top:0px;}") 在我看来,第一个更好,第二个只是一个解决方法 Two possible solutions that wor ...
  • 只需将小部件拖回其起始位置,主窗口就应自动抓取它。 如果这对您不起作用,请查看Dock Widgets示例程序(Qt Creator - >帮助 - >目录 - >教程和示例 - >主窗口示例 - > Dock Widgets)。 如果即使这个示例程序不起作用,那么你的Qt安装就出了问题! Just drag the widget back to its starting position, and the main window should grab it automatically. If this ...
  • 以下是我的Qt3应用程序中对话框的一些工作代码: QVBoxLayout *vb = new QVBoxLayout(this, 5, 5); // ... QHBoxLayout *askline = new QHBoxLayout(vb, 10); QPushButton *ok = new QPushButton(tr("OK"), this); QPushButton *cancel = new QPushButton(tr("Cancel"), this); askline->addW ...
  • 您可以将QDockWidget停靠在QMainWindow或其他QDockWidget上。 要获得所需的布局,请在主窗口的右侧嵌入一个子QMainWindow,并将其用作带有setWindowFlags(Qt :: Widget)的QWidget: #include "mainwindow.h" #include "ui_mainwindow.h" #include MainWindow::MainWindow(QWidget *parent) : QMainWindow ...
  • 您在弹力系数方面处于正确的轨道上,但请考虑像素值而不是小比例。 尝试将每个停靠窗口小部件的伸展因子设置为: dockWidgetStretch = numChildWidgets * childWidgetMinimumHeight + scrollBarHeight; 其中childWidgetMinimumHeight和scrollBarHeight都以像素表示,并且都是常量。 编辑:这是一个工作的例子。 您可能需要进行一些实验才能使其与您的程序一起使用,但这应该是一个好的开始。 header.h # ...
  • 起初,Q3DockArea尚未在Qt4中删除,实际上它已被添加。 被删除的类是QDockArea。 如果你有旧的代码,你仍然可以使用这个Q3 *类,这就是它们的用途。 但我不建议使用兼容性类。 如何像QWidget一样使用QMainWindow。 使用父Widget创建它,但没有菜单,工具栏,状态栏,并使用setWindowFlags()等撤消其顶级状态。 您可以将它用作旧式QDockArea,将其放在您喜欢的位置并添加您的QDockWidgets。 此外,目前的Qt版本是4.5.2,不需要使用过时的版本; ...
  • 解决方案是将容器水平策略设置为“固定” The solution was to set container horizontal policy as "fixed"

相关文章

更多

最新问答

更多
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)
  • 是否可以嵌套hazelcast IMaps?(Is it possible to nest hazelcast IMaps? And whick side effects can I expect? Is it a good Idea anyway?)
  • UIViewAnimationOptionRepeat在两个动画之间暂停(UIViewAnimationOptionRepeat pausing in between two animations)
  • 在x-kendo-template中使用Razor查询(Using Razor query within x-kendo-template)
  • 在BeautifulSoup中替换文本而不转义(Replace text without escaping in BeautifulSoup)
  • 如何在存根或模拟不存在的方法时配置Rspec以引发错误?(How can I configure Rspec to raise error when stubbing or mocking non-existing methods?)
  • asp用javascript(asp with javascript)
  • “%()s”在sql查询中的含义是什么?(What does “%()s” means in sql query?)
  • 如何为其编辑的内容提供自定义UITableViewCell上下文?(How to give a custom UITableViewCell context of what it is editing?)
  • c ++十进制到二进制,然后使用操作,然后回到十进制(c++ Decimal to binary, then use operation, then back to decimal)
  • 以编程方式创建视频?(Create videos programmatically?)
  • 无法在BeautifulSoup中正确解析数据(Unable to parse data correctly in BeautifulSoup)
  • webform和mvc的区别 知乎
  • 如何使用wadl2java生成REST服务模板,其中POST / PUT方法具有参数?(How do you generate REST service template with wadl2java where POST/PUT methods have parameters?)
  • 我无法理解我的travis构建有什么问题(I am having trouble understanding what is wrong with my travis build)
  • iOS9 Scope Bar出现在Search Bar后面或旁边(iOS9 Scope Bar appears either behind or beside Search Bar)
  • 为什么开机慢上面还显示;Inetrnet,Explorer
  • 有关调用远程WCF服务的超时问题(Timeout Question about Invoking a Remote WCF Service)