この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
android:linearlayoutとviewの位置 [2019/11/10 16:35] ips 作成 |
android:linearlayoutとviewの位置 [2019/11/10 16:38] (現在) ips |
||
---|---|---|---|
ライン 42: | ライン 42: | ||
</code> | </code> | ||
+ | |||
+ | ===== TextViewの文字の位置を中止にする ===== | ||
+ | <code> | ||
+ | <androidx.appcompat.widget.AppCompatTextView | ||
+ | android:id="@+id/quest" | ||
+ | android:layout_width="match_parent" | ||
+ | android:layout_height="match_parent" | ||
+ | android:textSize="20sp" | ||
+ | android:gravity="center" // ただのgravityはViewの内側の位置の設定ができる | ||
+ | android:background="@drawable/radius"/> | ||
+ | </code> | ||
+ |