Skip to content

Commit

Permalink
Support tablets for splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjluc committed Feb 27, 2015
1 parent 087aa24 commit bc4acfa
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
10 changes: 0 additions & 10 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />

<uses-feature
android:name="android.hardware.telephony"
android:required="true" />

<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="false" />

<application
android:allowBackup="true"
android:icon="@drawable/logo"
Expand Down
22 changes: 11 additions & 11 deletions app/src/main/res/layout/splash_screen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
android:textColor="@color/blue"
android:text="THIS IS A"
android:gravity="center"
android:textSize="36sp" />
android:textSize="@dimen/splash_header_text" />

<chrisjluc.onesearch.ui.components.GameBoldTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="@color/blue"
android:text="WORD SEARCH"
android:gravity="center"
android:textSize="36sp" />
android:textSize="@dimen/splash_header_text" />
</LinearLayout>

<LinearLayout
Expand All @@ -45,7 +45,7 @@
android:textColor="@color/blue"
android:text="THE WORD ONLY"
android:gravity="center"
android:textSize="24sp" />
android:textSize="@dimen/splash_center_text" />

<LinearLayout
android:layout_width="fill_parent"
Expand All @@ -59,7 +59,7 @@
android:textColor="@color/blue"
android:text="APPEARS"
android:gravity="center"
android:textSize="24sp" />
android:textSize="@dimen/splash_center_text" />

<chrisjluc.onesearch.ui.components.GameTextView
android:layout_marginLeft="8dp"
Expand All @@ -68,7 +68,7 @@
android:textColor="@color/green"
android:text="ONCE"
android:gravity="center"
android:textSize="24sp" />
android:textSize="@dimen/splash_center_text" />

</LinearLayout>

Expand All @@ -78,7 +78,7 @@
android:textColor="@color/blue"
android:text="IN THE GRID."
android:gravity="center"
android:textSize="24sp" />
android:textSize="@dimen/splash_center_text" />
</LinearLayout>

<LinearLayout
Expand All @@ -93,39 +93,39 @@
android:textColor="@color/blue"
android:text="HORIZONTALLY,"
android:gravity="center"
android:textSize="32sp" />
android:textSize="@dimen/splash_bottom_text" />

<chrisjluc.onesearch.ui.components.GameBoldTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="@color/blue"
android:text="VERTICALLY,"
android:gravity="center"
android:textSize="32sp" />
android:textSize="@dimen/splash_bottom_text" />

<chrisjluc.onesearch.ui.components.GameBoldTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="@color/blue"
android:text="DIAGONALLY"
android:gravity="center"
android:textSize="32sp" />
android:textSize="@dimen/splash_bottom_text" />

<chrisjluc.onesearch.ui.components.GameTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="@color/blue"
android:text="and sometimes,"
android:gravity="center"
android:textSize="32sp" />
android:textSize="@dimen/splash_bottom_text" />

<chrisjluc.onesearch.ui.components.GameBoldTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="@color/blue"
android:text="BACKWARDS."
android:gravity="center"
android:textSize="32sp" />
android:textSize="@dimen/splash_bottom_text" />
</LinearLayout>
</LinearLayout>

Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values-h820dp/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
<dimen name="grid_horizontal_margin">16dp</dimen>
<dimen name="results_title_padding">16dp</dimen>
<dimen name="results_title_size">32sp</dimen>

<dimen name="splash_header_text">48sp</dimen>
<dimen name="splash_center_text">36sp</dimen>
<dimen name="splash_bottom_text">36sp</dimen>

<dimen name="wordsearchactivity_indicator_text_title_size">24sp</dimen>
<dimen name="wordsearchactivity_indicator_text_size">36sp</dimen>

<dimen name="wordsearchfragment_word_size">44sp</dimen>
<dimen name="top_bar">160dp</dimen>
<dimen name="bottom_bar">80dp</dimen>
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
<dimen name="element_margin_separation">4dp</dimen>
<dimen name="results_title_padding">0dp</dimen>
<dimen name="results_title_size">24sp</dimen>

<dimen name="splash_header_text">36sp</dimen>
<dimen name="splash_center_text">28sp</dimen>
<dimen name="splash_bottom_text">28sp</dimen>

<dimen name="wordsearchactivity_indicator_text_padding_left">8dp</dimen>
<dimen name="wordsearchactivity_indicator_text_title_size">18sp</dimen>
<dimen name="wordsearchactivity_indicator_text_size">28sp</dimen>
<dimen name="wordsearchfragment_word_size">36sp</dimen>

<dimen name="top_bar">80dp</dimen>
<dimen name="bottom_bar">40dp</dimen>
</resources>

0 comments on commit bc4acfa

Please sign in to comment.