0
我有一个背景,我把我的应用程序,并有按钮应该去的地方。因此,当我将按钮全部排列起来时,我会将按钮置于不可见状态,以便在您打开应用程序时看不到它们。但是当我这样做的时候,它是看不见的,但它们没有隐形的按钮。我应该可以点击我放置按钮的区域。对?按钮不起作用时隐形
感谢您的帮助!
Button
android:id="@+id/start1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
android:height="75dp"
android:width="150dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="93dp"
android:visibility="visible" **(After I switch this to invisible the button doesn't work)**
android:clickable="true"/>
呃..为什么你会期望一个看不见的按钮工作? – EdChum 2012-04-10 22:40:34
错误。一个不可见的按钮是所有意图不存在 – ControlAltDel 2012-04-10 22:40:50
对于混淆我很抱歉,虽然它使其不可见将隐藏按钮图片,但链接仍然会在那里点击。 – scott1218 2012-04-10 22:47:24