のテキストを、そのすぐ下にTextView
あるan内のテキストに揃えたいのですが。EditText
これは、パディングトリックを使用せずに可能ですか?
そうでない場合、これは推奨されていないためですか?ユーザーが2つのコントロールの違いを見逃してしまう可能性があるため、落胆していることがわかりました。
上記のスクリーンショットを作成したレイアウトは次のとおりです。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/text_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:text="Please align my first character" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/text_view"
android:hint="To my first character" />
</RelativeLayout>