Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="fill_parent"
- android:layout_width="fill_parent" >
- <ListView
- android:id="@+id/list"
- android:layout_height="wrap_content"
- android:layout_width="fill_parent"
- android:layout_marginBottom="50dp"
- android:layout_alignParentTop="true" />
- <TextView
- android:text="Some text"
- android:gravity="center"
- android:layout_height="wrap_content"
- android:layout_width="fill_parent"
- android:layout_alignParentBottom="true" />
- </RelativeLayout>
- TextView tv1=new TextView(context);
- Resources res=getResources();
- Drawable d1=res.getDrawable(R.drawable.YourImage);
- tv1.setBackgroundDrawable(d1);
- ListView.addHeaderView(tv1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement