Android: How can I use the Button background(style)

I want to use the button style on another control. How can I call that bg?

Answers


You can give its background the attribute

@android:drawable/btn_default

Or set the style

@android:style/Widget.Button

Need Your Help

I want to save the state of tab

android tabs android-tabactivity savestate

I have created three tabs in my application and opening child activities inside each tab. Now what i want is that i want to save the state of tab. e.g. If i am working on TAB-1's child activity and...

Flattening records in Unix

unix awk normalization

How to flatten records in UNIX by combining 2 rows and splitting another.?

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.