Skip to content

Commit

Permalink
Update Color Template, update package
Browse files Browse the repository at this point in the history
  • Loading branch information
gilangadhan committed Nov 21, 2018
1 parent e84fa08 commit 534ac46
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 40 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 03.RecyclerView/MyRecyclerView/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 04.Navigation/MyActionBar/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions 04.Navigation/MyActionBar/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>
2 changes: 1 addition & 1 deletion 04.Navigation/MyNavigationDrawer/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.dicoding.mynavigationdrawer"
applicationId "com.dicoding.picodiploma.mynavigationdrawer"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dicoding.mynavigationdrawer;
package com.dicoding.picodiploma.mynavigationdrawer;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand All @@ -21,6 +21,6 @@ public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.dicoding.mynavigationdrawer", appContext.getPackageName());
assertEquals("com.dicoding.picodiploma.mynavigationdrawer", appContext.getPackageName());
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dicoding.mynavigationdrawer">
package="com.dicoding.picodiploma.mynavigationdrawer">

<uses-permission android:name="android.permission.INTERNET" />
<application
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dicoding.mynavigationdrawer;
package com.dicoding.picodiploma.mynavigationdrawer;


import android.os.Bundle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dicoding.mynavigationdrawer;
package com.dicoding.picodiploma.mynavigationdrawer;

import android.os.Bundle;
import android.support.annotation.NonNull;
Expand Down Expand Up @@ -141,7 +141,7 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {

Fragment fragment = null;

String title;
String title = "";

if (id == R.id.nav_home) {

Expand All @@ -153,17 +153,17 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
Gunakanlah setarguments untuk mengirimkan data ke fragmet
*/
title = "Camera";
fragment = new HalamanFragment();
bundle.putString(HalamanFragment.EXTRAS, title);
fragment = new PageFragment();
bundle.putString(PageFragment.EXTRAS, title);
fragment.setArguments(bundle);

} else if (id == R.id.nav_gallery) {
/*
Gunakanlah setarguments untuk mengirimkan data ke fragmet
*/
title = "Gallery";
fragment = new HalamanFragment();
bundle.putString(HalamanFragment.EXTRAS, title);
fragment = new PageFragment();
bundle.putString(PageFragment.EXTRAS, title);
fragment.setArguments(bundle);

} else if (id == R.id.nav_slideshow) {
Expand All @@ -187,7 +187,8 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
.commit();
}

DrawerLayout drawer = findViewById(R.id.drawer_layout);
if (getSupportActionBar() != null)
getSupportActionBar().setTitle(title);
drawer.closeDrawer(GravityCompat.START);
return true;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dicoding.mynavigationdrawer;
package com.dicoding.picodiploma.mynavigationdrawer;


import android.app.Activity;
Expand All @@ -17,13 +17,13 @@
/**
* A simple {@link Fragment} subclass.
*/
public class HalamanFragment extends Fragment {
public class PageFragment extends Fragment {

public static final String EXTRAS = "extras";

TextView textView;

public HalamanFragment() {
public PageFragment() {
// Required empty public constructor
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:centerColor="#7986CB"
android:endColor="#C5CAE9"
android:startColor="#3F51B5"
android:angle="90"
android:centerColor="#009688"
android:endColor="#00695C"
android:startColor="#4DB6AC"
android:type="linear" />
</shape>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.dicoding.mynavigationdrawer.MainActivity">
tools:context="com.dicoding.picodiploma.mynavigationdrawer.MainActivity">

<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
Expand All @@ -26,7 +26,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.dicoding.mynavigationdrawer.MainActivity"
tools:context="com.dicoding.picodiploma.mynavigationdrawer.MainActivity"
tools:showIn="@layout/app_bar_main" />

<android.support.design.widget.FloatingActionButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.dicoding.mynavigationdrawer.HalamanFragment">
tools:context="com.dicoding.picodiploma.mynavigationdrawer.PageFragment">

<TextView
android:id="@+id/tv_fragment"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dicoding.mynavigationdrawer;
package com.dicoding.picodiploma.mynavigationdrawer;

import org.junit.Test;

Expand Down
2 changes: 1 addition & 1 deletion 05.Localization/MyLocalization/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>
2 changes: 1 addition & 1 deletion 06.LearnEspresso/LearnEspresso/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>

0 comments on commit 534ac46

Please sign in to comment.