android - Adding buttom/image to the right corner of the header -


 <view     android:layout_width="1dp"     android:layout_height="30dp" > </view>  <linearlayout     android:layout_width="match_parent"      android:layout_height="35dip"     android:background="#397921"     android:gravity="center_vertical"     android:orientation="horizontal" >      <textview         android:id="@+id/headertitle"         android:layout_width="0dip"         android:layout_height="wrap_content"         android:layout_weight="1"         android:gravity="left"         android:textcolor="#ffffff"         android:paddingleft="8dp"          /> </linearlayout> 

i have header this, how add image or button @ right corner.

<relativelayout     android:layout_width="match_parent"      android:layout_height="35dip"     android:background="#397921"     android:gravity="center_vertical"     android:orientation="horizontal" >      <textview         android:id="@+id/headertitle"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_weight="1"         android:layout_alignparentleft="true"         android:gravity="left"         android:textcolor="#ffffff"         android:paddingleft="8dp"          />      <imageview          android:layout_width="wrap_content"         android:layout_alignparentright="true"         android:layout_height="wrap_content"         android:background="@drawable/icon"/> </relativelayout> 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -