Androidスタジオの新機能です。私は最初のアプリを実行しているときに問題に直面しています。私はボタンとTextViewを作成していて、アプリケーションを実行しているときに、ボタンとTextViewに設定したテキストが表示されず、ボタンとTextViewにTextViewとButtonが表示されます。 私を助けてください。でも、テキストビューとボタンのテキストは表示されません。
ここに私のコードです。私はアンドリドスタジオで挿入されたテキストを見ることができますが、アプリを実行した後ではありません。
<TextView
android:text="TextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:layout_marginTop="21dp"
tools:text="Select Your Branch"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />
<Button
android:text="Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView"
android:layout_centerHorizontal="true"
android:layout_marginTop="81dp"
android:id="@+id/button6"
tools:text="Click Me" />
このメソッドショーのテキストは...あなたのコードを提供 –
あなたはボタンやTextViewのテキストを設定してコードを共有することができ – EKN
あなたのXMLとJavaコードを共有してください – Sasi