Improve Android activity
6
.gitignore
vendored
|
@ -42,3 +42,9 @@ build_win/
|
|||
|
||||
# CLion
|
||||
.idea/
|
||||
|
||||
# Built apk
|
||||
android/app/app-release.apk
|
||||
|
||||
# Keystore
|
||||
android/keystore.jks
|
||||
|
|
|
@ -22,7 +22,7 @@ public class GameChooserActivity extends AppCompatActivity {
|
|||
fab.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
|
||||
Snackbar.make(view, "TODO: this is the part when the game should be added (list of supported games or autodetection?!?)", Snackbar.LENGTH_LONG)
|
||||
.setAction("Action", null).show();
|
||||
}
|
||||
});
|
||||
|
|
BIN
android/app/src/main/res/drawable-hdpi/ic_add_black_24dp.png
Normal file
After Width: | Height: | Size: 124 B |
BIN
android/app/src/main/res/drawable-hdpi/ic_add_white_24dp.png
Normal file
After Width: | Height: | Size: 127 B |
BIN
android/app/src/main/res/drawable-mdpi/ic_add_black_24dp.png
Normal file
After Width: | Height: | Size: 86 B |
BIN
android/app/src/main/res/drawable-mdpi/ic_add_white_24dp.png
Normal file
After Width: | Height: | Size: 88 B |
BIN
android/app/src/main/res/drawable-xhdpi/ic_add_black_24dp.png
Normal file
After Width: | Height: | Size: 108 B |
BIN
android/app/src/main/res/drawable-xhdpi/ic_add_white_24dp.png
Normal file
After Width: | Height: | Size: 97 B |
BIN
android/app/src/main/res/drawable-xxhdpi/ic_add_black_24dp.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
android/app/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png
Normal file
After Width: | Height: | Size: 97 B |
BIN
android/app/src/main/res/drawable-xxxhdpi/ic_add_black_24dp.png
Normal file
After Width: | Height: | Size: 119 B |
BIN
android/app/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png
Normal file
After Width: | Height: | Size: 102 B |
BIN
android/app/src/main/res/drawable/ray_ico_def_nz.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
android/app/src/main/res/drawable/ray_ico_sad_nz.png
Normal file
After Width: | Height: | Size: 28 KiB |
|
@ -29,6 +29,6 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:src="@android:drawable/ic_dialog_email" />
|
||||
android:src="@drawable/ic_add_white_24dp" />
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
|
|
|
@ -12,8 +12,45 @@
|
|||
tools:context="game.openrayman.GameChooserActivity"
|
||||
tools:showIn="@layout/activity_game_chooser">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:id="@+id/linearLayout"
|
||||
android:weightSum="1"
|
||||
android:layout_marginBottom="8dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:id="@+id/imageView"
|
||||
android:background="@drawable/ray_ico_sad_nz"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="0dp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World!" />
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="No games in library."
|
||||
android:id="@+id/textView"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginBottom="0dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/listView"
|
||||
android:layout_centerHorizontal="true"
|
||||
tools:listitem="@android:layout/simple_list_item_1"
|
||||
android:layout_below="@+id/linearLayout" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
<resources>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#ffcc00</color>
|
||||
<color name="colorPrimaryDark">#e6b800</color>
|
||||
<color name="colorAccent">#00b300</color>
|
||||
<color name="colorPrimary">#FF9800</color>
|
||||
<color name="colorPrimaryDark">#F57C00</color>
|
||||
<color name="colorAccent">#FFC107</color>
|
||||
</resources>
|
||||
|
|