This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from ryanwarsaw/master
[V2] Content structuring
- Loading branch information
Showing
28 changed files
with
498 additions
and
532 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
app/src/androidTest/java/com/ryanwarsaw/coach_erevu/ExampleInstrumentedTest.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
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
50 changes: 38 additions & 12 deletions
50
app/src/main/java/com/ryanwarsaw/coach_erevu/activity/ActionActivity.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
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
34 changes: 34 additions & 0 deletions
34
app/src/main/java/com/ryanwarsaw/coach_erevu/activity/TopicActivity.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,34 @@ | ||
package com.ryanwarsaw.coach_erevu.activity; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.widget.ListView; | ||
|
||
import com.google.gson.Gson; | ||
import com.google.gson.GsonBuilder; | ||
import com.ryanwarsaw.coach_erevu.R; | ||
import com.ryanwarsaw.coach_erevu.adapter.TopicAdapter; | ||
import com.ryanwarsaw.coach_erevu.model.Category; | ||
import com.ryanwarsaw.coach_erevu.model.Preferences; | ||
|
||
public class TopicActivity extends AppCompatActivity { | ||
|
||
private Category category; | ||
private Preferences preferences; | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_topic); | ||
|
||
final Gson gson = new GsonBuilder().create(); | ||
final Intent intent = getIntent(); | ||
|
||
category = gson.fromJson(intent.getStringExtra("category"), Category.class); | ||
preferences = gson.fromJson(intent.getStringExtra("preferences"), Preferences.class); | ||
|
||
((ListView) findViewById(R.id.topic_list_options)) | ||
.setAdapter(new TopicAdapter(this, category, preferences)); | ||
} | ||
} |
Oops, something went wrong.