This file contains hidden or 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
| <menu | |
| xmlns:tools="http://schemas.android.com/tools" | |
| tools:context="chaos.dandroid.fonduemachsix.About"> | |
| </menu> |
This file contains hidden or 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
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context="chaos.dmfinalproject.About" | |
| > | |
| <WebView | |
| android:id="@+id/activity_main_webview" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" /> |
This file contains hidden or 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
| <activity | |
| android:name=".About" | |
| android:label="@string/title_activity_about" > | |
| </activity> | |
| </application> | |
| <uses-permission android:name="android.permission.INTERNET" /> |
This file contains hidden or 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
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.view.Menu; | |
| import android.view.MenuItem; | |
| import android.webkit.WebSettings; | |
| import android.webkit.WebView; | |
| public class About extends ActionBarActivity { | |
| private WebView mWebView; | |
| @Override |
This file contains hidden or 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
| public void onSectionAttached(int number) { | |
| switch (number) { | |
| case 1: | |
| mTitle = getString(R.string.title_section1); | |
| break; | |
| case 2: | |
| mTitle = getString(R.string.title_section2); | |
| break; | |
| } | |
| } |
This file contains hidden or 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
| @Override | |
| public void onNavigationDrawerItemSelected(int position) { | |
| // update the main content by replacing fragments | |
| FragmentManager fragmentManager = getSupportFragmentManager(); | |
| switch (position){ | |
| case 0: | |
| fragmentManager.beginTransaction() | |
| .replace(R.id.container, PlaceholderFragment.newInstance(position + 1)) | |
| .commit(); | |
| break; |
This file contains hidden or 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
| @Override | |
| public void onNavigationDrawerItemSelected(int position) { | |
| // update the main content by replacing fragments | |
| FragmentManager fragmentManager = getSupportFragmentManager(); | |
| switch (position){ | |
| case 0: | |
| fragmentManager.beginTransaction() | |
| .replace(R.id.container, PlaceholderFragment.newInstance(position + 1)) | |
| .commit(); | |
| break; |
This file contains hidden or 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
| <resources> | |
| <!-- Base application theme. --> | |
| <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
| <!-- Customize your theme here. --> | |
| <item name="colorPrimary">@color/primary</item> | |
| <item name="colorPrimaryDark">@color/primaryDark</item> | |
| <item name="android:navigationBarColor">@color/primary</item> | |
| <item name="colorAccent">@color/primary</item> | |
| </style> |
This file contains hidden or 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
| <resources> | |
| <!-- Base application theme. --> | |
| <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
| <!-- Customize your theme here. --> | |
| <item name="colorPrimary">@color/primary</item> | |
| <item name="colorPrimaryDark">@color/primaryDark</item> | |
| </style> | |
| </resources> |
This file contains hidden or 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
| <resources> | |
| <!--Color primary 500 from palette colors --> | |
| <color name="primary">#03A9F4</color> | |
| <!--Color primary dark 700 from palette colors --> | |
| <color name="primaryDark">#0288D1</color> | |
| </resources> |