I need to create a custom card. So its text should be the same as default in Android Wear cards. I use the next layout to create custom card
<android.support.wearable.view.CardFrame xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="5dp"
android:text="@string/card_text_not_on_golf_course"/>
</FrameLayout>
</android.support.wearable.view.CardFrame>
Default text for Android wear cards:
In my app I receive the text:
Thank you very much!