From d7f85cb471038498332195c9a1bdea794ec32068 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 29 Sep 2020 00:09:33 +0800 Subject: Add translation contributors in Settigs->About->Translation. --- .../AcknowledgementRecyclerViewAdapter.java | 70 ++++++++++++++++++ .../TranslationFragmentRecyclerViewAdapter.java | 82 ++++++++++++++++++++++ .../infinityforreddit/AppComponent.java | 3 + .../Settings/Acknowledgement.java | 2 +- .../Settings/AcknowledgementFragment.java | 1 + .../AcknowledgementRecyclerViewAdapter.java | 69 ------------------ .../infinityforreddit/Settings/Translation.java | 42 +++++++++++ .../Settings/TranslationFragment.java | 58 +++++++++++++++ app/src/main/res/drawable/flag_brazil.xml | 21 ++++++ app/src/main/res/drawable/flag_china.xml | 24 +++++++ app/src/main/res/drawable/flag_croatia.xml | 72 +++++++++++++++++++ app/src/main/res/drawable/flag_france.xml | 15 ++++ app/src/main/res/drawable/flag_germany.xml | 15 ++++ app/src/main/res/drawable/flag_greece.xml | 24 +++++++ app/src/main/res/drawable/flag_hungary.xml | 15 ++++ app/src/main/res/drawable/flag_india.xml | 24 +++++++ app/src/main/res/drawable/flag_italy.xml | 15 ++++ app/src/main/res/drawable/flag_japan.xml | 12 ++++ app/src/main/res/drawable/flag_norway.xml | 24 +++++++ app/src/main/res/drawable/flag_portugal.xml | 21 ++++++ app/src/main/res/drawable/flag_romania.xml | 15 ++++ app/src/main/res/drawable/flag_russia.xml | 15 ++++ app/src/main/res/drawable/flag_south_korea.xml | 69 ++++++++++++++++++ app/src/main/res/drawable/flag_spain.xml | 15 ++++ app/src/main/res/drawable/flag_sweden.xml | 21 ++++++ app/src/main/res/drawable/flag_turkey.xml | 15 ++++ app/src/main/res/drawable/flag_vietnam.xml | 12 ++++ app/src/main/res/layout/fragment_translation.xml | 7 ++ .../res/layout/item_translation_contributor.xml | 42 +++++++++++ app/src/main/res/values/strings.xml | 3 + app/src/main/res/xml/about_preferences.xml | 5 ++ 31 files changed, 758 insertions(+), 70 deletions(-) create mode 100644 app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/AcknowledgementRecyclerViewAdapter.java create mode 100644 app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/TranslationFragmentRecyclerViewAdapter.java delete mode 100644 app/src/main/java/ml/docilealligator/infinityforreddit/Settings/AcknowledgementRecyclerViewAdapter.java create mode 100644 app/src/main/java/ml/docilealligator/infinityforreddit/Settings/Translation.java create mode 100644 app/src/main/java/ml/docilealligator/infinityforreddit/Settings/TranslationFragment.java create mode 100644 app/src/main/res/drawable/flag_brazil.xml create mode 100644 app/src/main/res/drawable/flag_china.xml create mode 100644 app/src/main/res/drawable/flag_croatia.xml create mode 100644 app/src/main/res/drawable/flag_france.xml create mode 100644 app/src/main/res/drawable/flag_germany.xml create mode 100644 app/src/main/res/drawable/flag_greece.xml create mode 100644 app/src/main/res/drawable/flag_hungary.xml create mode 100644 app/src/main/res/drawable/flag_india.xml create mode 100644 app/src/main/res/drawable/flag_italy.xml create mode 100644 app/src/main/res/drawable/flag_japan.xml create mode 100644 app/src/main/res/drawable/flag_norway.xml create mode 100644 app/src/main/res/drawable/flag_portugal.xml create mode 100644 app/src/main/res/drawable/flag_romania.xml create mode 100644 app/src/main/res/drawable/flag_russia.xml create mode 100644 app/src/main/res/drawable/flag_south_korea.xml create mode 100644 app/src/main/res/drawable/flag_spain.xml create mode 100644 app/src/main/res/drawable/flag_sweden.xml create mode 100644 app/src/main/res/drawable/flag_turkey.xml create mode 100644 app/src/main/res/drawable/flag_vietnam.xml create mode 100644 app/src/main/res/layout/fragment_translation.xml create mode 100644 app/src/main/res/layout/item_translation_contributor.xml (limited to 'app/src/main') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/AcknowledgementRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/AcknowledgementRecyclerViewAdapter.java new file mode 100644 index 00000000..3958054a --- /dev/null +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/AcknowledgementRecyclerViewAdapter.java @@ -0,0 +1,70 @@ +package ml.docilealligator.infinityforreddit.Adapter; + +import android.content.Context; +import android.content.Intent; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + +import java.util.ArrayList; + +import butterknife.BindView; +import butterknife.ButterKnife; +import ml.docilealligator.infinityforreddit.Activity.LinkResolverActivity; +import ml.docilealligator.infinityforreddit.R; +import ml.docilealligator.infinityforreddit.Settings.Acknowledgement; + +public class AcknowledgementRecyclerViewAdapter extends RecyclerView.Adapter { + private ArrayList acknowledgements; + private Context context; + + public AcknowledgementRecyclerViewAdapter(Context context, ArrayList acknowledgements) { + this.context = context; + this.acknowledgements = acknowledgements; + } + + @NonNull + @Override + public AcknowledgementViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + return new AcknowledgementViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_acknowledgement, parent, false)); + } + + @Override + public void onBindViewHolder(@NonNull AcknowledgementViewHolder holder, int position) { + Acknowledgement acknowledgement = acknowledgements.get(holder.getAdapterPosition()); + if (acknowledgement != null) { + holder.nameTextView.setText(acknowledgement.getName()); + holder.introductionTextView.setText(acknowledgement.getIntroduction()); + holder.itemView.setOnClickListener(view -> { + if (context != null) { + Intent intent = new Intent(context, LinkResolverActivity.class); + intent.setData(acknowledgement.getLink()); + context.startActivity(intent); + } + }); + } + } + + @Override + public int getItemCount() { + return acknowledgements == null ? 0 : acknowledgements.size(); + } + + class AcknowledgementViewHolder extends RecyclerView.ViewHolder { + View itemView; + @BindView(R.id.name_text_view_item_acknowledgement) + TextView nameTextView; + @BindView(R.id.introduction_text_view_item_acknowledgement) + TextView introductionTextView; + + AcknowledgementViewHolder(@NonNull View itemView) { + super(itemView); + ButterKnife.bind(this, itemView); + this.itemView = itemView; + } + } +} diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/TranslationFragmentRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/TranslationFragmentRecyclerViewAdapter.java new file mode 100644 index 00000000..a31381c5 --- /dev/null +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/TranslationFragmentRecyclerViewAdapter.java @@ -0,0 +1,82 @@ +package ml.docilealligator.infinityforreddit.Adapter; + +import android.app.Activity; +import android.content.Intent; +import android.net.Uri; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ImageView; +import android.widget.TextView; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + +import java.util.ArrayList; + +import butterknife.BindView; +import butterknife.ButterKnife; +import ml.docilealligator.infinityforreddit.Activity.LinkResolverActivity; +import ml.docilealligator.infinityforreddit.CustomTheme.CustomThemeWrapper; +import ml.docilealligator.infinityforreddit.R; +import ml.docilealligator.infinityforreddit.Settings.Translation; + +public class TranslationFragmentRecyclerViewAdapter extends RecyclerView.Adapter { + private Activity activity; + private int primaryTextColor; + private int secondaryTextColor; + private ArrayList translationContributors; + + public TranslationFragmentRecyclerViewAdapter(Activity activity, CustomThemeWrapper customThemeWrapper) { + this.activity = activity; + primaryTextColor = customThemeWrapper.getPrimaryTextColor(); + secondaryTextColor = customThemeWrapper.getSecondaryTextColor(); + translationContributors = Translation.getTranslationContributors(); + } + + @NonNull + @Override + public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + return new TranslationContributorViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_translation_contributor, parent, false)); + } + + @Override + public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) { + if (holder instanceof TranslationContributorViewHolder) { + Translation translation = translationContributors.get(position); + ((TranslationContributorViewHolder) holder).countryFlagImageView.setImageResource(translation.flagDrawableId); + ((TranslationContributorViewHolder) holder).languageNameTextView.setText(translation.language); + ((TranslationContributorViewHolder) holder).contributorNamesTextView.setText(translation.contributors); + } + } + + @Override + public int getItemCount() { + return translationContributors.size(); + } + + class TranslationContributorViewHolder extends RecyclerView.ViewHolder { + + @BindView(R.id.country_flag_image_view_item_translation_contributor) + ImageView countryFlagImageView; + @BindView(R.id.language_name_text_view_item_translation_contributor) + TextView languageNameTextView; + @BindView(R.id.contributor_names_text_view_item_translation_contributor) + TextView contributorNamesTextView; + + public TranslationContributorViewHolder(@NonNull View itemView) { + super(itemView); + + ButterKnife.bind(this, itemView); + + languageNameTextView.setTextColor(primaryTextColor); + contributorNamesTextView.setTextColor(secondaryTextColor); + + itemView.setOnClickListener(view -> { + Intent intent = new Intent(activity, LinkResolverActivity.class); + intent.setData(Uri.parse("https://poeditor.com/join/project?hash=b2IRyfaJv6")); + activity.startActivity(intent); + }); + } + } +} diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java b/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java index e7c8e456..e537b248 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/AppComponent.java @@ -71,6 +71,7 @@ import ml.docilealligator.infinityforreddit.Settings.NotificationPreferenceFragm import ml.docilealligator.infinityforreddit.Settings.NsfwAndBlurringFragment; import ml.docilealligator.infinityforreddit.Settings.SecurityPreferenceFragment; import ml.docilealligator.infinityforreddit.Settings.ThemePreferenceFragment; +import ml.docilealligator.infinityforreddit.Settings.TranslationFragment; import ml.docilealligator.infinityforreddit.Settings.VideoPreferenceFragment; @Singleton @@ -215,4 +216,6 @@ public interface AppComponent { void inject(CustomizeBottomAppBarFragment customizeBottomAppBarFragment); void inject(GiveAwardActivity giveAwardActivity); + + void inject(TranslationFragment translationFragment); } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/Acknowledgement.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/Acknowledgement.java index 9291b53c..f3466268 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/Acknowledgement.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/Acknowledgement.java @@ -2,7 +2,7 @@ package ml.docilealligator.infinityforreddit.Settings; import android.net.Uri; -class Acknowledgement { +public class Acknowledgement { private String name; private String introduction; private Uri link; diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/AcknowledgementFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/AcknowledgementFragment.java index c765682e..feb13e66 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/AcknowledgementFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/AcknowledgementFragment.java @@ -18,6 +18,7 @@ import java.util.ArrayList; import butterknife.BindView; import butterknife.ButterKnife; +import ml.docilealligator.infinityforreddit.Adapter.AcknowledgementRecyclerViewAdapter; import ml.docilealligator.infinityforreddit.R; /** diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/AcknowledgementRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/AcknowledgementRecyclerViewAdapter.java deleted file mode 100644 index 6b081ad1..00000000 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/AcknowledgementRecyclerViewAdapter.java +++ /dev/null @@ -1,69 +0,0 @@ -package ml.docilealligator.infinityforreddit.Settings; - -import android.content.Context; -import android.content.Intent; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.TextView; - -import androidx.annotation.NonNull; -import androidx.recyclerview.widget.RecyclerView; - -import java.util.ArrayList; - -import butterknife.BindView; -import butterknife.ButterKnife; -import ml.docilealligator.infinityforreddit.Activity.LinkResolverActivity; -import ml.docilealligator.infinityforreddit.R; - -class AcknowledgementRecyclerViewAdapter extends RecyclerView.Adapter { - private ArrayList acknowledgements; - private Context context; - - AcknowledgementRecyclerViewAdapter(Context context, ArrayList acknowledgements) { - this.context = context; - this.acknowledgements = acknowledgements; - } - - @NonNull - @Override - public AcknowledgementViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { - return new AcknowledgementViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_acknowledgement, parent, false)); - } - - @Override - public void onBindViewHolder(@NonNull AcknowledgementViewHolder holder, int position) { - Acknowledgement acknowledgement = acknowledgements.get(holder.getAdapterPosition()); - if (acknowledgement != null) { - holder.nameTextView.setText(acknowledgement.getName()); - holder.introductionTextView.setText(acknowledgement.getIntroduction()); - holder.itemView.setOnClickListener(view -> { - if (context != null) { - Intent intent = new Intent(context, LinkResolverActivity.class); - intent.setData(acknowledgement.getLink()); - context.startActivity(intent); - } - }); - } - } - - @Override - public int getItemCount() { - return acknowledgements == null ? 0 : acknowledgements.size(); - } - - class AcknowledgementViewHolder extends RecyclerView.ViewHolder { - View itemView; - @BindView(R.id.name_text_view_item_acknowledgement) - TextView nameTextView; - @BindView(R.id.introduction_text_view_item_acknowledgement) - TextView introductionTextView; - - AcknowledgementViewHolder(@NonNull View itemView) { - super(itemView); - ButterKnife.bind(this, itemView); - this.itemView = itemView; - } - } -} diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/Translation.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/Translation.java new file mode 100644 index 00000000..3d809a7f --- /dev/null +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/Translation.java @@ -0,0 +1,42 @@ +package ml.docilealligator.infinityforreddit.Settings; + +import java.util.ArrayList; + +import ml.docilealligator.infinityforreddit.R; + +public class Translation { + public String language; + public String contributors; + public int flagDrawableId; + + public Translation(String language, String contributors, int flagDrawableId) { + this.language = language; + this.contributors = contributors; + this.flagDrawableId = flagDrawableId; + } + + public static ArrayList getTranslationContributors() { + ArrayList translationContributors = new ArrayList<>(); + translationContributors.add(new Translation("简体中文", "Gloria, Justin", R.drawable.flag_china)); + translationContributors.add(new Translation("繁體中文", "", R.drawable.flag_china)); + translationContributors.add(new Translation("Hrvatski", "Josip", R.drawable.flag_croatia)); + translationContributors.add(new Translation("Française", "367, oursonbleu, Owen, pinembour", R.drawable.flag_france)); + translationContributors.add(new Translation("Deutsche", "Jorge, Netto Hikari, translatewingman, translatorwiz", R.drawable.flag_germany)); + translationContributors.add(new Translation("Ελληνικά", "Marios, Viktor", R.drawable.flag_greece)); + translationContributors.add(new Translation("हिंदी", "a, Arya, charu, Mrigendra Bhandari, raghav, Sachin, Ved", R.drawable.flag_india)); + translationContributors.add(new Translation("Magyar", "Zoltan", R.drawable.flag_hungary)); + translationContributors.add(new Translation("Italiana", "Daniele Basso, DanOlivaw, Gianni00palmieri, Gillauino, ztiaa", R.drawable.flag_italy)); + translationContributors.add(new Translation("日本語", "Issa, Mrigendra Bhandari, Ryan", R.drawable.flag_japan)); + translationContributors.add(new Translation("한국어", "noname", R.drawable.flag_south_korea)); + translationContributors.add(new Translation("norsk", "", R.drawable.flag_norway)); + translationContributors.add(new Translation("Português", "Bruno Guerreiro, Lucas", R.drawable.flag_portugal)); + translationContributors.add(new Translation("Português (BR)", "Laura Vasconcellos Pereira Felippe, Ricky, Super_Iguanna", R.drawable.flag_brazil)); + translationContributors.add(new Translation("Română", "", R.drawable.flag_romania)); + translationContributors.add(new Translation("русский язык", "aveblazer, flexagoon, Georgiy, Vova", R.drawable.flag_russia)); + translationContributors.add(new Translation("Español", "Jorge, Miguel, mvstermoe, Nana Snixx, Sofia Flores", R.drawable.flag_spain)); + translationContributors.add(new Translation("svenska", "Marcus Nordberg", R.drawable.flag_sweden)); + translationContributors.add(new Translation("Türk", "Emir481, Faoiltiarna, Mehmet Yavuz, Serif", R.drawable.flag_turkey)); + translationContributors.add(new Translation("Tiếng Việt", "Kai, Laezzy, Lmao, Ryan, viecdet69", R.drawable.flag_vietnam)); + return translationContributors; + } +} diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/TranslationFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/TranslationFragment.java new file mode 100644 index 00000000..44ad57e8 --- /dev/null +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/TranslationFragment.java @@ -0,0 +1,58 @@ +package ml.docilealligator.infinityforreddit.Settings; + +import android.app.Activity; +import android.content.Context; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import androidx.annotation.NonNull; +import androidx.fragment.app.Fragment; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; + +import javax.inject.Inject; + +import butterknife.BindView; +import butterknife.ButterKnife; +import ml.docilealligator.infinityforreddit.Adapter.TranslationFragmentRecyclerViewAdapter; +import ml.docilealligator.infinityforreddit.CustomTheme.CustomThemeWrapper; +import ml.docilealligator.infinityforreddit.Infinity; +import ml.docilealligator.infinityforreddit.R; + +public class TranslationFragment extends Fragment { + + @BindView(R.id.recycler_view_translation_fragment) + RecyclerView recyclerView; + @Inject + CustomThemeWrapper customThemeWrapper; + private Activity activity; + + public TranslationFragment() { + // Required empty public constructor + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + View rootView = inflater.inflate(R.layout.fragment_translation, container, false); + + ((Infinity) activity.getApplication()).getAppComponent().inject(this); + + ButterKnife.bind(this, rootView); + + TranslationFragmentRecyclerViewAdapter adapter = new TranslationFragmentRecyclerViewAdapter(activity, customThemeWrapper); + recyclerView.setLayoutManager(new LinearLayoutManager(activity)); + recyclerView.setAdapter(adapter); + + return rootView; + } + + @Override + public void onAttach(@NonNull Context context) { + super.onAttach(context); + activity = (Activity) context; + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable/flag_brazil.xml b/app/src/main/res/drawable/flag_brazil.xml new file mode 100644 index 00000000..04e3485b --- /dev/null +++ b/app/src/main/res/drawable/flag_brazil.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/app/src/main/res/drawable/flag_china.xml b/app/src/main/res/drawable/flag_china.xml new file mode 100644 index 00000000..e0dceaaf --- /dev/null +++ b/app/src/main/res/drawable/flag_china.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/app/src/main/res/drawable/flag_croatia.xml b/app/src/main/res/drawable/flag_croatia.xml new file mode 100644 index 00000000..ae31dba0 --- /dev/null +++ b/app/src/main/res/drawable/flag_croatia.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/flag_france.xml b/app/src/main/res/drawable/flag_france.xml new file mode 100644 index 00000000..19e2182c --- /dev/null +++ b/app/src/main/res/drawable/flag_france.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/flag_germany.xml b/app/src/main/res/drawable/flag_germany.xml new file mode 100644 index 00000000..a17c08b9 --- /dev/null +++ b/app/src/main/res/drawable/flag_germany.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/flag_greece.xml b/app/src/main/res/drawable/flag_greece.xml new file mode 100644 index 00000000..7dfc2da0 --- /dev/null +++ b/app/src/main/res/drawable/flag_greece.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/app/src/main/res/drawable/flag_hungary.xml b/app/src/main/res/drawable/flag_hungary.xml new file mode 100644 index 00000000..21a9f40c --- /dev/null +++ b/app/src/main/res/drawable/flag_hungary.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/flag_india.xml b/app/src/main/res/drawable/flag_india.xml new file mode 100644 index 00000000..7e96cbbe --- /dev/null +++ b/app/src/main/res/drawable/flag_india.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/app/src/main/res/drawable/flag_italy.xml b/app/src/main/res/drawable/flag_italy.xml new file mode 100644 index 00000000..dbf19c86 --- /dev/null +++ b/app/src/main/res/drawable/flag_italy.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/flag_japan.xml b/app/src/main/res/drawable/flag_japan.xml new file mode 100644 index 00000000..5653cbbb --- /dev/null +++ b/app/src/main/res/drawable/flag_japan.xml @@ -0,0 +1,12 @@ + + + + diff --git a/app/src/main/res/drawable/flag_norway.xml b/app/src/main/res/drawable/flag_norway.xml new file mode 100644 index 00000000..ecb80eda --- /dev/null +++ b/app/src/main/res/drawable/flag_norway.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/app/src/main/res/drawable/flag_portugal.xml b/app/src/main/res/drawable/flag_portugal.xml new file mode 100644 index 00000000..a0e92558 --- /dev/null +++ b/app/src/main/res/drawable/flag_portugal.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/app/src/main/res/drawable/flag_romania.xml b/app/src/main/res/drawable/flag_romania.xml new file mode 100644 index 00000000..e6daa579 --- /dev/null +++ b/app/src/main/res/drawable/flag_romania.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/flag_russia.xml b/app/src/main/res/drawable/flag_russia.xml new file mode 100644 index 00000000..08ec9553 --- /dev/null +++ b/app/src/main/res/drawable/flag_russia.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/flag_south_korea.xml b/app/src/main/res/drawable/flag_south_korea.xml new file mode 100644 index 00000000..5481b529 --- /dev/null +++ b/app/src/main/res/drawable/flag_south_korea.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/flag_spain.xml b/app/src/main/res/drawable/flag_spain.xml new file mode 100644 index 00000000..b3e03266 --- /dev/null +++ b/app/src/main/res/drawable/flag_spain.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/flag_sweden.xml b/app/src/main/res/drawable/flag_sweden.xml new file mode 100644 index 00000000..fe24454d --- /dev/null +++ b/app/src/main/res/drawable/flag_sweden.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/app/src/main/res/drawable/flag_turkey.xml b/app/src/main/res/drawable/flag_turkey.xml new file mode 100644 index 00000000..57be045c --- /dev/null +++ b/app/src/main/res/drawable/flag_turkey.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/flag_vietnam.xml b/app/src/main/res/drawable/flag_vietnam.xml new file mode 100644 index 00000000..a7e76979 --- /dev/null +++ b/app/src/main/res/drawable/flag_vietnam.xml @@ -0,0 +1,12 @@ + + + + diff --git a/app/src/main/res/layout/fragment_translation.xml b/app/src/main/res/layout/fragment_translation.xml new file mode 100644 index 00000000..69234bd3 --- /dev/null +++ b/app/src/main/res/layout/fragment_translation.xml @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_translation_contributor.xml b/app/src/main/res/layout/item_translation_contributor.xml new file mode 100644 index 00000000..7054a892 --- /dev/null +++ b/app/src/main/res/layout/item_translation_contributor.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ce787a3c..018969fa 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -490,6 +490,7 @@ Floating Action Button Data Saving Mode In data saving mode, preview images are in lower resolution. + Translation Cannot get the link @@ -907,5 +908,7 @@ Code: %1$d/\n Message: %2$s Award given Failed + + Hello blank fragment diff --git a/app/src/main/res/xml/about_preferences.xml b/app/src/main/res/xml/about_preferences.xml index a73f9aaa..74a17eaa 100644 --- a/app/src/main/res/xml/about_preferences.xml +++ b/app/src/main/res/xml/about_preferences.xml @@ -10,6 +10,11 @@ app:title="@string/settings_credits_master_title" app:fragment="ml.docilealligator.infinityforreddit.Settings.CreditsPreferenceFragment" /> + +