Skip to content

Commit

Permalink
Merge pull request #2 from toranb/master
Browse files Browse the repository at this point in the history
fix that went up just 2 days before the code-camp weekend
  • Loading branch information
ChrisMissal committed Nov 12, 2011
2 parents c11f8c9 + 4ba0352 commit 8805aaf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.iowacodecamp.android" android:versionCode="1" android:versionName="1.0">
package="com.iowacodecamp.android" android:versionCode="2" android:versionName="1.1">
<uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.INTERNET"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ public NavigationAndTitleHelper(Activity activity) {
public void setNavigationAndTitle() {
ViewGroup decorView = (ViewGroup) this.activity.getWindow().getDecorView();
LinearLayout root = (LinearLayout) decorView.getChildAt(0);
FrameLayout titleContainer = (FrameLayout) root.getChildAt(0);
TextView title = (TextView) titleContainer.getChildAt(0);
title.setTextSize(20);
title.setGravity(Gravity.CENTER);
titleContainer.setBackgroundColor(Color.parseColor("#FF9000"));
title.setBackgroundColor(Color.parseColor("#FF9000"));

try {
FrameLayout titleContainer = (FrameLayout) root.getChildAt(0);
TextView title = (TextView) titleContainer.getChildAt(0);
title.setTextSize(20);
title.setGravity(Gravity.CENTER);
titleContainer.setBackgroundColor(Color.parseColor("#FF9000"));
title.setBackgroundColor(Color.parseColor("#FF9000"));
} catch (Exception ex) {
//for now it seems tablets blow up here ... need to play with one to figure out why
}
}
}

0 comments on commit 8805aaf

Please sign in to comment.