Browse Source

Add branding (prototype v0.2)

master
OliverParoczai 4 years ago
parent
commit
7f1cc11907
  1. 26
      app/src/androidTest/java/hu/paroczaioliver/paredu/ExampleInstrumentedTest.java
  2. 2
      app/src/main/AndroidManifest.xml
  3. 90
      app/src/main/java/hu/paroczaioliver/paredu/MainActivity.java
  4. 85
      app/src/main/java/hu/paroczaioliver/paredu/MapActivity.java
  5. 35
      app/src/main/java/hu/paroczaioliver/paredu/ui/chats/ChatsFragment.java
  6. 19
      app/src/main/java/hu/paroczaioliver/paredu/ui/chats/ChatsViewModel.java
  7. 35
      app/src/main/java/hu/paroczaioliver/paredu/ui/events/EventsFragment.java
  8. 19
      app/src/main/java/hu/paroczaioliver/paredu/ui/events/EventsViewModel.java
  9. 33
      app/src/main/java/hu/paroczaioliver/paredu/ui/home/HomeFragment.java
  10. 19
      app/src/main/java/hu/paroczaioliver/paredu/ui/home/HomeViewModel.java
  11. 35
      app/src/main/java/hu/paroczaioliver/paredu/ui/projects/ProjectsFragment.java
  12. 19
      app/src/main/java/hu/paroczaioliver/paredu/ui/projects/ProjectsViewModel.java
  13. 35
      app/src/main/java/hu/paroczaioliver/paredu/ui/schools/SchoolsFragment.java
  14. 19
      app/src/main/java/hu/paroczaioliver/paredu/ui/schools/SchoolsViewModel.java
  15. 33
      app/src/main/res/drawable-v24/ic_launcher_foreground.xml
  16. 5
      app/src/main/res/drawable/ic_baseline_book_48.xml
  17. 5
      app/src/main/res/drawable/ic_baseline_book_64.xml
  18. 5
      app/src/main/res/drawable/ic_baseline_book_96.xml
  19. 162
      app/src/main/res/drawable/ic_launcher_background.xml
  20. 2
      app/src/main/res/layout/nav_header_main.xml
  21. 12
      app/src/main/res/navigation/mobile_navigation.xml
  22. 4
      app/src/main/res/values/strings.xml
  23. 17
      app/src/test/java/hu/paroczaioliver/paredu/ExampleUnitTest.java

26
app/src/androidTest/java/hu/paroczaioliver/paredu/ExampleInstrumentedTest.java

@ -0,0 +1,26 @@
package hu.paroczaioliver.paredu;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("hu.paroczaioliver.projectlancer", appContext.getPackageName());
}
}

2
app/src/main/AndroidManifest.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="hu.paroczaioliver.projectlancer"> package="hu.paroczaioliver.paredu">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />

90
app/src/main/java/hu/paroczaioliver/paredu/MainActivity.java

@ -0,0 +1,90 @@
package hu.paroczaioliver.paredu;
import android.os.Bundle;
import android.view.Gravity;
import android.view.MenuItem;
import android.view.View;
import android.view.Menu;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.navigation.NavigationView;
import androidx.fragment.app.Fragment;
import androidx.navigation.NavController;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.content.Intent;
public class MainActivity extends AppCompatActivity {
private AppBarConfiguration mAppBarConfiguration;
private Fragment mFragment;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
FloatingActionButton fab = findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Jelenleg letiltva", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});
DrawerLayout drawer = findViewById(R.id.drawer_layout);
NavigationView navigationView = findViewById(R.id.nav_view);
mAppBarConfiguration = new AppBarConfiguration.Builder(
R.id.nav_home, R.id.nav_events, R.id.nav_schools, R.id.nav_map, R.id.nav_projects, R.id.nav_chats)
.setDrawerLayout(drawer)
.build();
NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
NavigationUI.setupActionBarWithNavController(this, navController, mAppBarConfiguration);
NavigationUI.setupWithNavController(navigationView, navController);
navigationView.bringToFront();
if(getIntent().getExtras() != null){
navController.navigate(getIntent().getExtras().getInt("frgname"));
}
navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(MenuItem item) {
if(item.getItemId() == R.id.nav_map) {
drawer.closeDrawer(Gravity.LEFT);
MainActivity.this.startActivity(new Intent(MainActivity.this, MapActivity.class).addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));
return false;
}else{
drawer.closeDrawer(Gravity.LEFT);
navController.navigate(item.getItemId());
item.setChecked(true);
return true;
}
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onSupportNavigateUp() {
NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
return NavigationUI.navigateUp(navController, mAppBarConfiguration)
|| super.onSupportNavigateUp();
}
@Override
public void onBackPressed() {
finishAffinity();
}
}

