如何线性布局获得焦点? [英] How Linear Layout get Focus?

查看:122
本文介绍了如何线性布局获得焦点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序。结果
我创建了一个包含多个组件的activty结果
顶部包含微调,

I am developing an android application.
I was created an activty that contains several components
on the top it contains spinner,

后它包含在其中具有两个TextView的,结果,线性布局
1有静态值等是当线性用户点击loyout一个DialogBox的创建和对话框它填补其他的TextView的设定值后,一个充满活力的价值。结果
我有4个的LinearLayout这种类型后,我都不得不包含2键结束另一个线性布局。

after that it contains linear layout in which it has two textview,
1 has static value and other is dynamic value that is filled when user click on that linear loyout an dialogbox is created and after setting value on that dialog it fills other textview.
i have 4 linearlayout of this type after that i have another linear layout at the end that contains 2 button.

问题是,在模拟器时滚动鼠标它注重微调,之后的最后一个按钮(意味着它的颜色变为橙色)

The problem is that in emulator when i scroll mouse it focus on the spinner and after that the last button(means it color changes to orange)

所以,问题是,我怎么能得到重点放在4线性布局?(我设置可聚焦和放大器; focusontouch&安培;点击值的LinearLayout的真)

So the question is that how can i get focus on that 4 linear layout?(i set focusable & focusontouch & clickable value true of that linearlayout.)

推荐答案

请尝试设置机器人:可聚焦= TRUE

我不知道这个,但可能解决您的问题。

I am not sure about this but may solve your problem.

这篇关于如何线性布局获得焦点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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