Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CardView to Project Fragment Layout #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 171 additions & 9 deletions app/src/main/res/layout/fragment_projects.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,178 @@
<?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"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.v7.widget.CardView
android:id="@+id/cardView"
android:layout_width="250dp"
android:layout_height="110dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="18dp"
app:cardBackgroundColor="@color/colorAccent"
app:cardCornerRadius="25dp"
app:cardElevation="10dp">


<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Google India Scholarship 2018"
android:textColor="#ffff"
android:textSize="15sp" />


<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView2"
android:layout_centerHorizontal="true"
android:text="(GIS 2k18 app)"
android:textColor="#fff"
android:textSize="10sp" />

<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/textView2"
android:layout_alignParentBottom="true"
android:text="Flip to read"
android:textColor="#fff"
android:textSize="10sp" />

</RelativeLayout>

</android.support.v7.widget.CardView>


<android.support.v7.widget.CardView
android:id="@+id/cardView2"
android:layout_width="250dp"
android:layout_height="110dp"
android:layout_alignStart="@+id/cardView"
android:layout_below="@+id/cardView"
android:layout_marginTop="18dp"
app:cardBackgroundColor="@color/colorAccent"
app:cardCornerRadius="25dp"

app:cardElevation="10dp">

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Explore India"
android:textColor="#ffff"
android:textSize="15sp" />

<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_toEndOf="@+id/textView4"
android:text="Flip to read"
android:textColor="#fff"
android:textSize="10sp" />
</RelativeLayout>

</android.support.v7.widget.CardView>

<android.support.v7.widget.CardView
android:id="@+id/cardView3"
android:layout_width="250dp"
android:layout_height="110dp"
android:layout_alignStart="@+id/cardView2"
android:layout_below="@+id/cardView2"
android:layout_marginTop="18dp"
app:cardBackgroundColor="@color/colorAccent"
app:cardCornerRadius="25dp"

app:cardElevation="10dp">

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Blood Donation"
android:textColor="#ffff"
android:textSize="15sp" />

</RelativeLayout>

</android.support.v7.widget.CardView>

<android.support.v7.widget.CardView
android:id="@+id/cardView4"
android:layout_width="250dp"
android:layout_height="110dp"
android:layout_alignStart="@+id/cardView3"
android:layout_below="@+id/cardView3"
android:layout_marginTop="18dp"
app:cardBackgroundColor="@color/colorAccent"
app:cardCornerRadius="25dp"
app:cardElevation="10dp">

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"

android:text="Quiz "
android:textColor="#ffff"
android:textSize="15dp" />

<TextView
android:id="@+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_marginEnd="25dp"
android:text="Flip to read"
android:textColor="#fff"
android:textSize="10sp" />
</RelativeLayout>
</android.support.v7.widget.CardView>

<TextView
android:id="@+id/textView"
android:id="@+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Project"
android:textColor="@android:color/black"
android:textSize="24sp"
android:textStyle="bold" />
</FrameLayout>
android:layout_above="@+id/cardView4"
android:layout_alignEnd="@+id/cardView3"
android:layout_marginEnd="33dp"
android:text="Flip to read"
android:textColor="#fff"
android:textSize="10sp" />

</RelativeLayout>