Commit 9b56bbd2 authored by Mohit Mali's avatar Mohit Mali Committed by Romain Hunault
Browse files

Updated about content

parent 54ee6e07
# Nextcloud Notes
An android client for [Nextcloud Notes App](https://github.com/nextcloud/notes/).
# Notes
An android client for [Nextcloud Notes App](https://github.com/nextcloud/notes/)
Notes is forked from [Nextcloud Notes](https://github.com/stefan-niedermann/nextcloud-notes)
[![Build Status](https://travis-ci.org/stefan-niedermann/nextcloud-notes.svg?branch=master)](https://travis-ci.org/stefan-niedermann/nextcloud-notes)
[![GitHub issues](https://img.shields.io/github/issues/stefan-niedermann/nextcloud-notes.svg)](https://github.com/stefan-niedermann/nextcloud-notes/issues)
[![GitHub stars](https://img.shields.io/github/stars/stefan-niedermann/nextcloud-notes.svg)](https://github.com/stefan-niedermann/nextcloud-notes/stargazers)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
## Authors
## :arrow_forward: Access
[Authors](https://gitlab.e.foundation/e/apps/Notes/-/blob/master/AUTHORS)
<<<<<<< HEAD
[![Download from Google Play](https://play.google.com/intl/en_us/badges/images/badge_new.png)](https://play.google.com/store/apps/details?id=it.niedermann.notes)
[![Nextcloud Notes App on fdroid.org](https://camo.githubusercontent.com/7df0eafa4433fa4919a56f87c3d99cf81b68d01c/68747470733a2f2f662d64726f69642e6f72672f77696b692f696d616765732f632f63342f462d44726f69642d627574746f6e5f617661696c61626c652d6f6e2e706e67)](https://f-droid.org/repository/browse/?fdid=it.niedermann.notes)
[![Donate with PayPal](https://raw.githubusercontent.com/stefan-niedermann/paypal-donate-button/master/paypal-donate-button.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K7HVLE6J7SXXA)
=======
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
alt="Get it on Play Store"
height="80">](https://play.google.com/store/apps/details?id=it.niedermann.owncloud.notes)
[<img src="https://f-droid.org/badge/get-it-on.png"
alt="Get it on F-Droid"
height="80">](https://f-droid.org/repository/browse/?fdid=it.niedermann.owncloud.notes)
[<img src="https://raw.githubusercontent.com/stefan-niedermann/paypal-donate-button/be5ad29a95ff890faee0b46d702b714b0a04aadc/paypal-donate-button.png"
alt="Donate with PayPal"
height="80">](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K7HVLE6J7SXXA)
>>>>>>> steff_master
[![Donate using Liberapay](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/stefan-niedermann/donate)
## Release Notes
## :eyes: Screenshots
Check out the [Release Notes](https://gitlab.e.foundation/e/apps/Notes/-/releases) to find out what changed
in each version of Notes.
| Navi | List View | Edit Mode |
| :--: | :--: | :--: |
| ![Screenshot of categories in sidebar](/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png) | ![Screenshot of list view](/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png) | ![Screenshot of edit view](/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png) |
## Privacy Policy
## :rocket: Features
* List, create, edit, share, search and delete notes
* Share text and links as new note into the app
* Mark notes as favorite
* Bulk delete
* In-note search ([#106](https://github.com/stefan-niedermann/nextcloud-notes/issues/106))
* Render MarkDown (using [RxMarkdown](https://github.com/yydcdut/RxMarkdown))
* Translated in many languages on [Transifex](https://www.transifex.com/nextcloud/nextcloud/android-notes/)
* Context based formatting ([#363](https://github.com/stefan-niedermann/nextcloud-notes/issues/363))
[Privacy Policy](https://e.foundation/legal-notice-privacy)
[Terms of service](https://e.foundation/legal-notice-privacy)
## :checkered_flag: Planned features
* Toggle checkboxes in view mode ([#451](https://github.com/stefan-niedermann/nextcloud-notes/issues/451))
* Trashbin ([#238](https://github.com/stefan-niedermann/nextcloud-notes/issues/238))
## License
## :family: Join the team
* Test the app with different devices
* Report issues in the [issue tracker](https://github.com/stefan-niedermann/nextcloud-notes/issues)
* [Pick a good first issue](https://github.com/nextcloud/server/labels/good%20first%20issue) :notebook:
* Create a [Pull Request](https://opensource.guide/how-to-contribute/#opening-a-pull-request)
* Help translating this app on [Transifex](https://www.transifex.com/nextcloud/nextcloud/android-notes/) :flags:
* Buy this app on [Google Play Store](https://play.google.com/store/apps/details?id=it.niedermann.notes)
* Send me a bottle of your favorite beer :beers: :wink:
## :link: Requirements
* [Nextcloud](https://nextcloud.com/) instance running
* [Nextcloud Notes](https://github.com/nextcloud/notes) app enabled
## :notebook: License
This project is licensed under the [GNU GENERAL PUBLIC LICENSE](/LICENSE).
## :twisted_rightwards_arrows: Alternatives
If you dislike this app and you are looking for alternatives: Have a look at [MyOwnNotes](https://github.com/aykit/MyOwnNotes).
Notes is licensed under the [GNU General Public License v3.0](https://gitlab.e.foundation/e/apps/Notes/-/blob/master/LICENSE)
......@@ -3,95 +3,18 @@ package foundation.e.notes.android.activity;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.viewpager.widget.ViewPager;
import com.google.android.material.tabs.TabLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import foundation.e.notes.android.fragment.about.AboutFragmentContributingTab;
import foundation.e.notes.android.fragment.about.AboutFragmentCreditsTab;
import foundation.e.notes.android.fragment.about.AboutFragmentLicenseTab;
import foundation.e.notes.R;
import foundation.e.notes.util.ExceptionHandler;
import foundation.e.notes.android.fragment.about.AboutFragment;
public class AboutActivity extends AppCompatActivity {
@BindView(R.id.pager)
ViewPager mViewPager;
@BindView(R.id.tabs)
TabLayout mTabLayout;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Thread.currentThread().setUncaughtExceptionHandler(new ExceptionHandler(this));
setContentView(R.layout.activity_about);
ButterKnife.bind(this);
getFragmentManager().beginTransaction().replace(R.id.container, new AboutFragment()).commit();
mViewPager.setAdapter(new TabsPagerAdapter(getSupportFragmentManager()));
mTabLayout.setupWithViewPager(mViewPager);
}
private class TabsPagerAdapter extends FragmentPagerAdapter {
private final int PAGE_COUNT = 3;
public TabsPagerAdapter(FragmentManager fragmentManager) {
super(fragmentManager);
}
@Override
public int getCount() {
return PAGE_COUNT;
}
/**
* return the right fragment for the given position
*/
@Override
public Fragment getItem(int position) {
switch (position) {
case 0:
return new AboutFragmentCreditsTab();
case 1:
return new AboutFragmentContributingTab();
case 2:
return new AboutFragmentLicenseTab();
default:
return null;
}
}
/**
* generate title based on given position
*/
@Override
public CharSequence getPageTitle(int position) {
switch (position) {
case 0:
return getString(R.string.about_credits_tab_title);
case 1:
return getString(R.string.about_contribution_tab_title);
case 2:
return getString(R.string.about_license_tab_title);
default:
return null;
}
}
}
@Override
public boolean onSupportNavigateUp() {
finish(); // close this activity as oppose to navigating up
return true;
}
}
}
\ No newline at end of file
package foundation.e.notes.android.fragment.about;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import androidx.annotation.Nullable;
import foundation.e.notes.BuildConfig;
import foundation.e.notes.R;
public class AboutFragment extends PreferenceFragment {
private static final String BUILD_VERSION = "build_version";
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.about_preferences);
findPreference(BUILD_VERSION).setSummary(BuildConfig.VERSION_NAME);
}
}
package foundation.e.notes.android.fragment.about;
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.fragment.app.Fragment;
import butterknife.BindView;
import butterknife.ButterKnife;
import foundation.e.notes.R;
import foundation.e.notes.util.SupportUtil;
public class AboutFragmentContributingTab extends Fragment {
@BindView(R.id.about_source)
TextView aboutSource;
@BindView(R.id.about_issues)
TextView aboutIssues;
@BindView(R.id.about_translate)
TextView aboutTranslate;
@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_about_contribution_tab, container, false);
ButterKnife.bind(this, v);
SupportUtil.setHtml(aboutSource, R.string.about_source, getString(R.string.url_source));
SupportUtil.setHtml(aboutIssues, R.string.about_issues, getString(R.string.url_issues));
SupportUtil.setHtml(aboutTranslate, R.string.about_translate, getString(R.string.url_translations));
return v;
}
}
\ No newline at end of file
package foundation.e.notes.android.fragment.about;
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.fragment.app.Fragment;
import butterknife.BindView;
import butterknife.ButterKnife;
import foundation.e.notes.BuildConfig;
import foundation.e.notes.R;
import foundation.e.notes.util.SupportUtil;
public class AboutFragmentCreditsTab extends Fragment {
@BindView(R.id.about_version)
TextView aboutVersion;
@BindView(R.id.about_maintainer)
TextView aboutMaintainer;
@BindView(R.id.about_translators)
TextView aboutTranslators;
@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_about_credits_tab, container, false);
ButterKnife.bind(this, v);
SupportUtil.setHtml(aboutVersion, R.string.about_version, "v" + BuildConfig.VERSION_NAME);
SupportUtil.setHtml(aboutMaintainer, R.string.about_maintainer);
SupportUtil.setHtml(aboutTranslators, R.string.about_translators_transifex, getString(R.string.url_translations));
return v;
}
}
\ No newline at end of file
package foundation.e.notes.android.fragment.about;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import foundation.e.notes.R;
import foundation.e.notes.util.SupportUtil;
public class AboutFragmentLicenseTab extends Fragment {
@BindView(R.id.about_icons_disclaimer)
TextView iconsDisclaimer;
@BindView(R.id.about_app_license_button)
Button appLicenseButton;
@OnClick(R.id.about_app_license_button)
void openLicense() {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.url_license))));
}
@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_about_license_tab, container, false);
ButterKnife.bind(this, v);
SupportUtil.setHtml(iconsDisclaimer, R.string.about_icons_disclaimer, getString(R.string.about_app_icon_author));
return v;
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
\ No newline at end of file
android:orientation="vertical" />
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/activity_horizontal_margin">
<TextView
android:id="@+id/about_source_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_source_title" />
<TextView
android:id="@+id/about_source"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_source" />
<TextView
android:id="@+id/about_issues_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_issues_title" />
<TextView
android:id="@+id/about_issues"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_issues" />
<TextView
android:id="@+id/about_translate_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_translate_title" />
<TextView
android:id="@+id/about_translate"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_translate" />
</LinearLayout>
</ScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/activity_horizontal_margin">
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="30dp"
android:layout_marginTop="30dp"
android:drawableTop="@mipmap/ic_launcher"
android:text="@string/app_name"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/fg_default_low"
android:textSize="26sp" />
<TextView
android:id="@+id/about_version_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_version_title" />
<TextView
android:id="@+id/about_version"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_version" />
<TextView
android:id="@+id/about_maintainer_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_maintainer_title" />
<TextView
android:id="@+id/about_maintainer"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_maintainer" />
<TextView
android:id="@+id/about_developers_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_developers_title" />
<TextView
android:id="@+id/about_developers"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_developers" />
<TextView
android:id="@+id/about_translators_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_translators_title" />
<TextView
android:id="@+id/about_translators"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_translators_transifex" />
<TextView
android:id="@+id/about_testers_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_testers_title" />
<TextView
android:id="@+id/about_testers"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_testers" />
</LinearLayout>
</ScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/activity_horizontal_margin">
<TextView
android:id="@+id/about_app_license_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_app_license_title" />
<TextView
android:id="@+id/about_app_license"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_app_license" />
<Button
android:id="@+id/about_app_license_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_app_license_button" />
<TextView
android:id="@+id/about_icons_disclaimer_title"
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/about_icons_disclaimer_title" />
<TextView
android:id="@+id/about_icons_disclaimer"
style="?android:attr/editTextPreferenceStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="@string/about_icons_disclaimer" />
</LinearLayout>
</ScrollView>
\ No newline at end of file
......@@ -194,4 +194,18 @@
<item quantity="one">%d selected</item>
<item quantity="other">%d selected</item>
</plurals>
<string name="preferences_app_info_title">Notes information</string>
<string name="preferences_app_info">
-List, create, edit, share, search and delete notes\n
-Share text and links as new note into the app\n
-Mark notes as favorite\n
-Bulk delete\n
-Render MarkDown\n
-Translated in many languages</string>
<string name="preferences_about_app">Notes is forked from Nextcloud Notes</string>
<string name="preferences_privacy_policy">Privacy policy</string>
<string name="preferences_service_terms">Terms of service</string>
<string name="preferences_authors">Authors</string>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Preference
android:key="notes_info"
android:summary="@string/preferences_app_info"
android:title="@string/preferences_app_info_title" />
<Preference
android:key="build_version"
android:title="@string/about_version_title">
<intent
android:action="android.intent.action.VIEW"
android:data="https://gitlab.e.foundation/e/apps/Notes/-/releases" />
</Preference>
<Preference
android:key="about_app"
android:title="@string/preferences_about_app">
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/stefan-niedermann/nextcloud-notes" />
</Preference>
<Preference android:title="@string/about_license_tab_title">
<intent
android:action="android.intent.action.VIEW"
android:data="https://gitlab.e.foundation/e/apps/Notes/-/blob/master/LICENSE" />
</Preference>