Skip to content

Commit

Permalink
Version 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshgaur committed Dec 15, 2022
1 parent 9479546 commit 82167b0
Show file tree
Hide file tree
Showing 20 changed files with 114 additions and 36 deletions.
Binary file modified Sample/.gradle/7.0.2/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified Sample/.gradle/7.0.2/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified Sample/.gradle/7.0.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified Sample/.gradle/7.0.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified Sample/.gradle/7.0.2/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified Sample/.gradle/7.0.2/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified Sample/.gradle/7.0.2/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified Sample/.gradle/7.0.2/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified Sample/.gradle/7.0.2/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified Sample/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified Sample/.gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Sample/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Sample/.idea/modules/app/TranslationSDK.app.iml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {

defaultConfig {

applicationId "com.java.test"
applicationId "com.kotlin.test"
minSdk 19
targetSdk 31
versionCode 1
Expand Down Expand Up @@ -43,7 +43,7 @@ dependencies {
implementation 'androidx.navigation:navigation-fragment-ktx:2.4.1'
implementation 'androidx.navigation:navigation-ui-ktx:2.4.1'

implementation ('com.github.DevnagriAI:android-sdk:1.1.3@aar') {
implementation ('com.github.DevnagriAI:android-sdk:1.1.4@aar') {
transitive(true)
}

Expand Down
78 changes: 59 additions & 19 deletions Sample/app/src/main/res/layout/fragment_first.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand All @@ -11,43 +10,84 @@
android:id="@+id/textview_first"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_first_fragment"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
style="@style/TvStyle"
app:layout_constraintBottom_toTopOf="@id/textview_second"
/>
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/textview_second"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/best_crickets"
app:layout_constraintTop_toBottomOf="@id/textview_first"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/button_first"
/>
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/textview_first" />

<Button
android:id="@+id/button_first"
style="@style/ButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/next"
app:layout_constraintTop_toBottomOf="@id/textview_first"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/button_second"
/>
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/textview_first" />

<Button
android:id="@+id/button_second"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/change_language"
app:layout_constraintTop_toBottomOf="@id/button_first"
style="@style/ChangelanguageButtonStyle"
app:layout_constraintBottom_toTopOf="@id/switchV"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/button_first" />

<androidx.appcompat.widget.SwitchCompat
android:id="@+id/switchV"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:padding="10dp"
style="@style/AreYouFineButtonStyle"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toTopOf="@+id/toggleBtn"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

<ToggleButton
android:id="@+id/toggleBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textOn="@string/no"
android:textOff="@string/yes"
app:layout_constraintBottom_toTopOf="@+id/radioBtn"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

<RadioGroup
android:id="@+id/radioBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
/>
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">

<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/radioYesStyle" />

<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/radioNoStyle" />

</RadioGroup>

</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 4 additions & 0 deletions Sample/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<string name="change">Change Now</string>
<string name="best_crickets"><u>Go to next screen to check best cricketers in world</u></string>

<string name="yes">Yes</string>
<string name="no">No</string>
<string name="testing_toggle">Testing Toggle</string>
<string name="are_you_fine">Are you fine</string>

<string-array name="best_cricket_eleven">
<item>Babar Azam</item>
Expand Down
34 changes: 34 additions & 0 deletions Sample/app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,38 @@
<style name="Theme.TranslationSDK.AppBarOverlay"
parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="Theme.TranslationSDK.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="ButtonStyle">
<item name="android:text">@string/next</item>
<item name="android:textColor">#fff</item>
</style>

<style name="ChangelanguageButtonStyle">
<item name="android:text">@string/change_language</item>
<item name="android:textColor">#fff</item>
</style>

<style name="AreYouFineButtonStyle">
<item name="android:text">@string/are_you_fine</item>
<item name="android:textColor">#000</item>
</style>

<style name="toogleStyle">
<item name="android:text">@string/testing_toggle</item>
<item name="android:textColor">#000</item>
</style>

<style name="TvStyle">
<item name="android:text">@string/hello_first_fragment</item>
<item name="android:textColor">#000</item>
</style>

<style name="radioYesStyle">
<item name="android:text">@string/yes</item>
<item name="android:textColor">#000</item>
</style>

<style name="radioNoStyle">
<item name="android:text">@string/no</item>
<item name="android:textColor">#000</item>
</style>
</resources>
Binary file removed Sample/build/.DS_Store
Binary file not shown.

0 comments on commit 82167b0

Please sign in to comment.