Android Studio 图形界面中的 ViewFlipper 开关? [英] ViewFlipper Switch in Android Studio Graphical Interface?

查看:36
本文介绍了Android Studio 图形界面中的 ViewFlipper 开关?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您有时间,感谢您花一点时间回答我的问题;我对 android 编程还很陌生,所以任何帮助都很棒!

Thanks for taking a second and responding to my question if you get the time; I'm fairly new to programming android so any help is great!

我正在使用 Android Studio,并编写了一个包含多个布局的 XML 布局,我在使用 ViewFlipper.showNext() 或 ViewFlipper.setDisplayedChild() 之间切换.以编程方式,一切都运行良好.但是,我使用的是Android Studio的图形XML界面,希望能够在图形界面中看到showNext()显示的布局.

I am using Android Studio, and have written an XML layout with multiple layouts in it that I switch between using ViewFlipper.showNext() or ViewFlipper.setDisplayedChild(). Programmatically, everything is working excellent. However, I am using the graphical XML interface of Android Studio and would like to be able to see the layout displayed by showNext() in the graphical interface.

有谁知道如何在 Android Studio 图形界面(或在 Eclipse 中)手动翻转 viewFlipper?

Does anyone know how to manually flip the viewFlipper in the Android Studio graphical interface (or in Eclipse for that matter)?

推荐答案

我看到的唯一方法是将正确的代码部分作为 viewflipper 的第一个子项,以查看图形布局中的渲染.

The only way I see is putting the right code part as the first child of the viewflipper to see rendering in the graphical layout.

这篇关于Android Studio 图形界面中的 ViewFlipper 开关?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