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

查看:287
本文介绍了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天全站免登陆