@@ -10,24 +10,24 @@ To start using DraggableGridView:
1010 import com.animoto.android.views.*;
1111* Add the view to your activity's layout XML and save it:
1212
13- <com.animoto.android.views.DraggableGridView android:id="@+id/dgv" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_alignParentTop="true" android:layout_alignParentLeft="true">
14- </com.animoto.android.views.DraggableGridView>
13+ <com.animoto.android.views.DraggableGridView android:id="@+id/dgv" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_alignParentTop="true" android:layout_alignParentLeft="true">
14+ </com.animoto.android.views.DraggableGridView>
1515* Obtain a reference to the view to use in code:
16- public class DraggableGridViewSampleActivity extends Activity {
17- DraggableGridView dgv;
18-
19- /** Called when the activity is first created. */
20- @Override
21- public void onCreate(Bundle savedInstanceState) {
22- super.onCreate(savedInstanceState);
23- setContentView(R.layout.main);
24-
25- dgv = ((DraggableGridView)findViewById(R.id.dgv));
26- }
16+ public class DraggableGridViewSampleActivity extends Activity {
17+ DraggableGridView dgv;
18+
19+ /** Called when the activity is first created. */
20+ @Override
21+ public void onCreate(Bundle savedInstanceState) {
22+ super.onCreate(savedInstanceState);
23+ setContentView(R.layout.main);
24+
25+ dgv = ((DraggableGridView)findViewById(R.id.dgv));
26+ }
2727* You're done! You can start adding any type of view you'd like.
28- TextView tv = new TextView(this);
29- tv.setText("Hello world!");
30- dgv.addView(tv);
28+ TextView tv = new TextView(this);
29+ tv.setText("Hello world!");
30+ dgv.addView(tv);
3131
3232== Features
3333
0 commit comments