Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
21 changes: 21 additions & 0 deletions FzDestroyer.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build/classes/main" />
<output-test url="file://$MODULE_DIR$/build/classes/test" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

42 changes: 42 additions & 0 deletions app/src/main/java/destroyer/friendzone/com/fzdestroyer/Infos.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package destroyer.friendzone.com.fzdestroyer;

import android.app.Activity;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

import java.util.ArrayList;
import java.util.Arrays;

/**
* Created by KZ.
*/
public class Infos extends Activity {

private ListView listaInfo ;
private String[] tutajinformacje;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_infos);

listaInfo = (ListView) findViewById(R.id.listaInfo);
initResources();

}

private void initResources() {
Resources res = getResources();
tutajinformacje = res.getStringArray(R.array.tutajinformacje);
initListaInfo();
}
private void initListaInfo() {
listaInfo.setBackgroundColor(Color.RED);
listaInfo.setAdapter(new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_list_item_1, tutajinformacje));
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
Expand All @@ -11,6 +12,8 @@ public class MenuActivity extends Activity
{
ImageButton przycisk_czatu;
ImageButton przycisk_ustawien;
ImageButton przycisk_pomocy;
ImageButton przycisk_info;
Intent intent;
Activity aktywnosc = this;

Expand All @@ -21,12 +24,15 @@ protected void onCreate(Bundle savedInstanceState)
setContentView(R.layout.activity_menu);

przycisk_czatu = (ImageButton) findViewById(R.id.przycisk_czatu);
przycisk_czatu.setOnClickListener(new View.OnClickListener()
{
przycisk_czatu.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v)
{
public void onClick(View v) {
intent = new Intent(aktywnosc, Czat.class);
SharedPreferences settings = getSharedPreferences("PREF", 0);
if (settings.getString("profil", "").equals("882998035056017"))
intent.putExtra("profil_odbiorcy", "900358920032103");
else
intent.putExtra("profil_odbiorcy", "882998035056017");
startActivity(intent);
}
});
Expand All @@ -41,5 +47,25 @@ public void onClick(View v)
startActivity(intent);
}
});
przycisk_pomocy = (ImageButton) findViewById(R.id.przycisk_pomocy);
przycisk_pomocy.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v) {
intent = new Intent(aktywnosc, Pomoc.class);
startActivity(intent);
}
});

przycisk_info = (ImageButton) findViewById(R.id.przycisk_info);
przycisk_info.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v) {
intent = new Intent(aktywnosc, Infos.class);
startActivity(intent);
}
});

}
}
37 changes: 37 additions & 0 deletions app/src/main/java/destroyer/friendzone/com/fzdestroyer/Pomoc.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package destroyer.friendzone.com.fzdestroyer;

import android.app.Activity;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class Pomoc extends Activity{

private ListView listaHelp ;
private String[] tutajpomusz;;


protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pomoc);


listaHelp = (ListView) findViewById(R.id.listHelp);
initResources1();

}

private void initResources1() {
Resources res = getResources();
tutajpomusz = res.getStringArray(R.array.tutajpomusz);
initListaHelp();
}
private void initListaHelp() {
listaHelp.setBackgroundColor(Color.RED);
listaHelp.setAdapter(new ArrayAdapter<String>(getApplicationContext(),android.R.layout.simple_list_item_1,tutajpomusz));
}

}

70 changes: 70 additions & 0 deletions app/src/main/res/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="destroyer.friendzone.com.fzdestroyer" >

<!-- pozwól na polaczenie z internetem -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />

<meta-data
android:name="com.facebook.sdk.ApplicationName"
android:value="@string/app_name" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/app_id" />

<activity
android:name=".Czat"
android:label="@string/title_activity_czat" >
</activity>

<provider
android:name="com.facebook.FacebookContentProvider"
android:authorities="com.facebook.app.FacebookContentProvider1426928514282008"
android:exported="true" />

<activity
android:name=".MenuActivity"
android:label="@string/title_activity_menu" >
</activity>
<activity
android:name=".Ustawienia"
android:label="@string/title_activity_ustawienia" >
</activity>
<activity
android:name="Infos"
android:label="Informacje"
android:theme="@android:style/Theme.Black">
</activity>
<activity
android:name="Pomoc"
android:label="Pomoc"
android:theme="@android:style/Theme.Black">
</activity>


