日曜日に、私は実際に最初のアプリをサイドロードしました!!! シンプルで未完成のいくつかのバグですが、動作します。
私の開始画面 (XML: "event_list.xml") はスクロール リストです - 詳細取得画面を 1 つ選択します。XML は次のようになります: (このコードはまだフラグメントです。)
<?xml version="1.0" encoding="utf-8"?>
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="com.dummies.android.taskreminder.EventListFragment"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
行 (XML "event_row.xml") は次のようになります。
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/text1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textSize="12dp"
android:padding="2dip" />
スクロールの上の上部にいくつかのボタンが必要です。私ができる最善のことは次のとおりです。
<?xml version="1.0" encoding="utf-8"?>
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="com.dummies.android.taskreminder.EventListFragment"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<Button
android:id="@+id/btn_Add"
android:text="@string/add"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</fragment>
しかし、ボタンは最初のエントリをオーバーレイします! 行をリスト画面に結び付けるものと、スクロール (行) の上に 2 つのボタンを表示するにはどうすればよいですか?