diff options
Diffstat (limited to 'android/SameGame/app/src/main/res/layout')
3 files changed, 100 insertions, 0 deletions
diff --git a/android/SameGame/app/src/main/res/layout/activity_main.xml b/android/SameGame/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..60e93f9 --- /dev/null +++ b/android/SameGame/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+xmlns:android="http://schemas.android.com/apk/res/android"
+xmlns:tools="http://schemas.android.com/tools"
+android:layout_width="match_parent"
+android:layout_height="match_parent"
+tools:context=".MainActivity">
+
+<!--on below line we are creating a grid view-->
+<GridView
+ android:id="@+id/idGRV"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:horizontalSpacing="1dp"
+ android:numColumns="6"
+ android:verticalSpacing="1dp" />
+
+</RelativeLayout>
\ No newline at end of file diff --git a/android/SameGame/app/src/main/res/layout/gridview_item.xml b/android/SameGame/app/src/main/res/layout/gridview_item.xml new file mode 100644 index 0000000..42b5e45 --- /dev/null +++ b/android/SameGame/app/src/main/res/layout/gridview_item.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+xmlns:android="http://schemas.android.com/apk/res/android"
+xmlns:app="http://schemas.android.com/apk/res-auto"
+android:padding="2dp"
+android:background="#E0F7FA"
+android:layout_width="match_parent"
+android:layout_height="match_parent">
+
+<androidx.cardview.widget.CardView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:padding="4dp"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+<!--
+ <ImageView
+ android:id="@+id/idIVCourse"
+ android:layout_width="80dp"
+ android:layout_height="80dp"
+ android:layout_gravity="center"
+ android:layout_margin="5dp"
+ android:padding="4dp"
+ android:src="@mipmap/ic_launcher" />
+
+
+
+ <TextView
+ android:id="@+id/idTVCourse"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_margin="5dp"
+ android:padding="4dp"
+ android:text="@string/app_name"
+ android:textAlignment="center"
+ android:textColor="@color/black" />
+ -->
+ </androidx.constraintlayout.widget.ConstraintLayout>
+</androidx.cardview.widget.CardView>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/android/SameGame/app/src/main/res/layout/row.xml b/android/SameGame/app/src/main/res/layout/row.xml new file mode 100644 index 0000000..08c1896 --- /dev/null +++ b/android/SameGame/app/src/main/res/layout/row.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/layoutbg"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent" >
+
+ <RelativeLayout
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:gravity="center"
+ android:orientation="horizontal" >
+<!--
+ <ImageView
+ android:id="@+id/idIVCourse"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_margin="2dp"
+ android:padding="1dp"
+ />
+ - android:src="@mipmap/ic_launcher" -->
+
+ <TextView
+ android:id="@+id/idTVCourse"
+ android:layout_width="100dp"
+ android:layout_height="77dp"
+ android:layout_gravity="center"
+ android:layout_margin="1dp"
+ android:padding="1dp"
+ android:background="@color/white"
+ android:text="@string/app_name"
+ android:textAlignment="center"
+ android:textColor="@color/black" />
+</RelativeLayout>
+</RelativeLayout>
\ No newline at end of file |