在多个屏幕上小组的意见(对照组) [英] Group of Views (controls) on multiple screens

查看:173
本文介绍了在多个屏幕上小组的意见(对照组)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android项目,其中一组按钮需要显示在每个屏幕(活动)在应用程序的底部。本组按钮基本上都是一个导航栏。我想知道这样做不为每个活动创建新的按钮的最佳途径。我一直在各地的编程(C ++ / C#)了很多年,但我pretty的新的Andr​​oid和Java,所以如果有人能在一个总的方向指向我,那将是AP preciated。

I am working on an Android project where a group of buttons needs to show on the bottom of every screen (activity) in the application. The group of buttons are basically a navigation bar. I want to know the best way to do this without creating new buttons for every activity. I have been around programming (C++/C#) for many years but am pretty new to Android and Java so if someone can point me in a general direction, it would be appreciated.

感谢。

推荐答案

我敢打赌,你需要使用包括标记的XML布局。这是最好的,当你需要重用一些UI组件。见的http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/对于实施例和描述

I bet you need to use "include" tag for xml layouts. It's the best when you need to reuse some UI components. See http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/ for the examples and description.

这篇关于在多个屏幕上小组的意见(对照组)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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