85
app/src/main/java/hu/paroczaioliver/paredu/MapActivity.java

@ -0,0 +1,85 @@
package hu.paroczaioliver.paredu;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.navigation.NavController;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import com.google.android.material.navigation.NavigationView;
import org.osmdroid.api.IMapController;
import org.osmdroid.tileprovider.tilesource.TileSourceFactory;
import org.osmdroid.util.GeoPoint;
import org.osmdroid.views.MapView;
import org.osmdroid.config.Configuration;
public class MapActivity extends AppCompatActivity {
MapView map = null;
private AppBarConfiguration mAppBarConfiguration;
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
DrawerLayout drawer = findViewById(R.id.drawer_layout);
NavigationView navigationView = findViewById(R.id.nav_view);
mAppBarConfiguration = new AppBarConfiguration.Builder(
R.id.nav_home, R.id.nav_events, R.id.nav_schools, R.id.nav_map, R.id.nav_projects, R.id.nav_chats)
.setDrawerLayout(drawer)
.build();
NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
NavigationUI.setupActionBarWithNavController(this, navController, mAppBarConfiguration);
NavigationUI.setupWithNavController(navigationView, navController);
navigationView.setCheckedItem(R.id.nav_map);
Context ctx = getApplicationContext();
Configuration.getInstance().load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx));
map = (MapView) findViewById(R.id.map);
map.setTileSource(TileSourceFactory.MAPNIK);
IMapController mapController = map.getController();
mapController.setZoom(9.00);
GeoPoint startPoint = new GeoPoint(47.497913, 19.040236);
mapController.setCenter(startPoint);
navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
public boolean onNavigationItemSelected(MenuItem item) {
drawer.closeDrawer(Gravity.LEFT);
Intent i = new Intent(MapActivity.this, MainActivity.class).addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
i.putExtra("frgname", item.getItemId());
startActivity(i);
return false;
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onSupportNavigateUp() {
NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
return NavigationUI.navigateUp(navController, mAppBarConfiguration)
|| super.onSupportNavigateUp();
}
@Override
public void onBackPressed() {
finishAffinity();
}
}

35
app/src/main/java/hu/paroczaioliver/paredu/ui/chats/ChatsFragment.java

@ -0,0 +1,35 @@
package hu.paroczaioliver.paredu.ui.chats;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import hu.paroczaioliver.paredu.R;
public class ChatsFragment extends Fragment {
private ChatsViewModel chatsViewModel;
public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
chatsViewModel =
new ViewModelProvider(this).get(ChatsViewModel.class);
View root = inflater.inflate(R.layout.fragment_chats, container, false);
final TextView textView = root.findViewById(R.id.text_chats);
chatsViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() {
@Override
public void onChanged(@Nullable String s) {
textView.setText(s);
}
});
return root;
}
}

19
app/src/main/java/hu/paroczaioliver/paredu/ui/chats/ChatsViewModel.java

@ -0,0 +1,19 @@
package hu.paroczaioliver.paredu.ui.chats;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class ChatsViewModel extends ViewModel {
private MutableLiveData<String> mText;
public ChatsViewModel() {
mText = new MutableLiveData<>();
mText.setValue("Üzenetek - Fejlesztés alatt");
}
public LiveData<String> getText() {
return mText;
}
}

35
app/src/main/java/hu/paroczaioliver/paredu/ui/events/EventsFragment.java

@ -0,0 +1,35 @@
package hu.paroczaioliver.paredu.ui.events;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import hu.paroczaioliver.paredu.R;
public class EventsFragment extends Fragment {
private EventsViewModel eventViewModel;
public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
eventViewModel =
new ViewModelProvider(this).get(EventsViewModel.class);
View root = inflater.inflate(R.layout.fragment_events, container, false);
final TextView textView = root.findViewById(R.id.text_events);
eventViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() {
@Override
public void onChanged(@Nullable String s) {
textView.setText(s);
}
});
return root;
}
}

19
app/src/main/java/hu/paroczaioliver/paredu/ui/events/EventsViewModel.java

@ -0,0 +1,19 @@
package hu.paroczaioliver.paredu.ui.events;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class EventsViewModel extends ViewModel {
private MutableLiveData<String> mText;
public EventsViewModel() {
mText = new MutableLiveData<>();
mText.setValue("Rendezvények - Fejlesztés alatt");
}
public LiveData<String> getText() {
return mText;
}
}

33
app/src/main/java/hu/paroczaioliver/paredu/ui/home/HomeFragment.java

@ -0,0 +1,33 @@
package hu.paroczaioliver.paredu.ui.home;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import hu.paroczaioliver.paredu.R;
public class HomeFragment extends Fragment {
private HomeViewModel homeViewModel;
public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
homeViewModel =
new ViewModelProvider(this).get(hu.paroczaioliver.paredu.ui.home.HomeViewModel.class);
View root = inflater.inflate(R.layout.fragment_home, container, false);
homeViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() {
@Override
public void onChanged(@Nullable String s) {
}
});
return root;
}
}

19
app/src/main/java/hu/paroczaioliver/paredu/ui/home/HomeViewModel.java

@ -0,0 +1,19 @@
package hu.paroczaioliver.paredu.ui.home;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class HomeViewModel extends ViewModel {
private MutableLiveData<String> mText;
public HomeViewModel() {
mText = new MutableLiveData<>();
mText.setValue("Kezdőlap");
}
public LiveData<String> getText() {
return mText;
}
}

35
app/src/main/java/hu/paroczaioliver/paredu/ui/projects/ProjectsFragment.java

@ -0,0 +1,35 @@
package hu.paroczaioliver.paredu.ui.projects;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import hu.paroczaioliver.paredu.R;
public class ProjectsFragment extends Fragment {
private hu.paroczaioliver.paredu.ui.projects.ProjectsViewModel ProjectsViewModel;
public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
ProjectsViewModel =
new ViewModelProvider(this).get(hu.paroczaioliver.paredu.ui.projects.ProjectsViewModel.class);
View root = inflater.inflate(R.layout.fragment_projects, container, false);
final TextView textView = root.findViewById(R.id.text_projects);
ProjectsViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() {
@Override
public void onChanged(@Nullable String s) {
textView.setText(s);
}
});
return root;
}
}

19
app/src/main/java/hu/paroczaioliver/paredu/ui/projects/ProjectsViewModel.java

@ -0,0 +1,19 @@
package hu.paroczaioliver.paredu.ui.projects;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class ProjectsViewModel extends ViewModel {
private MutableLiveData<String> mText;
public ProjectsViewModel() {
mText = new MutableLiveData<>();
mText.setValue("Projektek - Fejlesztés alatt");
}
public LiveData<String> getText() {
return mText;
}
}

35
app/src/main/java/hu/paroczaioliver/paredu/ui/schools/SchoolsFragment.java

@ -0,0 +1,35 @@
package hu.paroczaioliver.paredu.ui.schools;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import hu.paroczaioliver.paredu.R;
public class SchoolsFragment extends Fragment {
private SchoolsViewModel schoolsViewModel;
public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
schoolsViewModel =
new ViewModelProvider(this).get(SchoolsViewModel.class);
View root = inflater.inflate(R.layout.fragment_schools, container, false);
final TextView textView = root.findViewById(R.id.text_schools);
schoolsViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() {
@Override
public void onChanged(@Nullable String s) {
textView.setText(s);
}
});
return root;
}
}

19
app/src/main/java/hu/paroczaioliver/paredu/ui/schools/SchoolsViewModel.java

@ -0,0 +1,19 @@
package hu.paroczaioliver.paredu.ui.schools;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class SchoolsViewModel extends ViewModel {
private MutableLiveData<String> mText;
public SchoolsViewModel() {
mText = new MutableLiveData<>();
mText.setValue("Iskolák - Fejlesztés alatt");
}
public LiveData<String> getText() {
return mText;
}
}

33
app/src/main/res/drawable-v24/ic_launcher_foreground.xml

@ -1,30 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" <vector android:height="48dp" android:tint="?attr/colorControlNormal"
xmlns:aapt="http://schemas.android.com/aapt" android:viewportHeight="24" android:viewportWidth="24"
android:width="108dp" android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android">
android:height="108dp" <path android:fillColor="#1565C0" android:pathData="M18,2H0c-1.1,0 -2,0.9 -2,2v24c2,1. 0.9,2 2,2h24c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zM6,4h5v8l-2.5,-1.5L6,12V4z"/>
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector> </vector>

5
app/src/main/res/drawable/ic_baseline_book_48.xml

@ -0,0 +1,5 @@
<vector android:height="48dp" android:tint="?attr/colorControlNormal"
android:viewportHeight="24" android:viewportWidth="24"
android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M18,2H6c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zM6,4h5v8l-2.5,-1.5L6,12V4z"/>
</vector>

5
app/src/main/res/drawable/ic_baseline_book_64.xml

@ -0,0 +1,5 @@
<vector android:height="64dp" android:tint="?attr/colorControlNormal"
android:viewportHeight="24" android:viewportWidth="24"
android:width="64dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M18,2H6c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zM6,4h5v8l-2.5,-1.5L6,12V4z"/>
</vector>

5
app/src/main/res/drawable/ic_baseline_book_96.xml

@ -0,0 +1,5 @@
<vector android:height="96dp" android:tint="?attr/colorControlNormal"
android:viewportHeight="24" android:viewportWidth="24"
android:width="96dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M18,2H6c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zM6,4h5v8l-2.5,-1.5L6,12V4z"/>
</vector>

162
app/src/main/res/drawable/ic_launcher_background.xml

@ -5,166 +5,6 @@
android:viewportWidth="108" android:viewportWidth="108"
android:viewportHeight="108"> android:viewportHeight="108">
<path <path
android:fillColor="#3DDC84" android:fillColor="#EEEEEE"
android:pathData="M0,0h108v108h-108z" /> android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector> </vector>

2
app/src/main/res/layout/nav_header_main.xml

@ -17,7 +17,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing" android:paddingTop="@dimen/nav_header_vertical_spacing"
app:srcCompat="@mipmap/ic_launcher_round" /> app:srcCompat="@drawable/ic_baseline_book_48" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"

12
app/src/main/res/navigation/mobile_navigation.xml

@ -7,34 +7,34 @@
<fragment <fragment
android:id="@+id/nav_home" android:id="@+id/nav_home"
android:name="hu.paroczaioliver.projectlancer.ui.home.HomeFragment" android:name="hu.paroczaioliver.paredu.ui.home.HomeFragment"
android:label="@string/menu_home" android:label="@string/menu_home"
tools:layout="@layout/fragment_home" /> tools:layout="@layout/fragment_home" />
<fragment <fragment
android:id="@+id/nav_events" android:id="@+id/nav_events"
android:name="hu.paroczaioliver.projectlancer.ui.events.EventsFragment" android:name="hu.paroczaioliver.paredu.ui.events.EventsFragment"
android:label="@string/menu_events" android:label="@string/menu_events"
tools:layout="@layout/fragment_events" /> tools:layout="@layout/fragment_events" />
<fragment <fragment
android:id="@+id/nav_schools" android:id="@+id/nav_schools"
android:name="hu.paroczaioliver.projectlancer.ui.schools.SchoolsFragment" android:name="hu.paroczaioliver.paredu.ui.schools.SchoolsFragment"
android:label="@string/menu_schools" android:label="@string/menu_schools"
tools:layout="@layout/fragment_schools" /> tools:layout="@layout/fragment_schools" />
<fragment <fragment
android:id="@+id/nav_map" android:id="@+id/nav_map"
android:name="hu.paroczaioliver.projectlancer.ui.map.MapFragment" android:name="hu.paroczaioliver.paredu.ui.map.MapFragment"
android:label="@string/menu_map" android:label="@string/menu_map"
tools:layout="@layout/activity_map" /> tools:layout="@layout/activity_map" />
<fragment <fragment
android:id="@+id/nav_projects" android:id="@+id/nav_projects"
android:name="hu.paroczaioliver.projectlancer.ui.projects.ProjectsFragment" android:name="hu.paroczaioliver.paredu.ui.projects.ProjectsFragment"
android:label="@string/menu_projects" android:label="@string/menu_projects"
tools:layout="@layout/fragment_projects" /> tools:layout="@layout/fragment_projects" />
<fragment <fragment
android:id="@+id/nav_chats" android:id="@+id/nav_chats"
android:name="hu.paroczaioliver.projectlancer.ui.chats.ChatsFragment" android:name="hu.paroczaioliver.paredu.ui.chats.ChatsFragment"
android:label="@string/menu_chats" android:label="@string/menu_chats"
tools:layout="@layout/fragment_chats" /> tools:layout="@layout/fragment_chats" />

4
app/src/main/res/values/strings.xml

@ -1,8 +1,8 @@
<resources> <resources>
<string name="app_name">Project Lancer</string> <string name="app_name">ParEdu</string>
<string name="navigation_drawer_open">Navigációs menü megnyitása</string> <string name="navigation_drawer_open">Navigációs menü megnyitása</string>
<string name="navigation_drawer_close">Navigációs menü bezárása</string> <string name="navigation_drawer_close">Navigációs menü bezárása</string>
<string name="nav_header_title">Project Lancer</string> <string name="nav_header_title">ParEdu</string>
<string name="nav_header_subtitle">Fejlesztés alatt</string> <string name="nav_header_subtitle">Fejlesztés alatt</string>
<string name="action_settings">Beállítások</string> <string name="action_settings">Beállítások</string>

17
app/src/test/java/hu/paroczaioliver/paredu/ExampleUnitTest.java

@ -0,0 +1,17 @@
package hu.paroczaioliver.paredu;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
Loading…
Cancel
Save