user766090
user766090

Reputation:

A question on making TitleBar

I want to make a title bar which has a image and text with ImageView and TextView respectively.I want text on image.I am adding and it is displaying but text and image separately.How can I make text on image?

Upvotes: 0

Views: 79

Answers (1)

Sunil Kumar Sahoo
Sunil Kumar Sahoo

Reputation: 53647

You can use TextView and set background image to the textview to display text on image

Example

<TextView
android:id="@+id/textview2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"
android:text="TextView" 
android:background="@drawable/top_color_bar"/> 

Upvotes: 1

Related Questions