Skip to content
Browse files

Styled the main activity to full screen

  • Loading branch information...
1 parent 64f82af commit 6d92477ea9a739b7601169bf9232c2c5cbeee2ea @greylurk committed Mar 4, 2012
Showing with 15 additions and 6 deletions.
  1. +1 −1 AndroidManifest.xml
  2. +13 −5 res/layout/main.xml
  3. +1 −0 src/com/greylurk/hellotv/HelloTVActivity.java
View
2 AndroidManifest.xml
@@ -9,7 +9,7 @@
<application
android:icon="@drawable/ic_launcher"
- android:label="@string/app_name" >
+ android:label="@string/app_name">
<activity
android:name=".HelloTVActivity"
android:label="@string/app_name" >
View
18 res/layout/main.xml
@@ -1,12 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
- <fragment
- class="com.greylurk.hellotv.PictureFragment"
+ <fragment
android:id="@+id/pictureFrame"
android:layout_width="match_parent"
- android:layout_height="match_parent" />
+ android:layout_height="fill_parent"
+ android:layout_gravity="fill"
+ class="com.greylurk.hellotv.PictureFragment" />
-</FrameLayout>
+ <ProgressBar
+ android:id="@+id/progressBar1"
+ style="?android:attr/progressBarStyleHorizontal"
+ android:layout_width="match_parent"
+ android:layout_height="5dp"
+ android:layout_gravity="bottom" />
+
+</merge>
View
1 src/com/greylurk/hellotv/HelloTVActivity.java
@@ -7,6 +7,7 @@
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
+ super.setTheme(android.R.style.Theme_Holo_NoActionBar_Fullscreen);
super.onCreate(savedInstanceState);
setContentView( R.layout.main );
}

0 comments on commit 6d92477

Please sign in to comment.
Something went wrong with that request. Please try again.