Skip to content

Commit

Permalink
Update 6.0_r3
Browse files Browse the repository at this point in the history
  • Loading branch information
D4rK7355608 committed Aug 13, 2023
1 parent f548f56 commit 9fcd99b
Show file tree
Hide file tree
Showing 20 changed files with 92 additions and 137 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Version 6.0_r3:
- Made minor under-the-hood improvements for a better overall app experience.

# Version 6.0_r2:
- Made minor under-the-hood improvements for a better overall app experience.

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId = "com.d4rk.androidtutorials"
minSdk = 26
targetSdk = 34
versionCode = 64
versionName = "6.0_r2"
versionCode = 65
versionName = "6.0_r3"
archivesName = "${applicationId}-v${versionName}"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
resourceConfigurations += listOf("en", "de", "es", "fr", "hi", "hu", "in", "it", "ja", "ro", "ru", "tr", "sv", "bg", "pl", "uk")
Expand Down
70 changes: 1 addition & 69 deletions app/src/main/res/layout/fragment_buttons_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
tools:ignore="SpeakableTextPresentCheck"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -55,10 +51,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
tools:ignore="SpeakableTextPresentCheck"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -74,10 +66,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
tools:ignore="SpeakableTextPresentCheck"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -93,10 +81,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
tools:ignore="SpeakableTextPresentCheck"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -112,10 +96,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
tools:ignore="SpeakableTextPresentCheck"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -131,10 +111,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
tools:ignore="SpeakableTextPresentCheck"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -150,10 +126,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
tools:ignore="SpeakableTextPresentCheck"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -168,10 +140,6 @@
android:padding="16dp"
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -186,10 +154,6 @@
android:padding="16dp"
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -204,10 +168,6 @@
android:padding="16dp"
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -223,10 +183,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
app:layout_constraintTop_toBottomOf="@id/text_view_extended_floating_button_primary_icon"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -241,10 +197,6 @@
android:padding="16dp"
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -259,10 +211,6 @@
android:padding="16dp"
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -277,10 +225,6 @@
android:padding="16dp"
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -296,10 +240,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
tools:ignore="SpeakableTextPresentCheck"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -315,10 +255,6 @@
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"
app:layout_constraintTop_toBottomOf="@id/text_view_floating_button_secondary"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand All @@ -333,10 +269,6 @@
android:padding="16dp"
android:textIsSelectable="true"
app:fontFamily="@font/font_audiowide"/>
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"/>
<com.google.android.material.textview.MaterialTextView
style="@style/TextAppearance.Material3.HeadlineSmall"
android:layout_width="match_parent"
Expand Down Expand Up @@ -368,6 +300,6 @@
android:layout_height="wrap_content"
android:layout_width="match_parent"
ads:adSize="FULL_BANNER"
ads:adUnitId="ca-app-pub-5294151573817700/4974008668"/>
ads:adUnitId="ca-app-pub-5294151573817700/3821250346"/>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
8 changes: 4 additions & 4 deletions app/src/main/res/raw/text_alertdialog_kotlin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import android.os.Bundle
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import androidx.appcompat.app.AppCompatActivity

