Skip to content

Commit

Permalink
UI Components added
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-chauhan-opendoor committed Aug 7, 2017
1 parent de8e8c2 commit 23a2406
Show file tree
Hide file tree
Showing 37 changed files with 428 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".LoginActivity" />
<activity android:name=".NotApprovedActivity" />
<activity
android:name=".SIGDetailActivity"
android:label="@string/title_activity_sigdetail"
android:theme="@style/AppTheme.NoActionBar" />
<activity android:name=".EventDetailActivity"></activity>
</application>

</manifest>
13 changes: 13 additions & 0 deletions app/src/main/java/app/com/ieeedtu/EventDetailActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package app.com.ieeedtu;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class EventDetailActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_event_detail);
}
}
13 changes: 13 additions & 0 deletions app/src/main/java/app/com/ieeedtu/LoginActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package app.com.ieeedtu;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class LoginActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
}
}
13 changes: 13 additions & 0 deletions app/src/main/java/app/com/ieeedtu/NotApprovedActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package app.com.ieeedtu;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class NotApprovedActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_not_approved);
}
}
20 changes: 20 additions & 0 deletions app/src/main/java/app/com/ieeedtu/SIGDetailActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package app.com.ieeedtu;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;

public class SIGDetailActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sigdetail);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
}

}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions app/src/main/res/layout/activity_event_detail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="app.com.ieeedtu.EventDetailActivity">

</android.support.constraint.ConstraintLayout>
37 changes: 37 additions & 0 deletions app/src/main/res/layout/activity_login.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="@style/AppTheme.NoActionBar"
tools:context="app.com.ieeedtu.LoginActivity">

<ImageView
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:scaleType="fitCenter"
android:src="@drawable/ieeedtulogo"
app:layout_constraintDimensionRatio="h,1:1"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:id="@+id/imageView2"
app:layout_constraintHorizontal_bias="0.0" />

<Button
android:id="@+id/button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Login"
android:layout_marginTop="8dp"
app:layout_constraintTop_toBottomOf="@+id/imageView2"
android:layout_marginRight="8dp"
app:layout_constraintRight_toRightOf="parent"
android:layout_marginLeft="8dp"
app:layout_constraintLeft_toLeftOf="parent" />

</android.support.constraint.ConstraintLayout>
59 changes: 59 additions & 0 deletions app/src/main/res/layout/activity_not_approved.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="app.com.ieeedtu.NotApprovedActivity"
android:theme="@style/AppTheme.NoActionBar">

<android.support.constraint.ConstraintLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="8dp"
android:layout_marginLeft="8dp"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginRight="8dp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="8dp"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintVertical_bias="0.5">
<ImageView
android:id="@+id/imageView3"
android:layout_width="0dp"
android:layout_height="100dp"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:src="@drawable/ic_not_interested_black_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp" />

<TextView
android:id="@+id/textView3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:text="Your account is waiting for approval.\nPlease check in after some time."
android:textAlignment="center"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView3"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp" />
</android.support.constraint.ConstraintLayout>



</android.support.constraint.ConstraintLayout>
11 changes: 11 additions & 0 deletions app/src/main/res/layout/activity_sigdetail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="app.com.ieeedtu.SIGDetailActivity"
android:orientation="vertical">


</LinearLayout>
41 changes: 41 additions & 0 deletions app/src/main/res/layout/coordinator_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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="72dp"
android:orientation="horizontal"
android:layout_marginBottom="16dp">

<ImageView
android:id="@+id/coordinator_image"
android:tint="@color/colorAccent"
android:src="@drawable/ic_account_circle_black_24dp"
android:layout_width="40dp"
android:layout_height="match_parent"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:layout_marginRight="16dp"/>

<LinearLayout
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_weight="1"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:orientation="vertical">

<TextView
android:id="@+id/coordinator_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="16sp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:text="John Doe"/>

<TextView
android:id="@+id/coordinator_mobile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="2dp"
android:text="+91 9876543210"/>
</LinearLayout>
</LinearLayout>
53 changes: 53 additions & 0 deletions app/src/main/res/layout/council_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?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="72dp"
android:layout_marginBottom="16dp"
android:orientation="horizontal">

<ImageView
android:id="@+id/council_image"
android:layout_width="40dp"
android:layout_height="match_parent"
android:layout_marginBottom="16dp"
android:layout_marginRight="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="16dp"
android:tint="@color/colorAccent"
android:src="@drawable/ic_account_circle_black_24dp" />

<LinearLayout
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:orientation="vertical">

<TextView
android:id="@+id/council_member_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="John Doe"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textSize="16sp" />

<TextView
android:id="@+id/council_member_designation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Chairperson, IEEE Computer Society DTU"
android:textSize="14sp" />
</LinearLayout>

<!--<ImageView-->
<!--android:id="@+id/coordinator_fb_link"-->
<!--android:layout_width="40dp"-->
<!--android:layout_height="match_parent"-->
<!--android:layout_marginBottom="16dp"-->
<!--android:layout_marginRight="16dp"-->
<!--android:layout_marginEnd="16dp"-->
<!--android:layout_marginTop="16dp"-->
<!--android:src="@drawable/ic_account_circle_black_24dp" />-->

</LinearLayout>
42 changes: 42 additions & 0 deletions app/src/main/res/layout/event_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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="72dp"
android:layout_marginBottom="16dp"
android:orientation="horizontal">

<ImageView
android:layout_width="40dp"
android:layout_height="match_parent"
android:layout_marginBottom="16dp"
android:layout_marginRight="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="16dp"
android:tint="@color/colorAccent"
android:src="@drawable/ic_event_black_24dp" />

<LinearLayout
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:orientation="vertical">

<TextView
android:id="@+id/council_member_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Event Name"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textSize="16sp" />

<TextView
android:id="@+id/event_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="07-Aug-17"
android:textSize="14sp" />
</LinearLayout>

</LinearLayout>
58 changes: 58 additions & 0 deletions app/src/main/res/layout/news_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?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="wrap_content"
android:layout_marginBottom="16dp"
android:orientation="vertical">

<TextView
android:id="@+id/news_heading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Headline"
android:textAppearance="@style/TextAppearance.AppCompat.Headline" />

<TextView
android:id="@+id/news_published_on"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="14:51, 07-Aug-17"
android:textAppearance="@style/Base.TextAppearance.AppCompat.Caption" />

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"/>

<TextView
android:id="@+id/news_body"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Body"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />

<ImageView
android:id="@+id/news_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="4dp"
android:adjustViewBounds="true"
android:scaleType="fitCenter" />

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"/>

<TextView
android:id="@+id/news_published_by"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="16sp"
android:text="John Doe"/>

</LinearLayout>
Loading

0 comments on commit 23a2406

Please sign in to comment.