The latest release of android support library, 22.1, deprecates the ActionBarActivity in favor of AppCompatActivity, which promises to bring a single consistent ActionBar for all devices starting with API Level 7 and above. Also, the new update adds the ability to tint widgets automatically when using AppCompat, and adds support for consistent material design dialogs. Use support.v7.app.AlertDialog (instead of android.app.AlertDialog), to get nice looking material dialogs across multiple versions of devices. Example: 1. In order to benefit from all these things, the first thing you should do is to update the support library to 22.1.0. dependencies { // … compile 'com.android.support:appcompat-v7:22.1.0' } 2. Then let your activity extend AppCompatActivity. public class MainActivity extends AppCompatActivity { // ... } 3. And finally, change the application theme to AppCompat or any descendants of it. Configuring the material color palette Following the steps above will setup the applic...
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
This article is related to
Researches,Android,android-supoprt,appcompat,Java,Programming
Researches,Android,android-supoprt,appcompat,Java,Programming
No comments:
Post a Comment