// Create a new activity named MainActivity which extends AppCompatActivity
// This class extends AppCompatActivity and represents the main activity of an Android app
class MainActivity : AppCompatActivity() {

// Declare a private variable named 'binding' of type 'ActivityMainBinding'
// Declare a private lateinit variable for binding the layout with this activity
private lateinit var binding : ActivityMainBinding

// Override the onCreate method of AppCompatActivity to initialize the UI
// This method is called when the activity is first created
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

// Inflate the layout using the ActivityMainBinding class
// Inflate the layout and set it as the content view for this activity
binding = ActivityMainBinding.inflate(layoutInflater)

// Set the content view to the root view of the inflated layout
Expand Down
10 changes: 6 additions & 4 deletions app/src/main/res/raw/text_chronometer_kotlin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ import android.os.Handler
import android.os.SystemClock
import androidx.appcompat.app.AppCompatActivity

// Define MainActivity class which extends AppCompatActivity class
// This class extends AppCompatActivity and represents the main activity of an Android app
class MainActivity : AppCompatActivity() {

// Declare binding variable for accessing views in the layout
// Declare a private lateinit variable for binding the layout with this activity
private lateinit var binding: ActivityMainBinding

// Override onCreate method to set up the activity
// This method is called when the activity is first created
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

// Inflate the layout using View Binding and set it as the content view
// Inflate the layout and set it as the content view for this activity
binding = ActivityChronometerBinding.inflate(layoutInflater)

// Set the content view to the root view of the inflated layout
setContentView(binding.root)

// Set up click listener for start button to start the chronometer
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/res/raw/text_datepicker_kotlin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,24 @@ import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Locale

// Define MainActivity class which extends AppCompatActivity class
// This class extends AppCompatActivity and represents the main activity of an Android app
class MainActivity : AppCompatActivity() {

// Declare a private lateinit variable for binding the layout with this activity
private lateinit var binding : ActivityMainBinding

// Declare a private val variable for calendar instance
private val calendar: Calendar = Calendar.getInstance()

// Override onCreate method which is called when the activity is first created
// This method is called when the activity is first created
override fun onCreate(savedInstanceState: Bundle?) {
// Call super.onCreate to complete the creation of activity
super.onCreate(savedInstanceState)

// Inflate the layout for this activity using layoutInflater and assign it to binding variable
// Inflate the layout and set it as the content view for this activity
binding = ActivityMainBinding.inflate(layoutInflater)

// Set the content view for this activity using the root view from binding variable
// Set the content view to the root view of the inflated layout
setContentView(binding.root)

// Create a SimpleDateFormat object with desired date format and locale
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/raw/text_grid_view_kotlin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity

// Class declaration
// This class extends AppCompatActivity and represents the main activity of an Android app
class MainActivity : AppCompatActivity() {

// Late-initialized variable
// Declare a private lateinit variable for binding the layout with this activity
private lateinit var binding: ActivityMainBinding

// Array of numbers
private val numbers = arrayOf("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")

// onCreate() method
// This method is called when the activity is first created
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

// Inflate the layout
// Inflate the layout and set it as the content view for this activity
binding = ActivityMainBinding.inflate(layoutInflater)

// Set the content view
// Set the content view to the root view of the inflated layout
setContentView(binding.root)

// Create an adapter for the grid view
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/res/raw/text_image_buttons_kotlin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity

// Define MainActivity class which extends AppCompatActivity class
// This class extends AppCompatActivity and represents the main activity of an Android app
class MainActivity : AppCompatActivity() {

// Declare a private lateinit variable for binding the layout with this activity
private lateinit var binding: ActivityMainBinding

// Override onCreate method which is called when the activity is first created
// This method is called when the activity is first created
override fun onCreate(savedInstanceState: Bundle?) {
// Call super.onCreate to complete the creation of activity
super.onCreate(savedInstanceState)

// Inflate the layout for this activity using layoutInflater and assign it to binding variable
// Inflate the layout and set it as the content view for this activity
binding = ActivityMainBinding.inflate(layoutInflater)

// Set the content view for this activity using the root view from binding variable
// Set the content view to the root view of the inflated layout
setContentView(binding.root)

// Add onClickListener to imageButton
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/raw/text_inbox_notification_kotlin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.os.Bundle
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import androidx.appcompat.app.AppCompatActivity

// Create a new activity named MainActivity which extends AppCompatActivity
// This class extends AppCompatActivity and represents the main activity of an Android app
class MainActivity : AppCompatActivity() {

// Declare a private constant named 'notificationChannelId' of type 'String' and assign it the value "inbox_notification"
Expand All @@ -13,14 +13,14 @@ class MainActivity : AppCompatActivity() {
// Declare a private constant named 'notificationId' of type 'Int' and assign it the value 1
private val notificationId = 1

// Declare a private variable named 'binding' of type 'ActivityMainBinding'
// Declare a private lateinit variable for binding the layout with this activity
private lateinit var binding : ActivityMainBinding

// Override the onCreate method of AppCompatActivity to initialize the UI
// This method is called when the activity is first created
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

// Inflate the layout using the ActivityMainBinding class
// Inflate the layout and set it as the content view for this activity
binding = ActivityMainBinding.inflate(layoutInflater)

// Set the content view to the root view of the inflated layout
Expand Down
Loading

0 comments on commit 9fcd99b

Please sign in to comment.