Skip to content

Commit

Permalink
Prettified Who Am I screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cfraz89 committed Mar 4, 2014
1 parent 374660d commit ff34f32
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
24 changes: 15 additions & 9 deletions AndroidBootcamp/src/main/res/layout/activity_whoami.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<LinearLayout xmlns:android="http:https://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http:https://schemas.android.com/apk/res/android"
xmlns:tools="http:https://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand All @@ -14,18 +14,24 @@
android:layout_marginBottom="@dimen/default_inter_row_spacing"
android:text="@string/player_label"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<EditText
android:id="@+id/player_field"
android:layout_marginBottom="@dimen/default_inter_row_spacing"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:inputType="textPersonName" />
style="@style/PlayerLabelName"/>
<Button
android:id="@+id/player_ok_button"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/ok"
android:onClick="returnPlayer"/>
android:onClick="returnPlayer"
android:layout_alignParentRight="true"
android:layout_below="@id/player_label" />
<EditText
android:id="@+id/player_field"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:inputType="textPersonName"
android:layout_below="@id/player_label"
android:layout_toLeftOf="@+id/player_ok_button"
android:layout_alignBottom="@id/player_ok_button"/>


</LinearLayout>
</RelativeLayout>
1 change: 1 addition & 0 deletions AndroidBootcamp/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="default_inter_row_spacing">16dp</dimen>

<dimen name="intro_text_size">36sp</dimen>
</resources>
9 changes: 8 additions & 1 deletion AndroidBootcamp/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

<!-- Base application theme. -->
<style name="AppTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:actionBarStyle">@style/ActionBarBackground</item>
</style>
<style name="ActionBarBackground" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@color/highlight</item>
</style>

<style name="PlayerLabelName">
<item name="android:textSize">@dimen/intro_text_size</item>
<item name="android:textColor">@color/highlight</item>
</style>
</resources>

0 comments on commit ff34f32

Please sign in to comment.