From 5d86f13776bdcb8ddcda54f6771f6ac4247b1329 Mon Sep 17 00:00:00 2001 From: Adhiambo Peres <59600948+adhiamboperes@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:36:00 +0300 Subject: [PATCH 001/138] Add drawable resources --- .../drawable/ic_language_icon_black_24dp.xml | 10 ++++++++++ app/src/main/res/drawable/otter.png | Bin 0 -> 13893 bytes 2 files changed, 10 insertions(+) create mode 100644 app/src/main/res/drawable/ic_language_icon_black_24dp.xml create mode 100644 app/src/main/res/drawable/otter.png diff --git a/app/src/main/res/drawable/ic_language_icon_black_24dp.xml b/app/src/main/res/drawable/ic_language_icon_black_24dp.xml new file mode 100644 index 00000000000..e89dd7a2a58 --- /dev/null +++ b/app/src/main/res/drawable/ic_language_icon_black_24dp.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/otter.png b/app/src/main/res/drawable/otter.png new file mode 100644 index 0000000000000000000000000000000000000000..9f42e7f8dcc60fe62ad7f7c9b2aa2f81e82e75fb GIT binary patch literal 13893 zcmV-LHoD1)P)ApjRaV#dsfUSf zH*y4gcdqgJ$V6lmKmlAhTfnwJBEiEfX&L)SNznYvveruWtd)1JdEQ4Uf(yMMLEx*j z2>f{jpCAbfuU}r{r5@z5r4_FBz}Y3t8!aWZb|ax)BIzZ&Xs_)JLlRC#0m68A@vI7V z;g&F=_h{ZpAYYEX|Kx>hY7Mino2#o_&RlVcBned!p^Qc(iPpBa*{ap7z8pGP10Xd*_2YYN!`*P==7;3({(K zq1}`y61iIgXJPHCDM?=VSyfq3l$J<>SRrwNlqgZyekM1QwYIr~&68_}W^9$xPtOc-TZ#p~r)S4u!;7f+ty{ zHGfFd`m6kKz2wNMOl4RZ@oSW(Y*;)Cp-weXB5}1k64}b{T(`}e$UfXUJDKMp7T+6! zh48cH!~7XtAlEqHbXbJa`9Kx~o-%jea) z{d4!vXD(k{DoMsDUFGsxq*mSo(x8ks@j5QJUMLIDu=P%niX&;M-xl7J-E5t%RK zNgOWt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2X>@o`7@fi(?*>U_}zSzL3?6Ia<;-y=Xe#GHg;Wb4HFsCY>Oj9^6w=xQ3kRCW5}a` z2kLml6LE%r`R9RMpZoM^55>6S3Qh!yfD@JE8<=TF<(BXPF!pf@{D6~B~vS8V@ zDgllOBN=OK5M)n_{6vFj;1m=5vz>@dW3x$B~O^Pu=8^R`6hwvw} zJ14?x=@Lh26%Xv^?A#aQ$#Igr7nun?8s5M`QhrwYTefK3jvC4k0dfH$&Ru@sNn!8? zg)NQ@;Y02hD=fjaM3{<|BDAjSGtlMYA!{rkJ5U51H{L{i$P~gSo}72e6I0oh;W?n< zfSzC8q2QcCm7Q3Q3+5!cpyHOEbRPPFL?bO>$XR%534$r$1F;~tkfo_ zBe)cms`X1fZVCw1d_uFjBJeUFtXpR%UxqkrSUjsP(fhr@b3@P)@zhWRlswgn9J0ke zlZp;U%XZfiuK=k$eT%W z6Xda_9#?z7UKhS3ekwr-g{n`uN9gDbe^UW0zvu{7Dn$Ys?-9n_q(BQ2Py~c5o6zkp ziR5DccS)k5OHd3h%LsGN0VQY)*f*Q%&Y!T_5^YLQ_M#86cG0@+OVxiuBWR%3psj*g zW!wzgL(!p8sIKf~Nyba)Ztom=+r`6+XH|$KR;Y$A*k7V8tW;T>30-=RL~?>u5^c5R zJCtfy1Z_rC_jG=)5S>bpXp)J2o7>54vpHPk2>38jBU)iH^d4Qg7GcRu&G?x#)iR5H zknML(a-Kw3o8t&pE6GIXJuE8taz3FIP28Qo%?l+gCE1gkCDv$_r&O*ym7$LVMUXmd z6|CYjFHG1%aF30-1=1dPZKoqpA1-vrNE|F= TL>^$D00000NkvXXu0mjfYSp?Y literal 0 HcmV?d00001 From a17713d44a11971948b890efec347e67dd886f6b Mon Sep 17 00:00:00 2001 From: Adhiambo Peres <59600948+adhiamboperes@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:52:50 +0300 Subject: [PATCH 002/138] Make SurveyOnboardingBackgroundView generic for reuse. --- app/BUILD.bazel | 2 +- ...undView.kt => OppiaCurveBackgroundView.kt} | 44 ++++++++++--------- .../android/app/view/ViewComponentImpl.kt | 4 +- .../survey_welcome_dialog_fragment.xml | 3 +- .../survey_welcome_dialog_fragment.xml | 3 +- .../layout/survey_outro_dialog_fragment.xml | 3 +- .../layout/survey_welcome_dialog_fragment.xml | 3 +- app/src/main/res/values/attrs.xml | 4 ++ .../assets/kdoc_validity_exemptions.textproto | 2 +- scripts/assets/test_file_exemptions.textproto | 2 +- 10 files changed, 40 insertions(+), 30 deletions(-) rename app/src/main/java/org/oppia/android/app/customview/{SurveyOnboardingBackgroundView.kt => OppiaCurveBackgroundView.kt} (69%) diff --git a/app/BUILD.bazel b/app/BUILD.bazel index b2b9ae0ecae..2077aadfa2d 100644 --- a/app/BUILD.bazel +++ b/app/BUILD.bazel @@ -411,7 +411,7 @@ VIEWS_WITH_RESOURCE_IMPORTS = [ "src/main/java/org/oppia/android/app/customview/LessonThumbnailImageView.kt", "src/main/java/org/oppia/android/app/customview/PromotedStoryCardView.kt", "src/main/java/org/oppia/android/app/customview/SegmentedCircularProgressView.kt", - "src/main/java/org/oppia/android/app/customview/SurveyOnboardingBackgroundView.kt", + "src/main/java/org/oppia/android/app/customview/OppiaCurveBackgroundView.kt", "src/main/java/org/oppia/android/app/customview/VerticalDashedLineView.kt", "src/main/java/org/oppia/android/app/survey/SurveyMultipleChoiceOptionView.kt", "src/main/java/org/oppia/android/app/survey/SurveyNpsItemOptionView.kt", diff --git a/app/src/main/java/org/oppia/android/app/customview/SurveyOnboardingBackgroundView.kt b/app/src/main/java/org/oppia/android/app/customview/OppiaCurveBackgroundView.kt similarity index 69% rename from app/src/main/java/org/oppia/android/app/customview/SurveyOnboardingBackgroundView.kt rename to app/src/main/java/org/oppia/android/app/customview/OppiaCurveBackgroundView.kt index 4ef674dc6ab..9f60f2c4cca 100644 --- a/app/src/main/java/org/oppia/android/app/customview/SurveyOnboardingBackgroundView.kt +++ b/app/src/main/java/org/oppia/android/app/customview/OppiaCurveBackgroundView.kt @@ -1,13 +1,13 @@ package org.oppia.android.app.customview import android.content.Context +import android.content.res.TypedArray import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.Path import android.util.AttributeSet import android.view.View -import androidx.core.content.ContextCompat import androidx.core.view.ViewCompat import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager @@ -18,33 +18,38 @@ import org.oppia.android.app.view.ViewComponentImpl import javax.inject.Inject /** - * CustomView to add a background to [SurveyWelcomeDialogFragment] and [SurveyOutroDialogFragment]. - * Without chaptersFinished and totalChapters values this custom-view cannot be created. + * CustomView to add a background to views that require a bezier curve background. * * Reference: // https://proandroiddev.com/how-i-drew-custom-shapes-in-bottom-bar-c4539d86afd7 and * // https://ciechanow.ski/drawing-bezier-curves/ */ -class SurveyOnboardingBackgroundView : View { - @Inject - lateinit var resourceHandler: AppLanguageResourceHandler +class OppiaCurveBackgroundView @JvmOverloads constructor( + context: Context, + attrs: AttributeSet? = null, + defStyleAttr: Int = 0 +) : View(context, attrs, defStyleAttr) { + /** + * Used to retrieve the layout direction that should be used to mirror the direction of the + * curve based on locale. + */ + @Inject lateinit var resourceHandler: AppLanguageResourceHandler private val isRtl by lazy { resourceHandler.getLayoutDirection() == ViewCompat.LAYOUT_DIRECTION_RTL } + private var customBackgroundColor = Color.WHITE // Default color + private lateinit var paint: Paint private lateinit var path: Path private var strokeWidth = 2f - constructor(context: Context) : super(context) - constructor(context: Context, attrs: AttributeSet) : super(context, attrs) - constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super( - context, - attrs, - defStyleAttr - ) - init { + val typedArray: TypedArray = + context.obtainStyledAttributes(attrs, R.styleable.OppiaCurveBackgroundView) + customBackgroundColor = + typedArray.getColor(R.styleable.OppiaCurveBackgroundView_customBackgroundColor, Color.WHITE) + typedArray.recycle() setupCurvePaint() } @@ -61,10 +66,10 @@ class SurveyOnboardingBackgroundView : View { val width = this.width.toFloat() val height = this.height.toFloat() - val controlPoint1X = width * 0.5f + val controlPoint1X = width * 0.55f val controlPoint1Y = 0f - val controlPoint2X = width * 0.5f + val controlPoint2X = width * 0.52f val controlPoint2Y = height * 0.2f val controlPoint3X = width * 1f @@ -91,11 +96,8 @@ class SurveyOnboardingBackgroundView : View { paint = Paint(Paint.ANTI_ALIAS_FLAG) paint.apply { style = Paint.Style.FILL_AND_STROKE - strokeWidth = this@SurveyOnboardingBackgroundView.strokeWidth - color = ContextCompat.getColor( - context, - R.color.component_color_survey_popup_background_color - ) + strokeWidth = this@OppiaCurveBackgroundView.strokeWidth + color = customBackgroundColor } setBackgroundColor(Color.TRANSPARENT) } diff --git a/app/src/main/java/org/oppia/android/app/view/ViewComponentImpl.kt b/app/src/main/java/org/oppia/android/app/view/ViewComponentImpl.kt index 08726cc7f49..c083c84bd4c 100644 --- a/app/src/main/java/org/oppia/android/app/view/ViewComponentImpl.kt +++ b/app/src/main/java/org/oppia/android/app/view/ViewComponentImpl.kt @@ -8,7 +8,7 @@ import org.oppia.android.app.customview.ContinueButtonView import org.oppia.android.app.customview.LessonThumbnailImageView import org.oppia.android.app.customview.PromotedStoryCardView import org.oppia.android.app.customview.SegmentedCircularProgressView -import org.oppia.android.app.customview.SurveyOnboardingBackgroundView +import org.oppia.android.app.customview.OppiaCurveBackgroundView import org.oppia.android.app.home.promotedlist.ComingSoonTopicsListView import org.oppia.android.app.home.promotedlist.PromotedStoryListView import org.oppia.android.app.player.state.DragDropSortInteractionView @@ -42,7 +42,7 @@ interface ViewComponentImpl : ViewComponent { fun inject(promotedStoryCardView: PromotedStoryCardView) fun inject(promotedStoryListView: PromotedStoryListView) fun inject(segmentedCircularProgressView: SegmentedCircularProgressView) - fun inject(surveyOnboardingBackgroundView: SurveyOnboardingBackgroundView) + fun inject(oppiaCurveBackgroundView: OppiaCurveBackgroundView) fun inject(surveyMultipleChoiceOptionView: SurveyMultipleChoiceOptionView) fun inject(surveyNpsItemOptionView: SurveyNpsItemOptionView) } diff --git a/app/src/main/res/layout-land/survey_welcome_dialog_fragment.xml b/app/src/main/res/layout-land/survey_welcome_dialog_fragment.xml index 9a41b4cf558..0e5ef2b6dc3 100644 --- a/app/src/main/res/layout-land/survey_welcome_dialog_fragment.xml +++ b/app/src/main/res/layout-land/survey_welcome_dialog_fragment.xml @@ -22,10 +22,11 @@ android:orientation="horizontal" app:layout_constraintGuide_percent="0.10" /> - - - - + + + + diff --git a/scripts/assets/kdoc_validity_exemptions.textproto b/scripts/assets/kdoc_validity_exemptions.textproto index 94f9f14c159..fb49c21573b 100644 --- a/scripts/assets/kdoc_validity_exemptions.textproto +++ b/scripts/assets/kdoc_validity_exemptions.textproto @@ -3,7 +3,7 @@ exempted_file_path: "app/src/main/java/org/oppia/android/app/application/Applica exempted_file_path: "app/src/main/java/org/oppia/android/app/application/ApplicationInjectorProvider.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/application/ApplicationStartupListenerModule.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/administratorcontrols/RouteToProfileListListener.kt" -exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/SurveyOnboardingBackgroundView.kt" +exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/OppiaCurveBackgroundView.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/notice/AutomaticAppDeprecationNoticeDialogFragmentPresenter.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/devoptions/DeveloperOptionsActivityPresenter.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/devoptions/DeveloperOptionsFragment.kt" diff --git a/scripts/assets/test_file_exemptions.textproto b/scripts/assets/test_file_exemptions.textproto index e2bc3b9b559..a210716305b 100644 --- a/scripts/assets/test_file_exemptions.textproto +++ b/scripts/assets/test_file_exemptions.textproto @@ -70,9 +70,9 @@ exempted_file_path: "app/src/main/java/org/oppia/android/app/completedstorylist/ exempted_file_path: "app/src/main/java/org/oppia/android/app/completedstorylist/CompletedStoryListViewModel.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/ChapterNotStartedContainerConstraintLayout.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/ContinueButtonView.kt" +exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/OppiaCurveBackgroundView.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/PromotedStoryCardView.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/SegmentedCircularProgressView.kt" -exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/SurveyOnboardingBackgroundView.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/VerticalDashedLineView.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/interaction/FractionInputInteractionView.kt" exempted_file_path: "app/src/main/java/org/oppia/android/app/customview/interaction/NumericInputInteractionView.kt" From 7c11bcdba0df1ff532a4d2bb283ee66577c290dc Mon Sep 17 00:00:00 2001 From: Adhiambo Peres <59600948+adhiamboperes@users.noreply.github.com> Date: Wed, 27 Mar 2024 18:56:27 +0300 Subject: [PATCH 003/138] Create app language selection UI --- .../app/onboarding/OnboardingFragment.kt | 16 +- .../OnboardingFragmentPresenter.kt | 40 ++++ .../main/res/drawable/dropdown_background.xml | 23 +++ ...arding_app_language_selection_fragment.xml | 139 ++++++++++++++ ...arding_app_language_selection_fragment.xml | 171 +++++++++++++++++ ...arding_app_language_selection_fragment.xml | 173 ++++++++++++++++++ ...arding_app_language_selection_fragment.xml | 150 +++++++++++++++ .../main/res/values-night/color_palette.xml | 3 + app/src/main/res/values/color_palette.xml | 3 + app/src/main/res/values/component_colors.xml | 4 + app/src/main/res/values/dimens.xml | 36 ++++ app/src/main/res/values/strings.xml | 12 ++ app/src/main/res/values/styles.xml | 64 +++++++ 13 files changed, 833 insertions(+), 1 deletion(-) create mode 100644 app/src/main/java/org/oppia/android/app/onboardingv2/OnboardingFragmentPresenter.kt create mode 100644 app/src/main/res/drawable/dropdown_background.xml create mode 100644 app/src/main/res/layout-land/onboarding_app_language_selection_fragment.xml create mode 100644 app/src/main/res/layout-sw600dp-land/onboarding_app_language_selection_fragment.xml create mode 100644 app/src/main/res/layout-sw600dp-port/onboarding_app_language_selection_fragment.xml create mode 100644 app/src/main/res/layout/onboarding_app_language_selection_fragment.xml diff --git a/app/src/main/java/org/oppia/android/app/onboarding/OnboardingFragment.kt b/app/src/main/java/org/oppia/android/app/onboarding/OnboardingFragment.kt index 081abae41ee..26949323a18 100644 --- a/app/src/main/java/org/oppia/android/app/onboarding/OnboardingFragment.kt +++ b/app/src/main/java/org/oppia/android/app/onboarding/OnboardingFragment.kt @@ -7,13 +7,23 @@ import android.view.View import android.view.ViewGroup import org.oppia.android.app.fragment.FragmentComponentImpl import org.oppia.android.app.fragment.InjectableFragment +import org.oppia.android.util.platformparameter.EnableOnboardingFlowV2 +import org.oppia.android.util.platformparameter.PlatformParameterValue import javax.inject.Inject +import org.oppia.android.app.onboardingv2.OnboardingFragmentPresenter as OnboardingFragmentPresenterV2 /** Fragment that contains an onboarding flow of the app. */ class OnboardingFragment : InjectableFragment() { @Inject lateinit var onboardingFragmentPresenter: OnboardingFragmentPresenter + @Inject + lateinit var onboardingFragmentPresenterV2: OnboardingFragmentPresenterV2 + + @Inject + @field:EnableOnboardingFlowV2 + lateinit var enableOnboardingFlowV2: PlatformParameterValue + override fun onAttach(context: Context) { super.onAttach(context) (fragmentComponent as FragmentComponentImpl).inject(this) @@ -24,6 +34,10 @@ class OnboardingFragment : InjectableFragment() { container: ViewGroup?, savedInstanceState: Bundle? ): View? { - return onboardingFragmentPresenter.handleCreateView(inflater, container) + return if (enableOnboardingFlowV2.value) { + onboardingFragmentPresenterV2.handleCreateView(inflater, container) + } else { + onboardingFragmentPresenter.handleCreateView(inflater, container) + } } } diff --git a/app/src/main/java/org/oppia/android/app/onboardingv2/OnboardingFragmentPresenter.kt b/app/src/main/java/org/oppia/android/app/onboardingv2/OnboardingFragmentPresenter.kt new file mode 100644 index 00000000000..caa845c047b --- /dev/null +++ b/app/src/main/java/org/oppia/android/app/onboardingv2/OnboardingFragmentPresenter.kt @@ -0,0 +1,40 @@ +package org.oppia.android.app.onboardingv2 + +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import androidx.fragment.app.Fragment +import javax.inject.Inject +import org.oppia.android.R +import org.oppia.android.app.fragment.FragmentScope +import org.oppia.android.app.translation.AppLanguageResourceHandler +import org.oppia.android.databinding.OnboardingAppLanguageSelectionFragmentBinding + +/** The presenter for [OnboardingFragment] V2. */ +@FragmentScope +class OnboardingFragmentPresenter @Inject constructor( + private val fragment: Fragment, + private val appLanguageResourceHandler: AppLanguageResourceHandler +) { + private lateinit var binding: OnboardingAppLanguageSelectionFragmentBinding + + /** Handle creation and binding of the [OnboardingFragment] V2 layout. */ + fun handleCreateView(inflater: LayoutInflater, container: ViewGroup?): View { + binding = OnboardingAppLanguageSelectionFragmentBinding.inflate( + inflater, + container, + /* attachToRoot= */ false + ) + + binding.let { + it.lifecycleOwner = fragment + } + + binding.onboardingLanguageTitle.text = appLanguageResourceHandler.getStringInLocaleWithWrapping( + R.string.onboarding_language_activity_title, + appLanguageResourceHandler.getStringInLocale(R.string.app_name) + ) + + return binding.root + } +} diff --git a/app/src/main/res/drawable/dropdown_background.xml b/app/src/main/res/drawable/dropdown_background.xml new file mode 100644 index 00000000000..3eca06cfe8c --- /dev/null +++ b/app/src/main/res/drawable/dropdown_background.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout-land/onboarding_app_language_selection_fragment.xml b/app/src/main/res/layout-land/onboarding_app_language_selection_fragment.xml new file mode 100644 index 00000000000..f33dbad10d1 --- /dev/null +++ b/app/src/main/res/layout-land/onboarding_app_language_selection_fragment.xml @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +