Android初心者です、XMLファイルの書式について質問致します。
宜しくお願いします。
XMLファイルは下のような書式になっていますが、
<?xml ~ ?><RelativeLayout ・・・>
<TextView・・・・/>
</RelativeLayout>
これって完全に入れ子構造になっていないような気がするのですが、
何故でしょうか。
・まず、「<RelativeLayout」の後に「>」で終わっている(?)こと。
・終わりなのに「</>」となっていないこと。
・最後に再度「</RelativeLayout>」があること。
・中間にある「・・・MainActivity">」とは何の終わり(?)を意味して
いるのでしょうか。
以上、宜しくお願い致します。
<?xml version="1.0" encoding="utf-8"?><RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="~~~"
android:layout_height="~~~"
android:paddingBottom="~~~"
android:paddingLeft="~~~"
android:paddingRight="~~~"
android:paddingTop="~~~"
tools:context="io.kkk.trainning.MainActivity"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
/>
</RelativeLayout>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。