Improve Android activity

This commit is contained in:
Hannes Mann 2016-07-26 06:56:58 +02:00
parent 2ebd50db4f
commit bd79221104
18 changed files with 50 additions and 9 deletions

6
.gitignore vendored
View file

@ -42,3 +42,9 @@ build_win/
# CLion
.idea/
# Built apk
android/app/app-release.apk
# Keystore
android/keystore.jks

View file

@ -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();
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View file

@ -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>

View file

@ -12,8 +12,45 @@
tools:context="game.openrayman.GameChooserActivity"
tools:showIn="@layout/activity_game_chooser">
<TextView
<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: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:text="Hello World!" />
android:id="@+id/listView"
android:layout_centerHorizontal="true"
tools:listitem="@android:layout/simple_list_item_1"
android:layout_below="@+id/linearLayout" />
</RelativeLayout>

View file

@ -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>

View file

@ -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>