This repository has been archived by the owner on May 18, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added event session details and description screens
- Loading branch information
1 parent
f962cfc
commit d37da22
Showing
6 changed files
with
198 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
style="@style/MainTabLayout"> | ||
|
||
<ScrollView | ||
style="@style/ScrollView" | ||
android:fillViewport="true" > | ||
|
||
<TextView | ||
style="@style/Text" | ||
android:id="@+id/event_session_description_textview" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" /> | ||
|
||
</ScrollView> | ||
|
||
</FrameLayout> |
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,50 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
style="@style/MainTabLayout"> | ||
|
||
<ScrollView | ||
style="@style/ScrollView"> | ||
|
||
<RelativeLayout | ||
style="@style/ScrollableContainerLayout"> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:paddingBottom="20dp"> | ||
|
||
<TextView | ||
style="@style/Text" | ||
android:id="@+id/event_session_details_textview_name" /> | ||
|
||
<TextView | ||
style="@style/Text" | ||
android:id="@+id/event_session_details_textview_leaders" /> | ||
|
||
<TextView | ||
style="@style/Text" | ||
android:id="@+id/event_session_details_textview_time" /> | ||
|
||
<TextView | ||
style="@style/Text" | ||
android:id="@+id/event_session_details_textview_room" /> | ||
|
||
<TextView | ||
style="@style/Text" | ||
android:id="@+id/event_session_details_textview_rating" /> | ||
|
||
</LinearLayout> | ||
|
||
<ListView | ||
style="@style/MenuListView" | ||
android:layout_alignParentBottom="true" | ||
android:id="@+id/event_session_details_menu" | ||
android:entries="@array/event_session_details_options_array" /> | ||
|
||
</RelativeLayout> | ||
|
||
</ScrollView> | ||
|
||
</FrameLayout> |
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
45 changes: 45 additions & 0 deletions
45
src/com/springsource/greenhouse/activities/EventSessionDescriptionActivity.java
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,45 @@ | ||
package com.springsource.greenhouse.activities; | ||
|
||
import org.springframework.social.greenhouse.EventSession; | ||
|
||
import android.app.Activity; | ||
import android.os.Bundle; | ||
import android.widget.TextView; | ||
|
||
import com.springsource.greenhouse.R; | ||
import com.springsource.greenhouse.util.SharedDataManager; | ||
|
||
public class EventSessionDescriptionActivity extends Activity { | ||
|
||
//*************************************** | ||
// Activity methods | ||
//*************************************** | ||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.event_session_description); | ||
} | ||
|
||
@Override | ||
public void onStart() { | ||
super.onStart(); | ||
refreshSessionDescription(); | ||
} | ||
|
||
|
||
//*************************************** | ||
// Private methods | ||
//*************************************** | ||
private void refreshSessionDescription() { | ||
|
||
final TextView textViewDescription = (TextView) findViewById(R.id.event_session_description_textview); | ||
|
||
EventSession session = SharedDataManager.getCurrentSession(); | ||
|
||
if (session == null) { | ||
return; | ||
} | ||
|
||
textViewDescription.setText(session.getDescription()); | ||
} | ||
} |
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