|
@@ -1,29 +1,19 @@
|
|
|
package com.example.yiupang.freefoodfinder;
|
|
package com.example.yiupang.freefoodfinder;
|
|
|
|
|
|
|
|
-import android.content.res.Configuration;
|
|
|
|
|
-import android.content.Context;
|
|
|
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
|
import android.support.annotation.Nullable;
|
|
import android.support.annotation.Nullable;
|
|
|
import android.view.LayoutInflater;
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
import android.view.ViewGroup;
|
|
|
|
|
|
|
|
-import android.content.res.Configuration;
|
|
|
|
|
-import android.support.v7.app.AppCompatActivity;
|
|
|
|
|
-import android.support.v7.app.AppCompatDelegate;
|
|
|
|
|
import android.view.Gravity;
|
|
import android.view.Gravity;
|
|
|
import android.widget.Toast;
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
import java.util.Calendar;
|
|
import java.util.Calendar;
|
|
|
-import android.view.Window;
|
|
|
|
|
|
|
|
|
|
import mehdi.sakout.aboutpage.AboutPage;
|
|
import mehdi.sakout.aboutpage.AboutPage;
|
|
|
import mehdi.sakout.aboutpage.Element;
|
|
import mehdi.sakout.aboutpage.Element;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-import android.view.WindowManager;
|
|
|
|
|
-import android.view.Window;
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* Created by yiupang on 5/6/2017.
|
|
* Created by yiupang on 5/6/2017.
|
|
|
*
|
|
*
|
|
@@ -40,14 +30,13 @@ public class AboutUsScreen extends android.support.v4.app.Fragment
|
|
|
Element adsElement = new Element();
|
|
Element adsElement = new Element();
|
|
|
adsElement.setTitle("Advertise with us");
|
|
adsElement.setTitle("Advertise with us");
|
|
|
|
|
|
|
|
- View aboutPage = new AboutPage(getContext())
|
|
|
|
|
|
|
+ return new AboutPage(getContext())
|
|
|
.setDescription(" Free Food Finder is the easiest way" +
|
|
.setDescription(" Free Food Finder is the easiest way" +
|
|
|
" to locate events serving free food wherever you may be." +
|
|
" to locate events serving free food wherever you may be." +
|
|
|
" FreeFood Finder enables you to easily find club meetings," +
|
|
" FreeFood Finder enables you to easily find club meetings," +
|
|
|
" company recruiting sessions, and campus events near your current location." +
|
|
" company recruiting sessions, and campus events near your current location." +
|
|
|
" Simply select an event to get all deets.")
|
|
" Simply select an event to get all deets.")
|
|
|
.isRTL(false)
|
|
.isRTL(false)
|
|
|
- //.setImage(R.drawable.dummy_image2)
|
|
|
|
|
.addGroup("Connect with us")
|
|
.addGroup("Connect with us")
|
|
|
.addEmail("contact@freefoodfinder.com")
|
|
.addEmail("contact@freefoodfinder.com")
|
|
|
.addWebsite("freefoodfinder.io")
|
|
.addWebsite("freefoodfinder.io")
|
|
@@ -62,15 +51,13 @@ public class AboutUsScreen extends android.support.v4.app.Fragment
|
|
|
.addItem(getCopyRightsElement())
|
|
.addItem(getCopyRightsElement())
|
|
|
.create();
|
|
.create();
|
|
|
|
|
|
|
|
- return aboutPage;
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Element getCopyRightsElement() {
|
|
Element getCopyRightsElement() {
|
|
|
Element copyRightsElement = new Element();
|
|
Element copyRightsElement = new Element();
|
|
|
final String copyrights = String.format(getString(R.string.copy_right), Calendar.getInstance().get(Calendar.YEAR));
|
|
final String copyrights = String.format(getString(R.string.copy_right), Calendar.getInstance().get(Calendar.YEAR));
|
|
|
copyRightsElement.setTitle(copyrights);
|
|
copyRightsElement.setTitle(copyrights);
|
|
|
- //copyRightsElement.setIconDrawable(R.drawable.about_icon_copy_right);
|
|
|
|
|
|
|
+
|
|
|
copyRightsElement.setIconTint(mehdi.sakout.aboutpage.R.color.about_item_icon_color);
|
|
copyRightsElement.setIconTint(mehdi.sakout.aboutpage.R.color.about_item_icon_color);
|
|
|
copyRightsElement.setIconNightTint(android.R.color.white);
|
|
copyRightsElement.setIconNightTint(android.R.color.white);
|
|
|
copyRightsElement.setGravity(Gravity.CENTER);
|
|
copyRightsElement.setGravity(Gravity.CENTER);
|