android - how to add left and right image on header -


i want create header image http://imgur.com/xrlxb0l

but screen this
http://imgur.com/ut4eryl

how add 2 images 1 left , 1 right of header???

here code:

          <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:background="#ffffff"     android:orientation="vertical" >      <relativelayout         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:background="@drawable/border" >               <imageview             android:id="@+id/test_button_image"             android:layout_width="wrap_content"             android:paddingleft="5dp"             android:layout_height="wrap_content"             android:layout_alignparenttop="true"             android:paddingtop="10dp"             android:src="@drawable/icon" >         </imageview>          <textview             android:id="@+id/test_button_text2"             android:layout_width="wrap_content"             android:paddingtop="10dp"             android:layout_height="wrap_content"             android:layout_aligntop="@+id/test_button_image"             android:paddingleft="10dp"             android:layout_torightof="@+id/test_button_image"             android:text="san diego unified"             android:textcolor="#000000"             android:textsize="25sp" >         </textview>          <textview             android:id="@+id/test_button_text1"             android:layout_width="wrap_content"             android:layout_height="wrap_content"               android:paddingleft="10dp"             android:layout_alignleft="@+id/test_button_text2"             android:layout_below="@+id/test_button_text2"             android:paddingbottom="10dp"             android:text="school district"             android:textcolor="#000000" >         </textview>     </relativelayout>        </linearlayout> 

here code expect...

   <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:background="#ffffff"     android:orientation="vertical" >      <linearlayout         android:layout_width="match_parent"         android:layout_height="55dp"         android:orientation="horizontal"     android:background="@drawable/border"              >         <imageview             android:id="@+id/test_button_image"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:src="@drawable/lefticon"                          >         </imageview>          <linearlayout         android:layout_width="0dp"         android:layout_height="match_parent"         android:orientation="vertical"            android:layout_weight="1"           android:layout_gravity="center"            android:gravity="center"  >            <textview             android:id="@+id/test_button_text2"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="san diego unified"             android:textcolor="#000000"                         android:textsize="25sp" >         </textview>          <textview             android:id="@+id/test_button_text1"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="school district"             android:textcolor="#000000" >         </textview>          </linearlayout>          <imageview             android:id="@+id/test_button_image"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:src="@drawable/righticon" >         </imageview>     </linearlayout> </linearlayout> 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -