-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/aarya123/CampusFeed
Conflicts: src/com/example/campusfeed/EventOrganizer.java src/com/example/campusfeed/MainActivity.java src/com/example/campusfeed/TimePickerEvent.java
- Loading branch information
Showing
21 changed files
with
495 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:background="#ffffff" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" > | ||
|
||
<ImageView | ||
android:id="@+id/account_choice_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentTop="true" | ||
android:layout_marginLeft="17dp" | ||
android:layout_marginTop="15dp" | ||
android:src="@drawable/event_not_yet" /> | ||
|
||
<TextView | ||
android:id="@+id/account_choice_textview" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="#000000" | ||
|
||
android:layout_alignBottom="@+id/account_choice_icon" | ||
android:layout_marginLeft="28dp" | ||
android:layout_toRightOf="@+id/account_choice_icon" | ||
android:text="Large Text" | ||
android:textAppearance="?android:attr/textAppearanceLarge" /> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:background="#ededed" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" > | ||
|
||
|
||
|
||
<ListView | ||
android:id="@+id/account_settings_list" | ||
android:layout_width="match_parent" | ||
android:layout_height="fill_parent" | ||
android:dividerHeight="10dp" | ||
|
||
android:divider="#ededed" | ||
|
||
android:paddingLeft="10dp" | ||
android:paddingRight="10dp" > | ||
|
||
</ListView> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package com.example.campusfeed; | ||
|
||
import java.io.IOException; | ||
import org.apache.http.HttpResponse; | ||
import org.apache.http.ParseException; | ||
import org.apache.http.client.ClientProtocolException; | ||
import org.apache.http.client.HttpClient; | ||
import org.apache.http.client.methods.HttpGet; | ||
import org.apache.http.impl.client.DefaultHttpClient; | ||
import org.apache.http.util.EntityUtils; | ||
|
||
import android.os.AsyncTask; | ||
import android.os.Bundle; | ||
import android.app.Activity; | ||
import android.util.Log; | ||
import android.view.View; | ||
import android.view.View.OnClickListener; | ||
import android.widget.AdapterView; | ||
import android.widget.AdapterView.OnItemClickListener; | ||
import android.widget.Button; | ||
import android.widget.EditText; | ||
import android.widget.ListView; | ||
import android.widget.TextView; | ||
import android.widget.Toast; | ||
|
||
public class AccountSettings extends Activity | ||
{ | ||
public void onCreate(Bundle savedInstanceState) | ||
{ | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_account_settings); | ||
// ACCOUNT OPTIONS | ||
String[] choices=new String[]{"Create an Event","My Events","Following","My Groups","My School","About CampusFeed"}; | ||
ListView accountChoices=(ListView)findViewById(R.id.account_settings_list); | ||
AccountSettingsAdapter adapter=new AccountSettingsAdapter(this.getApplicationContext(),R.id.account_settings_list,choices); | ||
accountChoices.setSelector(android.R.color.holo_blue_light); | ||
accountChoices.setChoiceMode(ListView.CHOICE_MODE_SINGLE); | ||
accountChoices.setAdapter(adapter); | ||
accountChoices.setOnItemClickListener(new OnItemClickListener(){ | ||
/* | ||
* (non-Javadoc) | ||
* @see android.widget.AdapterView.OnItemClickListener#onItemClick(android.widget.AdapterView, android.view.View, int, long) | ||
* | ||
* we need to set the switcher here. Based on each option | ||
* | ||
*/ | ||
|
||
@Override | ||
public void onItemClick(AdapterView<?> arg0, View arg1, int position, | ||
long arg3) { | ||
if(position==0){ | ||
Toast.makeText(getApplicationContext(), position+"", Toast.LENGTH_LONG).show(); | ||
} | ||
else | ||
if(position==1){ | ||
// choice | ||
} | ||
else | ||
if(position==2){ | ||
// choice... | ||
} | ||
else | ||
if(position==3){ | ||
|
||
} | ||
else | ||
if(position==4){ | ||
|
||
} | ||
else | ||
if(position==5){ | ||
|
||
} | ||
|
||
} | ||
|
||
}); | ||
} | ||
} |
Oops, something went wrong.