Beemo Beemo - 19 days ago 8
Android Question

Tableview/ListView in Android SDK (Eclipse IDE) for any kind of schedule

I have a problem implementing school schedule in the mentioned IDE for Android. The idea is that a user can set time for classes and they will be shown in that view. Which view to use best? How to connet that?

Any idea what is the best way to try implementing it?

Answer

Created 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>  

And for every textView I created one relativeLayout in which is inserted one listView below the mentioned textView. Every listView is populated from sqllite database, when clicked it invokes new activity which populates database. Hope that help.

Comments