Using xml Syntax Highlighting
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
- <dj.android.demo.Gallery id="@+id/gallery"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:gravity="bottom"
- />
- </RelativeLayout>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
in Activity
Using java Syntax Highlighting
- public class demo extends Activity {
- ..onCreate(Bundle icicle)
- {
- Gallery gallery=(Gallery) findViewById(R.id.gallery);
- gallery.setAdapter(new ImageAdapter(this));
- }
- }
- public class ImageAdapter extends BaseAdapter{........
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
my package name is dj.android.demo
There's an error when i run it : "android.view.viewinflate$InflateException:Binary XML file
plz solved it.......

smile it is the key that fits the lock of everybody's heart



