Skip to content

Commit

Permalink
Merge pull request #44 from m-i-n-a-r/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
m-i-n-a-r authored Jan 9, 2023
2 parents 4ffe281 + b75ef2b commit 77b4823
Show file tree
Hide file tree
Showing 29 changed files with 238 additions and 1,056 deletions.
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@ The main purpose of the app is provide a **random choice** in different ways. Th

## Translations (refer to [Crowdin](https://crwd.in/randomix))

| LANGUAGE | STATUS | SPECIAL THANKS |
|:----------------------|:--------:|:------------------------:|
| **English** | complete | myself, cosmojg |
| **Italian** | complete | myself |
| **Spanish** | complete | myself |
| **German** | complete | deep-ocean-fish, julius-d|
| **Russian** | complete | BValeo |
| **French** | complete | Firokat |
| **Czech** | complete | Miloš Koliáš, mormegil-cz|
| **Simplified Chinese**| complete | pumguy |
| **Indonesian** | complete | the7thNightmare |
| **Chinese (Taiwan)** | complete | Still34 |
| **Asturian** | complete | Softastur |
| LANGUAGE | SPECIAL THANKS |
|:----------------------|-------------------------:|
| **English** | myself, cosmojg |
| **Italian** | myself |
| **Spanish** | myself |
| **German** | deep-ocean-fish, julius-d|
| **Russian** | BValeo |
| **French** | Firokat |
| **Portuguese** | Kiskadee-dev |
| **Brazilian** | Kiskadee-dev |
| **Czech** | Miloš Koliáš, mormegil-cz|
| **Simplified Chinese**| pumguy |
| **Indonesian** | the7thNightmare |
| **Chinese (Taiwan)** | Still34 |
| **Asturian** | Softastur |

