-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "First attempt to use RecyclerView"
This reverts commit 833ffcd.
- Loading branch information
1 parent
833ffcd
commit 19ae4e1
Showing
6 changed files
with
73 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 21 additions & 34 deletions
55
...Whisply/src/main/java/fr/tvbarthel/games/chasewhisply/ui/adapter/GameModeViewAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 28 additions & 20 deletions
48
ChaseWhisply/src/main/res/layout/fragment_game_mode_chooser.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
android:layout_height="match_parent" | ||
android:padding="@dimen/default_padding"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="100dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAppearance="?android:attr/textAppearanceLarge" | ||
android:textColor="@color/text_view_grey" | ||
android:gravity="center" | ||
android:layout_gravity="top" | ||
android:textColor="@color/holo_dark_green" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" | ||
android:text="@string/level_chooser" | ||
android:padding="@dimen/card_content_padding" | ||
android:paddingBottom="30dp" /> | ||
android:id="@+id/textView" | ||
android:layout_gravity="center" | ||
android:layout_marginBottom="@dimen/default_half_vertical_margin" /> | ||
|
||
<android.support.v7.widget.RecyclerView | ||
android:scrollbars="vertical" | ||
<GridView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/gamemode_grid_view" | ||
android:paddingLeft="@dimen/default_padding" | ||
android:paddingRight="@dimen/default_padding" | ||
android:paddingBottom="@dimen/default_padding" | ||
android:paddingTop="100dp" | ||
android:layout_gravity="center" | ||
android:columnWidth="@dimen/game_mode_width" | ||
android:numColumns="auto_fit" | ||
android:layout_above="@+id/fragment_game_mode_chooser_remember" | ||
android:layout_below="@+id/textView" | ||
android:verticalSpacing="@dimen/grid_view_spacing" | ||
android:horizontalSpacing="@dimen/grid_view_spacing" | ||
android:stretchMode="columnWidth" | ||
android:scrollbarStyle="outsideOverlay" | ||
android:clipToPadding="false" /> | ||
android:scrollbarStyle="outsideInset" /> | ||
|
||
<TextView | ||
android:id="@+id/fragment_game_mode_chooser_remember" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:background="@drawable/card_shadow_base" | ||
android:layout_marginTop="@dimen/default_half_vertical_margin" | ||
android:padding="@dimen/half_padding" | ||
android:text="@string/fragment_game_mode_chooser_remember" | ||
android:textColor="@color/text_view_grey" /> | ||
|
||
</FrameLayout> | ||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters