<Button android:id="@+id/AdultLeft1"
android:layout_width="40dip" android:text="@layout/active"
android:layout_marginTop="110dip" android:layout_height="wrap_content"
android:background="@drawable/notselectedtabright_landscape"
android:focusable="false"/>
和active.xml
如何在Android中为按钮设置自定义文本?
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"android:layout_width="fill_parent"
android:layout_height="wrap_content">
<com.xxx.VerticalTextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColor="@color/black"
android:textStyle="bold"android:textSize="12dip"
android:text="Closed\nCases"/>
</RelativeLayout>
我有一个自定义VerticalTextView
。我想在xml中将此文本设置为我的按钮。这是如何完成的?
检查'/res/values/strings.xml '文件。并请详细解释您确切想要达到的目标。 – Ghost 2012-02-09 06:15:41
需要更多描述。 :) – 2012-02-09 06:17:40
其实我在这里发布的代码其不显示我的代码 – 2012-02-09 06:21:52