Special thanks to Nickoriginal for the overall improvement of each translation

Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ android {
applicationId "com.minar.randomix"
minSdkVersion 23
targetSdkVersion 33
versionCode 38
versionName "2.3"
resConfigs 'en', 'ast', 'cs', 'de', 'es', 'fr', 'id', 'it', 'ru', 'zh-rCN', 'zh-rTW'
versionCode 39
versionName "2.4"
resConfigs 'en', 'ast', 'cs', 'de', 'es', 'fr', 'id', 'it', 'ru', 'pt', 'pt-rBR', 'zh-rCN', 'zh-rTW'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import android.net.Uri;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

Expand Down Expand Up @@ -38,12 +39,15 @@ public void onBindViewHolder(@NonNull PreferenceViewHolder holder) {
ImageView l3 = v.findViewById(R.id.minarps);
ImageView l4 = v.findViewById(R.id.minargit);
ImageView l5 = v.findViewById(R.id.minarsite);
Button translate = v.findViewById(R.id.translateButton);

logo.setOnClickListener(this);
l1.setOnClickListener(this);
l2.setOnClickListener(this);
l3.setOnClickListener(this);
l4.setOnClickListener(this);
l5.setOnClickListener(this);
translate.setOnClickListener(this);
Drawable logoDrawable = logo.getDrawable();

// Delay the execution of the logo animation a bit
Expand All @@ -67,6 +71,15 @@ public void onClick(View v) {
return;
}

// Translate the app
if (pressedId == R.id.translateButton) {
if (act instanceof MainActivity) ((MainActivity) act).vibrate();
uri = Uri.parse(getContext().getString(R.string.dev_crowdin));
Intent intent1 = new Intent(Intent.ACTION_VIEW, uri);
getContext().startActivity(intent1);
return;
}

// Instagram
if (pressedId == R.id.minarig) {
if (act instanceof MainActivity) ((MainActivity) act).vibrate();
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/animated_randomix_logo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
android:name="logo"
android:pivotX="12"
android:pivotY="12"
android:scaleX=".8"
android:scaleY=".8">
android:scaleX=".6"
android:scaleY=".6">
<path
android:name="spiral"
android:pathData="M 11.118 22.468 C 9.105 22.205 7.437 21.604 5.889 20.53 C 5.135 19.943 4.473 19.303 3.847 18.592 C 3.304 17.975 2.65 16.89 2.317 16.055 C 1.932 15.149 1.73 14.11 1.598 13.311 C 1.524 12.865 1.516 11.26 1.585 10.766 C 1.717 9.802 1.926 8.913 2.266 8.041 C 2.659 7.082 3.145 6.265 3.796 5.444 C 4.621 4.493 5.609 3.636 6.421 3.089 C 7.819 2.192 9.416 1.718 10.874 1.539 C 11.245 1.494 12.885 1.501 13.27 1.549 C 14.733 1.732 15.985 2.128 17.046 2.743 C 18.524 3.56 19.917 5.008 20.821 6.219 C 21.484 7.116 22.148 8.766 22.345 10.009 C 22.566 11.684 22.462 13.528 22.141 14.903 C 21.872 15.84 21.402 16.851 20.927 17.593 C 20.136 18.821 18.973 19.941 17.908 20.706 C 16.392 21.681 15.107 22.164 13.386 22.417 C 12.887 22.489 11.716 22.515 11.118 22.468 Z M 12.559 21.069 C 14.603 20.816 15.888 19.536 16.096 17.545 C 16.113 17.381 16.113 17.381 15.516 17.381 C 14.839 17.381 14.893 17.365 14.892 17.563 C 14.889 18.357 13.933 19.988 13.86 19.324 C 13.713 17.999 12.278 17.358 11.23 18.15 C 10.789 18.482 10.517 19.147 10.604 19.676 C 10.628 19.824 10.636 19.824 10.411 19.687 C 9.52 19.146 9.007 18.046 9.069 16.808 C 9.122 15.737 9.55 14.987 10.556 14.201 C 10.807 14.004 11.251 13.649 11.377 13.542 C 11.457 13.476 11.457 13.476 11.457 14.389 C 11.457 15.303 11.457 15.303 12.029 15.303 C 12.602 15.303 12.602 15.303 12.602 14.323 C 12.602 13.783 12.611 13.329 12.62 13.314 C 12.642 13.28 12.827 13.486 13.265 14.031 C 14.592 15.683 15.292 16.076 16.906 16.077 C 19.507 16.078 21.034 14.645 21.119 12.121 C 21.197 9.793 19.558 7.919 17.431 7.903 C 17.422 7.903 17.415 8.174 17.415 8.505 C 17.415 9.177 17.4 9.133 17.627 9.133 C 18.199 9.133 18.965 9.488 19.419 9.963 C 19.588 10.14 19.588 10.14 19.36 10.165 C 18.033 10.311 17.391 11.746 18.184 12.795 C 18.516 13.236 19.181 13.508 19.71 13.421 C 19.777 13.41 19.832 13.405 19.832 13.41 C 19.832 13.897 18.606 14.748 17.691 14.897 C 16.141 15.149 15.197 14.719 14.056 13.24 C 13.91 13.051 13.729 12.825 13.654 12.738 C 13.517 12.579 13.517 12.579 14.427 12.573 C 15.337 12.568 15.337 12.568 15.337 11.995 C 15.337 11.423 15.337 11.423 14.356 11.423 C 13.817 11.423 13.364 11.415 13.349 11.405 C 13.317 11.385 13.548 11.178 14.081 10.749 C 15.764 9.396 16.154 8.666 16.116 6.94 C 16.062 4.466 14.616 2.992 12.162 2.906 C 9.857 2.826 8.195 4.227 7.962 6.446 C 7.945 6.61 7.945 6.61 8.543 6.61 C 9.22 6.61 9.166 6.626 9.167 6.428 C 9.169 5.634 10.126 4.003 10.199 4.667 C 10.346 5.992 11.781 6.633 12.829 5.841 C 13.269 5.509 13.542 4.844 13.455 4.315 C 13.431 4.17 13.425 4.172 13.603 4.276 C 14.521 4.812 15.053 5.928 14.99 7.183 C 14.937 8.254 14.509 9.004 13.503 9.79 C 13.252 9.987 12.808 10.342 12.681 10.449 C 12.602 10.515 12.602 10.515 12.602 9.602 C 12.602 8.688 12.602 8.688 12.029 8.688 C 11.457 8.688 11.457 8.688 11.457 9.668 C 11.456 10.208 11.449 10.661 11.439 10.676 C 11.419 10.708 11.212 10.477 10.783 9.944 C 9.43 8.261 8.7 7.871 6.974 7.909 C 4.493 7.963 3.016 9.418 2.941 11.879 C 2.871 14.16 4.223 15.788 6.405 16.052 C 6.644 16.081 6.644 16.081 6.644 15.482 C 6.644 14.805 6.659 14.859 6.462 14.858 C 5.667 14.856 4.037 13.899 4.702 13.826 C 6.803 13.593 6.653 10.564 4.54 10.564 C 4.228 10.564 4.228 10.564 4.294 10.448 C 4.811 9.523 5.952 8.972 7.217 9.035 C 8.288 9.088 9.038 9.516 9.824 10.522 C 10.02 10.773 10.376 11.217 10.482 11.344 C 10.549 11.423 10.549 11.423 9.635 11.423 C 8.722 11.423 8.722 11.423 8.722 11.996 C 8.722 12.568 8.722 12.568 9.702 12.568 C 10.242 12.569 10.695 12.576 10.71 12.586 C 10.742 12.606 10.511 12.813 9.977 13.242 C 8.294 14.595 7.904 15.326 7.943 17.051 C 7.991 19.16 9.048 20.55 10.927 20.974 C 11.389 21.078 12.136 21.122 12.559 21.069 Z"
Expand Down
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_translate_24dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?attr/colorPrimary"
android:pathData="M13.35,22q-0.6,0 -0.862,-0.387 -0.263,-0.388 -0.063,-0.963l3.65,-9.675q0.15,-0.4 0.563,-0.688Q17.05,10 17.5,10q0.425,0 0.85,0.287 0.425,0.288 0.575,0.688l3.65,9.675q0.2,0.575 -0.062,0.963 -0.263,0.387 -0.888,0.387 -0.275,0 -0.5,-0.175 -0.225,-0.175 -0.325,-0.425l-0.85,-2.45L15.1,18.95l-0.875,2.45q-0.1,0.25 -0.35,0.425 -0.25,0.175 -0.525,0.175ZM15.7,17.2h3.6l-1.75,-4.95h-0.1ZM7.15,8.55q0.4,0.725 0.85,1.337 0.45,0.613 1.05,1.263 1.1,-1.2 1.825,-2.462Q11.6,7.425 12.1,6L2,6q-0.425,0 -0.712,-0.287Q1,5.425 1,5t0.288,-0.713Q1.575,4 2,4h6L8,3q0,-0.425 0.288,-0.713Q8.575,2 9,2t0.713,0.287Q10,2.575 10,3v1h6q0.425,0 0.712,0.287Q17,4.575 17,5t-0.288,0.713Q16.425,6 16,6h-1.9q-0.525,1.775 -1.425,3.45 -0.9,1.675 -2.225,3.15l2.4,2.45 -0.75,2.05L9,14l-4.3,4.3q-0.275,0.275 -0.7,0.275 -0.425,0 -0.7,-0.275 -0.275,-0.275 -0.275,-0.7 0,-0.425 0.275,-0.7l4.35,-4.35q-0.675,-0.775 -1.25,-1.563 -0.575,-0.787 -1.025,-1.662Q5.1,8.8 5.35,8.4t0.875,-0.4q0.25,0 0.525,0.162 0.275,0.163 0.4,0.388Z" />
</vector>
1 change: 0 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
android:id="@+id/navigation"
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_navbar_height"
app:itemIconTint="@drawable/bottom_navbar_item"
app:labelVisibilityMode="labeled"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand Down
21 changes: 19 additions & 2 deletions app/src/main/res/layout/fragment_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />


<ImageView
android:id="@+id/imageMinar"
android:layout_width="match_parent"
Expand Down Expand Up @@ -57,7 +56,7 @@
android:focusable="true"
android:paddingVertical="@dimen/activity_vertical_margin"
android:src="@drawable/ic_instagram_black_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toTopOf="@id/translateButton"
app:layout_constraintEnd_toStartOf="@id/minartt"
app:layout_constraintHorizontal_chainStyle="spread"
app:layout_constraintStart_toStartOf="parent"
Expand Down Expand Up @@ -132,4 +131,22 @@
app:layout_constraintTop_toTopOf="@id/minarig"
app:tint="?attr/colorPrimary" />

<Button
android:id="@+id/translateButton"
style="@style/Widget.Material3.Button.ElevatedButton.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="@dimen/linear_vertical_padding"
android:contentDescription="@string/translate_app"
android:paddingVertical="@dimen/linear_vertical_padding"
android:text="@string/translate_app"
android:textColor="?attr/colorPrimary"
android:tint="?attr/colorPrimary"
app:icon="@drawable/ic_translate_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/minarsite"
app:rippleColor="?attr/colorPrimary" />

</androidx.constraintlayout.widget.ConstraintLayout>
Loading

0 comments on commit 77b4823

Please sign in to comment.