match a nine-patch image with simple image

I want to put two images together (a nine-patch image with icon), So that icon size does not change.

I designed nine-patch image but i don't match these images together. Is there anyone who can help me?


You can use the android layer list drawable. This allows to stack layers on top of each other. The first layer can hold the nine patch image and the second layer can hold the icon which wont be stretched.

This is how it would look like

<layer-list xmlns:android="">
    <item android:drawable="@drawable/wp_tabbuttonstrip"/>
        <bitmap android:src="@drawable/wp_dashboard_icon" 

You will need to specify the size of the view, wrap content might not give the desired results.

Need Your Help

Reduce size of TableView in UITableViewController

ipad uitableview size height uisplitview

I'm showing a splitview within a tabbar app. In every split view, master is a UITableViewController (with Freeform size). My Custom tabBar is 1024 x 80 px (always landscape mode), and I'd like to r...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.