-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4f6102
commit 88b75c4
Showing
11 changed files
with
108 additions
and
35 deletions.
There are no files selected for viewing
Binary file not shown.
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
29 changes: 29 additions & 0 deletions
29
app/src/main/java/srk/syracuse/gameofcards/Fragments/InformationFragment.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package srk.syracuse.gameofcards.Fragments; | ||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.TextView; | ||
|
||
import srk.syracuse.gameofcards.R; | ||
|
||
|
||
public class InformationFragment extends Fragment { | ||
|
||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
} | ||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||
Bundle savedInstanceState) { | ||
|
||
View rootView = getActivity().getLayoutInflater().inflate(R.layout.information_dialog, null); | ||
return rootView; | ||
|
||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<TextView | ||
android:id="@+id/infoContent" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:paddingLeft="5dp" | ||
android:paddingRight="5dp" | ||
android:text="@string/info_content" /> | ||
|
||
|
||
</LinearLayout> |
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,78 +1,87 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
style="@style/tableBackground" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
style="@style/tableBackground" | ||
tools:context=".MainActivity$PlaceholderFragment"> | ||
|
||
<View | ||
|
||
android:layout_width="320dp" | ||
android:background="@color/inputText" | ||
android:layout_height="470dp" | ||
android:alpha="0.3" | ||
android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" | ||
android:layout_centerHorizontal="true" /> | ||
android:alpha="0.3" | ||
android:background="@color/inputText" /> | ||
|
||
<TextView | ||
android:id="@+id/menuText" | ||
android:layout_width="280dp" | ||
android:paddingTop="10dp" | ||
android:layout_height="wrap_content" | ||
android:text="MAIN MENU" | ||
android:textColor="@color/headerText" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" | ||
android:textStyle="bold" | ||
android:gravity="center" | ||
android:textAppearance="?android:attr/textAppearanceLarge" /> | ||
android:paddingTop="10dp" | ||
android:text="MAIN MENU" | ||
android:textAppearance="?android:attr/textAppearanceLarge" | ||
android:textColor="@color/headerText" | ||
android:textStyle="bold" /> | ||
|
||
<com.rengwuxian.materialedittext.MaterialEditText | ||
android:id="@+id/userName" | ||
android:layout_width="300dp" | ||
android:layout_height="wrap_content" | ||
android:layout_alignEnd="@+id/menuText" | ||
android:layout_alignRight="@+id/menuText" | ||
android:layout_centerVertical="true" | ||
android:hint="username" | ||
app:met_iconLeft="@drawable/user_icon" | ||
android:inputType="text" | ||
android:lines="1" | ||
android:maxLength="30" | ||
app:met_baseColor="#ffffff" | ||
app:met_primaryColor="@color/editTextSelect" | ||
app:met_iconLeft="@drawable/user_icon" | ||
app:met_iconPadding="0dp" | ||
android:maxLength="30" | ||
android:lines="1" | ||
android:layout_centerVertical="true" | ||
android:layout_alignRight="@+id/menuText" | ||
android:layout_alignEnd="@+id/menuText" /> | ||
app:met_primaryColor="@color/editTextSelect" /> | ||
|
||
<Button | ||
android:id="@+id/hostGame" | ||
android:layout_width="200dp" | ||
android:layout_height="wrap_content" | ||
android:text="Host Game" | ||
android:textAllCaps="true" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginBottom="40dp" | ||
android:background="@drawable/button_drawable" | ||
android:textColor="@color/headerText" | ||
android:text="Host Game" | ||
android:textAllCaps="true" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" /> | ||
android:textColor="@color/headerText" /> | ||
|
||
|
||
<Button | ||
android:id="@+id/joinGame" | ||
android:layout_width="200dp" | ||
android:layout_marginBottom="40dp" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginBottom="40dp" | ||
android:background="@drawable/button_drawable" | ||
android:text="Join Game" | ||
android:textAllCaps="true" | ||
android:background="@drawable/button_drawable" | ||
android:textColor="@color/headerText" | ||
android:textAppearance="?android:attr/textAppearanceSmall" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" /> | ||
android:textColor="@color/headerText" /> | ||
|
||
<Button | ||
android:id="@+id/infoButton" | ||
android:layout_width="32dp" | ||
android:layout_height="32dp" | ||
android:background="@drawable/info_icon" | ||
android:layout_alignBottom="@+id/menuText" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,8 @@ | |
<item>king</item> | ||
</string-array> | ||
|
||
<string name="info_content">Thank you for downloading our Game of Cards app. We hope you are happy with your download. The app has been developed by Rohit Ramkumar (<a href="[email protected]">[email protected]</a>), Shivank Malik (<a href="[email protected]">[email protected]</a>) and Kunal Shrivastava (<a href="[email protected]">[email protected]</a>).\n\nThe way this app works has been described here. One of the player acts as host of the game and this player MUST have its hotspot on before the start of the app. The other players join to this hotspot before starting the game. The host player sees the "Host game" screen while the other players meet with the "Join game" screen. The host enters the number of players in order to host the game. This number is crucial to restrict the number of players in the game (maximum is 6). So, if the total number of players are 3 (including the host), then the host must enter 2 in the "Number of players" field.\n\nThe essence of the app is that there are no rules and the deck can be customized in more ways than one. Once the game begins after all the players and joined the game, the host gets the option to deal the cards from the deck during the game.\n\nWe do thoroughly test our apps, but it is impossible to test every phone/option combination. If you feel something is not working correctly with your app, please contact us directly at any of the aforementioned email address so that we can help you or fix a bug and get a new release out for all to benefit. And if you love our app, please post a review in the app store. Thank you!</string> | ||
|
||
|
||
<string name="title_activity_splash_screen">SplashScreenActivity</string> | ||
</resources> |