Skip to content

Commit

Permalink
Added Team Activity
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurabh Joshi committed May 26, 2014
1 parent b102399 commit f866f78
Show file tree
Hide file tree
Showing 14 changed files with 314 additions and 2 deletions.
8 changes: 8 additions & 0 deletions vitinfo2/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id"/>,
<activity android:name="com.facebook.LoginActivity"/>

<activity android:name="com.karthikb351.vitinfo2.TeamScreen"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="com.karthikb351.vitinfo2.TeamScreen" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<activity
android:name="com.karthikb351.vitinfo2.SubjectDetails"
android:screenOrientation="portrait"
Expand Down
2 changes: 0 additions & 2 deletions vitinfo2/src/main/java/com/karthikb351/vitinfo2/Home.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ public void onConfigurationChanged(Configuration newConfig) {
//For QR and NFC
public String token = "";

public Fragment dataFrag = null;

/** Swaps fragments in the main content view */
public void selectItem_Async(int position) {

Expand Down
83 changes: 83 additions & 0 deletions vitinfo2/src/main/java/com/karthikb351/vitinfo2/TeamScreen.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
package com.karthikb351.vitinfo2;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;

/**
* Created by saurabh on 5/25/14.
*/
public class TeamScreen extends ActionBarActivity implements View.OnClickListener{

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

Tracker t = ((Application) getApplication()).getTracker(Application.TrackerName.GLOBAL_TRACKER);
t.setScreenName("TeamScreen");
t.send(new HitBuilders.AppViewBuilder().build());

supportRequestWindowFeature(Window.FEATURE_NO_TITLE);

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.fragment_team_screen);

setStuff((TextView) findViewById(R.id.lbl_sau));
setStuff((TextView) findViewById(R.id.lbl_sid));
setStuff((TextView) findViewById(R.id.lbl_kis));
setStuff((TextView) findViewById(R.id.lbl_vib));
setStuff((TextView) findViewById(R.id.lbl_kar));

setStuff((TextView) findViewById(R.id.lbl_sau_sub));
setStuff((TextView) findViewById(R.id.lbl_sid_sub));
setStuff((TextView) findViewById(R.id.lbl_kis_sub));
setStuff((TextView) findViewById(R.id.lbl_vib_sub));
setStuff((TextView) findViewById(R.id.lbl_kar_sub));

}

private void setStuff(TextView textView){
textView.setOnClickListener(this);
}

@Override
public void onClick(View view) {
Intent i = new Intent(Intent.ACTION_VIEW);

switch (view.getId()){
case R.id.lbl_sau:
i.setData(Uri.parse("https://github.com/battlex2010"));
break;

case R.id.lbl_sid:
i.setData(Uri.parse("https://github.com/biocross"));
break;

case R.id.lbl_kis:
i.setData(Uri.parse("https://github.com/kishore-narendran"));
break;

case R.id.lbl_vib:
i.setData(Uri.parse("https://github.com/vibhorvarshneya"));
break;

case R.id.lbl_kar:
i.setData(Uri.parse("https://github.com/karthikb351"));
break;

default:
return;
}

startActivity(i);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.karthikb351.vitinfo2.Home;
import com.karthikb351.vitinfo2.R;
import com.karthikb351.vitinfo2.SubjectDetails;
import com.karthikb351.vitinfo2.TeamScreen;
import com.karthikb351.vitinfo2.VITxAPI;
import com.karthikb351.vitinfo2.adapters.NowFragmentListAdapter;
import com.karthikb351.vitinfo2.objects.CaptchaDialogListener;
Expand Down Expand Up @@ -249,9 +250,11 @@ public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {


if(!dat.getviewShowCase()){
getActivity().startActivity(new Intent(getActivity(), TeamScreen.class));
ShowcaseView.ConfigOptions f = new ShowcaseView.ConfigOptions();
f.hideOnClickOutside = false;
f.centerText = true;

if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB) {
ShowcaseView.insertShowcaseView(getActivity().findViewById(android.R.id.home), getActivity(), "Drawer", "Tap the icon or swipe from left to access the menu.", f);
}
Expand Down
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.
Binary file added vitinfo2/src/main/res/drawable-hdpi/logo.png
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.
5 changes: 5 additions & 0 deletions vitinfo2/src/main/res/drawable/team_back.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/logo_back"
android:gravity="top|clip_vertical" >
</bitmap>
206 changes: 206 additions & 0 deletions vitinfo2/src/main/res/layout/fragment_team_screen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/logo_back"
xmlns:app="http://schemas.android.com/apk/res-auto">

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

<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/img_logo"
android:layout_marginTop="15dp"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/logo"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
app:border_width="1dp"
app:border_color="#FFFFFF"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:id="@+id/lbl_team"
android:layout_marginTop="15dp"
android:textSize="25sp"
android:layout_below="@id/img_logo"
android:textColor="@color/Black"
android:text="TEAM"
app:typeface="roboto_thin"
/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_sau"
android:text="Saurabh Joshi"
android:autoLink="web"
android:textSize="20sp"
android:textColor="@color/Black"
android:layout_marginTop="20dp"
android:layout_centerHorizontal="true"
android:layout_below="@id/lbl_team"
app:typeface="roboto_light"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_sau_sub"
android:textColor="@color/Black"
android:text="Android|WP8"
android:textSize="13sp"
android:layout_marginTop="2dp"
android:layout_centerHorizontal="true"
android:layout_below="@id/lbl_sau"
app:typeface="roboto_light_italic"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_sid"
android:layout_below="@id/lbl_sau_sub"
android:textColor="@color/Black"
android:text="Siddharth Gupta"
android:textSize="20sp"
android:layout_marginTop="20dp"
android:layout_centerHorizontal="true"
app:typeface="roboto_light"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_sid_sub"
android:text="iOS|Web"
android:textSize="13sp"
android:textColor="@color/Black"
android:layout_marginTop="2dp"
android:layout_centerHorizontal="true"
android:layout_below="@id/lbl_sid"
app:typeface="roboto_light_italic"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_kis"
android:layout_below="@id/lbl_sid_sub"
android:text="Kishore Narendran"
android:textColor="@color/Black"
android:textSize="20sp"
android:layout_marginTop="20dp"
android:layout_centerHorizontal="true"
app:typeface="roboto_light"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_kis_sub"
android:text="App Engine"
android:textSize="13sp"
android:layout_marginTop="2dp"
android:textColor="@color/Black"
android:layout_centerHorizontal="true"
android:layout_below="@id/lbl_kis"
app:typeface="roboto_light_italic"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_vib"
android:layout_below="@id/lbl_kis_sub"
android:text="Vibhor Varshney"
android:textSize="20sp"
android:textColor="@color/Black"
android:layout_marginTop="20dp"
android:layout_centerHorizontal="true"
app:typeface="roboto_light"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_vib_sub"
android:text="Android|Design"
android:textSize="13sp"
android:layout_marginTop="2dp"
android:textColor="@color/Black"
android:layout_centerHorizontal="true"
android:layout_below="@id/lbl_vib"
app:typeface="roboto_light_italic"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_kar"
android:layout_below="@id/lbl_vib_sub"
android:text="Karthik Balakrishnan"
android:textColor="@color/Black"
android:textSize="20sp"
android:layout_marginTop="20dp"
android:layout_centerHorizontal="true"
app:typeface="roboto_light"/>

<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lbl_kar_sub"
android:text="Legacy Android"
android:textSize="13sp"
android:layout_marginTop="2dp"
android:layout_centerHorizontal="true"
android:textColor="@color/Black"
android:layout_below="@id/lbl_kar"
app:typeface="roboto_light_italic"/>

<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:layout_marginBottom="5dp"
android:layout_below="@id/lbl_kar_sub"
android:layout_centerHorizontal="true"
android:orientation="horizontal">

<ImageView
android:id="@+id/img_android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="1dp"
android:src="@drawable/app_engine_icon"
/>
<ImageView
android:id="@+id/img_apple"
android:layout_toRightOf="@id/img_android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="1dp"
android:src="@drawable/android_icon"
/>

<ImageView
android:id="@+id/img_wp"
android:layout_toRightOf="@id/img_apple"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="1dp"
android:src="@drawable/apple_icon"
/>

<ImageView
android:id="@+id/img_ae"
android:layout_toRightOf="@id/img_wp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="1dp"
android:src="@drawable/windows_icon"
/>
</RelativeLayout>

</RelativeLayout>

</ScrollView>
1 change: 1 addition & 0 deletions vitinfo2/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
<string name="zxinglib_msg_default_status">Place your friends QR inside the rectangle to scan it.</string>
<string name="scan">Scan</string>
<string name="scan_resut_lable">Scan Result:</string>

</resources>
8 changes: 8 additions & 0 deletions vitinfo2/src/main/res/xml/activity_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@
android:key="pref_open"
android:summary="License details for open source software"
android:title="Open Source Licenses"/>

<Preference
android:title="About Us"
android:summary="Follow the team">
<intent android:action="com.karthikb351.vitinfo2.TeamScreen">
</intent>
</Preference>

<Preference
android:key="pref_feedback"
android:summary="Send us an email"
Expand Down

0 comments on commit f866f78

Please sign in to comment.