【发布时间】:2013-11-19 16:37:51
【问题描述】:
显然改变了这个:
<Button
android:id="@+id/login"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/register"
android:background="@color/bluegreen"
android:text="Log In"
android:textColor="@android:color/white" />
到这里:
<Button
android:id="@+id/login"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/register"
android:text="Log In"
android:textColor="@android:color/white" />
导致登录按钮缩小(并且添加上面缺少的行会导致更改恢复,所以我确定它与 android:background="@color/bluegreen" 行有关):
示例图片:
http://farm6.staticflickr.com/5519/10947007043_ea9389305d_b.jpg
字符串.xml
<string name="app_name">omv</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
<string name="usernamehint">Username</string>
<string name="passwordhint">Password</string>
<color name="grey">#292929</color>
<color name="bluegreen">#43BFC7</color>
【问题讨论】:
-
请向我们展示完整的代码,然后我可以在我的 IDE 中运行它。
标签: android xml textview android-ui android-button