日記
三体Ⅲ上巻を読んだ。読み始めは蛇足っぽいと思ってたけどしっかり面白かった。
今日書いたコード
リストの要素のレイアウトを整えた。
<?xml version="1.0" encoding="utf-8"?> <Button xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/letter" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="4dp" android:padding="8dp" tools:text="А" />
感想
xmlns
はelementやattributeの名前の衝突を避けるために使うもので、xml namespaceの意味。
だんだん前と同じ雑さになってる。