Gab*_*lle 5 android text button
在我的Android应用程序中,我有一个投票照片的按钮.当用户选择此按钮时,此按钮上的文字变为"感谢您的投票",当他看到之前投票的照片时,按钮上会显示"您已投票支持此照片"的文字......问题它看起来像这样:http://i55.tinypic.com/t4z3vl.png
任何人都可以帮我热,我可以在Button上使用该文本吗?
欢迎任何想法.提前致谢.
在xml我有这个:
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_below="@id/imagetitle"
android:orientation="horizontal">
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Previous" android:id="@+id/previous" />
<Button android:layout_width="185dip" android:layout_height="wrap_content"
android:text="Vote for this picture" android:id="@+id/vote" />
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Next" android:id="@+id/next" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我想你想对齐所有按钮的顶部在你的布局中添加这一行
LinearLayout android:baselineAligned="false"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6993 次 |
| 最近记录: |