samedi 9 juillet 2016

how to add predefined note in the list view along with dynamic notes entered by user?

In my Note Taker application, what i want to do is set a default note which is predefined by me, and it should appear in the list view for all users on installing the application, I tried using nested layouts to separate the two layouts one for dynamic(User Entered)and other for my default Note but it did nothing, can anyone help please...!!

sorry the code is not available but what i did looked some thing like this ..

   <RelativeLayout>
      //For the whole screen of the instance
      android:id="@+id=view0"
      //TWO RELATIVE LAYOUTS are nested inside this,
      // one for the predefined note and other for the dynamic note
      >
     <RelativeLayout
      android:id="@+id/view1"
      // for Predefined note that will appear by default .!>
                    //TextView AND Other ITEMS here

     </RelativeLayout
          android:id="@+id/view2"
          //SECOND RELATIVE LAYOUT for dynamically added notes
           >
                    //TextView AND Other ITEMS here
     </RelativeLayout>

     </RelativeLayout>

Aucun commentaire:

Enregistrer un commentaire