0

前述のAndroid用IDEで学校のスケジュールを実装するのに問題があります。アイデアは、ユーザーがクラスの時間を設定でき、それらがそのビューに表示されるということです。どのビューを使用するのが最適ですか?それをどのように接続するのですか?

それを実装しようとする最良の方法は何ですか?

4

2 に答える 2

0

schedule.xml を作成しました

<?xml version="1.0" encoding="utf-8"?>  
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:scrollbars="vertical">

<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout  
xmlns:android="http://schemas.android.com/apk/res/android"  
android:layout_height="fill_parent"  
android:layout_width="fill_parent"
android:background="#000000"
android:id="@+id/RelativeLayout"
android:clickable="true"
>

<TextView
    android:id="@+id/tv01"
    android:layout_height="wrap_content"
    android:text="Monday"
    android:textColor="#000" >
</TextView>  

そして、すべてのtextViewに対して、上記のtextViewの下に1つのlistViewが挿入される1つのrelativeLayoutを作成しました。すべての listView は sqllite データベースから取り込まれます。クリックすると、データベースに取り込まれる新しいアクティビティが呼び出されます。その助けを願っています。

于 2012-12-26T21:00:13.797 に答える
0

最初の画面でグリッドビュー/テーブル ビューを使用して日付を選択します。2 番目の画面で、タイムスロットの日付と冒涜を含むカスタムリストビューを表示します。リストビューに時間を追加するには、ボタンを追加する必要があります。そのボタンをクリックすると、時間と説明がかかる入力ダイアログが表示されます。

これがあなたのアイデアであることを願っています。

于 2012-11-28T10:36:42.063 に答える