</application>

</manifest>
Binary file added app/src/main/res/drawable/czat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/gradient9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/nie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/tak.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/wyslij.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions app/src/main/res/layout/activity_infos.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="15dp"
android:background="@drawable/gradient5"
android:textColor="#00FFFF">



<ListView

android:id="@+id/listaInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fastScrollEnabled="true"
android:fastScrollAlwaysVisible="true"
android:focusable="true"
android:visibility="visible"
android:theme="@style/AppTheme"
android:textFilterEnabled="false"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textColor="#000000">


</ListView>

</RelativeLayout>
16 changes: 16 additions & 0 deletions app/src/main/res/layout/activity_pomoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/gradient5">

<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fastScrollEnabled="true"
android:fastScrollAlwaysVisible="true"
android:id="@+id/listHelp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:visibility="visible" />
</RelativeLayout>
58 changes: 33 additions & 25 deletions app/src/main/res/layout/activity_ustawienia.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,31 @@
android:id="@+id/opis_tekst" />

<EditText
android:layout_width="wrap_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/ovalborder"
android:inputType="textAutoComplete|textAutoCorrect"
android:layout_toRightOf="@+id/opis_tekst"
android:layout_toEndOf="@+id/opis_tekst"
android:id="@+id/pole_opisu" />
android:id="@+id/pole_opisu"
android:layout_below="@+id/opis_tekst"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />

<!-- wybor orientacji seksualnej -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/orientacja"
android:id="@+id/orientacja_tekst"
android:layout_below="@+id/opis_tekst" />
android:layout_below="@+id/pole_opisu"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/wybor_orientacji"
android:layout_below="@+id/pole_opisu"
android:layout_toRightOf="@+id/orientacja_tekst"
android:layout_toEndOf="@+id/orientacja_tekst" />
android:layout_below="@+id/orientacja_tekst"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />

<!-- wybor daty urodzenia jesli jej nie podano -->
<TextView
Expand Down Expand Up @@ -74,38 +78,42 @@
android:id="@+id/zasieg_tekst"
android:text="@string/zasieg" />
<EditText
android:layout_width="wrap_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/wybor_dnia"
android:layout_toRightOf="@+id/zasieg_tekst"
android:layout_toEndOf="@+id/zasieg_tekst"
android:background="@drawable/ovalborder"
android:inputType="numberDecimal"
android:id="@+id/pole_zasiegu" />
android:id="@+id/pole_zasiegu"
android:layout_below="@+id/zasieg_tekst"
android:layout_alignRight="@+id/wybor_miesiaca"
android:layout_alignEnd="@+id/wybor_miesiaca" />

<!-- pole na miejscowosc uzytkownika programu -->
<TextView
android:layout_width="wrap_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/zasieg_tekst"
android:id="@+id/miejscowosc_tekst"
android:text="@string/miejscowosc" />
android:text="@string/miejscowosc"
android:layout_below="@+id/pole_zasiegu"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<EditText
android:layout_width="wrap_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/zasieg_tekst"
android:layout_toRightOf="@+id/miejscowosc_tekst"
android:layout_toEndOf="@+id/miejscowosc_tekst"
android:background="@drawable/ovalborder"
android:id="@+id/miejscowosc_pole"
android:inputType="textAutoCorrect|textAutoComplete" />
android:inputType="textAutoCorrect|textAutoComplete"
android:layout_below="@+id/miejscowosc_tekst"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />

<!-- przycisk do zatwierdzenia zmian odpowiednich pol profilu -->
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/miejscowosc_tekst"
android:layout_toRightOf="@+id/miejscowosc_tekst"
android:layout_toEndOf="@+id/miejscowosc_tekst"
android:text="@string/zapisz_zmiany"
android:id="@+id/zapisz_zmiany"
android:onClick="zaaktualizujDane"/>
android:onClick="zaaktualizujDane"
android:layout_below="@+id/miejscowosc_pole"
android:layout_centerHorizontal="true"
android:layout_marginTop="37dp" />
</RelativeLayout>
Loading