Libraries for ActionBar (from Android Developers documentation)
Changing background color for ActionBar ( in onCreate() ): ActionBar actionBar = getActionBar(); ColorDrawable colorDrawable = new ColorDrawable (Color.parseColor("place desired hex number")); actionBar.setBackgroundDrawable(colorDrawable); Changing text color for ActionBar: actionBar.setTitle(Html.fromHtml("<font color=\"white\">" + getString(R.string.app_name)/desired text + "</font>"));
0 Comments
Android Froyo, version 2.2 seems to finally be phasing out among users. While the Gingerbread percentage is relatively sizable, this seems to be decreasing too.
Recently, when upgrading from the former AbMob to the new Google Mobile Ads SDK, support for 2.2 was dropped. For existing apps supporting down to 2.2, this posed an issue when AbMob ads were being served to the current app version. Rather than drop support altogether for users below 2.3.3 as revealed in user statistics, a different ad network was implemented solely for 2.2. This required multiple APK support which isn't exactly ideal, but avoids alienating those users who have yet to upgrade. Hopefully, those users will eventually drop in numbers significantly so that support can be dropped altogether. Notes on multiple APK support - Signed by same key for both versions and share like package names, each of the APKs must possess their own, unique version code as expressed in the manifest file as android:versionCode, and configuration requirements/supports must vary between the different APK files. Enabling multiple APK capabilities within the Developer dashboard requires switching from simple to advanced mode. Fresh from completing a Udemy course on jQuery Mobile, I experimented with making a fish cataloging site using jQM's ThemeRoller for design of the interface. The simplicity of this HTML5-based framework is a nice change from the complexities of building native UIs.
This app is a sort of simplified version of a full-blown produce seasons app released on the Play store. With this short project, I wanted to explore tabbed navigation with swipe views to represent two consecutive months worth of produce that was currently in season this month and the next.
Unlike previous projects of this nature, this app would automatically pull the current month from the system clock in order to load the corresponding produce lists. This was achieved by declaring a Calendar object in order to retrieve the Calendar's DAY_OF_MONTH parameter. // Retrieving Calendar instance and saving to Calendar object Calendar calObj = Calendar.getInstance(); int currentMonth; // obtaining current month - 0-11 for Jan-Dec currentMonthNumber = calObj.get(Calendar.DAY_OF_MONTH); The actionbar was styled and generated with the first-time use of the nifty Android Action Bar Style Generator. This Android app was made with the intention to support a freshwater aquarium hobby. For now, most of the items consist of embedded Webviews, but sometime in the future, I'd like to make customized content for possible release.
This app is a further exploration of the navigation drawer menu for versions 4.0 and up. So far, I haven't experimented with support for versions below 4.0, but after some experience with published apps on the Play store, I'd likely limit support to 4.0 and up as it is simply easier for testing and eliminates some of the issues with the earlier versions. Currently, there is no overflow menu with additional options as this app is not going live. Normally, when publishing, the overflow menu would contain sections consisting of an about, help, legal, and additional app settings. |
AuthorExploring Android and mobile web design, security, and development. Archives
March 2021
Categories |