问题标签 [buttonbar]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
3287 浏览

apache-flex - 垂直 ButtonBar 按钮宽度

我正在创建一个带有 3 个按钮的垂直按钮栏。如何强制所有三个按钮的宽度相同,使其看起来不像废话?

0 投票
2 回答
10314 浏览

android - 带有ButtonBar的RelativeLayout中的Android Scrollview

我正在尝试实现一个登录视图,其中几个 EditTexts 和一个徽标显示在屏幕上,底部有一个 ButtonBar,如下所示:

替代文字 http://russellhaering.com/media/addAccount.png

问题是在非常小的屏幕上,特别是当它们横向旋转时,整个主视图不适合屏幕。

我目前有

我尝试将第一个 LinnearLayout 封装在 ScrollView 中,如下所示:

但这会带来两个问题:

  1. ScrollView 不滚动,即使在数据不完全适合的屏幕上也是如此

  2. ButtonBar 浮动在屏幕键盘的顶部,当键盘出现时会遮挡更多的屏幕。

当我在 ScrollView 中有按钮时,一切都很好,但是现在我在 ButtonBar 中有它们,我很难弄清楚这一点。

0 投票
2 回答
2157 浏览

apache-flex - 如何使用 flex 按钮栏禁用切换

如何禁用 spark:Buttonbar 中按钮的切换特性,使其行为类似于 mx:ButtonBar?

0 投票
2 回答
1125 浏览

android - how to create a buttonbar with a sliding control in android?

The footprints and clock app on a HTC sense phones use a slider control on the bottom buttonbar (see this movie for an example: https://docs.google.com/leaf?id=0B9hmEy_z2CRzOTJmYTVlNDktYjkwMS00YTM5LTk3ODQtYmIzODU4Yzk1YjA0&hl=en&authkey=CMWwwegG).

From the hierarchy viewer I can see that they use a custom control for this. I'm looking for a way to achieve the same effect. I want a buttonbar on the bottom of my app with a movable selector which I can drag from left to right and back, thereby selecting the different tabs.

Can anyone give some tips on how I might achieve this? Which layout controls could I use for this purpose? I know how to create the tabs and the button bar, but I'm a bit puzzled on the sliding selector.

Thanks and kind regards, Ivo

0 投票
2 回答
2781 浏览

android - 底部按钮栏与 Listview 的最后一个元素重叠!

我有一个列表视图,它是活动的一部分。我希望用户可以选择批量删除列表视图中的项目,因此当他从菜单中选择相应的选项时,每个列表项旁边都会有一个复选框。当用户单击任何复选框时,按钮栏将从底部向上滑动(如在 gmail 应用程序中)并单击删除按钮删除所选项目,但是单击栏上的取消按钮将取消选中所有选中的项目。

这是我的页面 layout.xml:

到目前为止,我已经完成了所有工作,除了当底部栏在复选框选择时变得可见时,它与列表的最后一个元素重叠。所有其他列表项都可以向上滚动,但您不能向上滚动列表的最后一项,因此如果用户愿意,则不能选择该项目。这是重叠的屏幕截图

我曾尝试使用 listview 页脚选项,但这会将栏附加到列表的末尾,而不是将其固定在屏幕底部。有没有办法我可以“提高”列表视图足以使重叠不会发生?顺便说一句,我已经尝试将底部边距添加到列表视图本身,或者在使按钮栏可见之前包装列表视图的线性布局,但它引入了其他错误,例如单击一个复选框会检查列表视图中的另一个复选框。

0 投票
3 回答
15249 浏览

android - 自定义按钮栏中按钮之间的分隔符

我制作了一个自定义按钮栏,如此所述。

现在,我想在第一个和第二个按钮之间以及第二个和第三个按钮之间添加一个分隔符。我的按钮栏定义如下:

这个任务看起来很简单,但我找不到一个好的方法来完成它。它应该在每个按钮之间有一个灰色的分隔符,所以它看起来有点像这样

我相信这很容易,请指出正确的方向。

0 投票
2 回答
9197 浏览

android - Android bottom button bar & scroll view with dialog theme

I am trying to display an Android activity with:

  • a dialog theme;
  • a title fixed at the top of the dialog;
  • a button bar fixed at the bottom of the dialog;
  • a scroll view in the middle.

The layout I have written fulfills these criteria, except that the dialog always fills the full screen (see vertical screenshot at the bottom).

This is my layout:

In addition, the activity is styled with @android:style/Theme.Dialog and android:windowNoTitle.

I'm not sure I understand why this layout expands to fill the whole screen. None of the views have a layout height set to fill_parent; the parent layout isn't set to fill_parent either.

Does anyone know if what I want to do is possible, and if yes how to do it?

My current layout in horizontal mode

Layout in horizontal mode.

My current layout in vertical mode

Layout in vertical mode.

0 投票
4 回答
1533 浏览

apache-flex - 将状态传递给 Flex4 ButtonBar 的子按钮

我有一个具有自定义外观的 Spark ButtonBar,它为“middleButton”需求定义了一个自定义外观。我的CustomButtonBarSkin有一个自定义状态,minimized,我想将它传递到我的 middleButton 皮肤中,以便它可以修改其设计。

是否有可能做到这一点?我可以看到我的按钮皮肤可以使用 parentDocument.currentState 来获得最小化状态,但这真的很难看。有什么方法可以将皮肤从栏传递到子按钮?

0 投票
0 回答
1319 浏览

jquery - 自定义 jQuery UI 对话框页脚/按钮栏

我有一个非常简单而快速的问题,在谷歌搜索大约一个小时后我找不到解决方案。

我有一个 jQuery UI 对话框,其中包含表中的行列表。它们代表数据库中的条目,并且是可选择的(复选框)。

在对话框的底部栏中,我想添加几个自定义项 - 不是文档提到的按钮,而是一个下拉框,以便用户可以选择他们想要将选定条目移动到的位置,然后单击一个按钮提交表格。

如何自定义对话框页脚/按钮栏中的内容?

0 投票
2 回答
780 浏览

android - 类似于 android 的 twitter 应用程序的按钮栏

我想用推特应用的按钮栏获得类似的标签效果。

我希望单击一个按钮并向下更改视图。我可以切换活动,但我认为这是错误的,或者不是?

顶栏必须像框架一样固定。像这样:

好的,现在我发布了我的想法的一部分(我在这里发现了类似的东西:http ://www.talkandroid.com/android-forums/android-development-answers-tutorials-code-snippets/1515-how-i-open-图像-图像按钮.html )

代码: