Skip to content

Commit

Permalink
v4.16
Browse files Browse the repository at this point in the history
  • Loading branch information
AndraxDev committed Jun 23, 2024
1 parent b0d6f74 commit efb2a6c
Show file tree
Hide file tree
Showing 30 changed files with 4,332 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .idea/deploymentTargetSelector.xml

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

13 changes: 4 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,14 @@ configurations {

android {
namespace 'org.teslasoft.assistant'
// compileSdkPreview "VanillaIceCream"
compileSdk 34

// defaultConfig {
// targetSdkPreview "VanillaIceCream"
// }
compileSdk 35

defaultConfig {
applicationId "org.teslasoft.assistant"
minSdk 28
targetSdk 34
versionCode 415
versionName "4.15"
targetSdk 35
versionCode 416
versionName "4.16"
}

buildTypes {
Expand Down
273 changes: 273 additions & 0 deletions app/src/main/res/layout-v35/activity_about.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**************************************************************************
* Copyright (c) 2023-2024 Dmytro Ostapenko. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**************************************************************************/
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http:https://schemas.android.com/apk/res/android"
xmlns:app="http:https://schemas.android.com/apk/res-auto"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ScrollView
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageButton
android:id="@+id/btn_back"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="16dp"
android:layout_marginTop="48dp"
android:background="@drawable/btn_accent_icon_large"
android:contentDescription="@string/go_back"
android:src="@drawable/ic_back"
android:tooltipText="Go back"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_back" />

<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/app_name"
android:textColor="@color/accent_900"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/app_icon" />

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/common_actions"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="36dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="36dp"
android:background="@drawable/btn_accent_24"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView7">

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_projects"
style="@style/Widget.Material3.Button.TonalButton"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:background="@drawable/btn_accent_selector_v2"
android:text="@string/about_view_other_projects"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<LinearLayout
android:id="@+id/constraintLayout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:weightSum="2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/btn_projects">

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_terms"
style="@style/Widget.Material3.Button.TonalButton"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginEnd="6dp"
android:layout_weight="1"
android:background="@drawable/btn_accent_selector_v2"
android:text="@string/about_terms"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_privacy"
style="@style/Widget.Material3.Button.TonalButton"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginStart="6dp"
android:layout_weight="1"
android:background="@drawable/btn_accent_selector_v2"
android:text="@string/about_privacy"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/btn_terms"
app:layout_constraintTop_toTopOf="parent" />
</LinearLayout>

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_feedback"
style="@style/Widget.Material3.Button.TonalButton"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="12dp"
android:background="@drawable/btn_accent_selector_v2"
android:text="@string/about_send_feedback"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout" />

</androidx.constraintlayout.widget.ConstraintLayout>

<LinearLayout
android:id="@+id/links"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="36dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="36dp"
android:layout_marginBottom="48dp"
android:background="@drawable/btn_accent_24"
android:baselineAligned="false"
android:gravity="center"
android:orientation="horizontal"
android:padding="12dp"
android:weightSum="2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/system_info">

<LinearLayout
android:id="@+id/btn_github"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="6dp"
android:layout_weight="1"
android:background="@drawable/btn_accent_tonal_selector_v5"
android:gravity="center"
android:orientation="vertical"
android:padding="16dp">

<LinearLayout
android:layout_width="80dp"
android:layout_height="80dp"
android:background="@drawable/ic_github"
android:orientation="vertical" />
</LinearLayout>

<LinearLayout
android:id="@+id/btn_donate"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="6dp"
android:layout_weight="1"
android:background="@drawable/btn_accent_tonal_selector_v5"
android:gravity="center"
android:orientation="vertical"
android:padding="16dp">

<LinearLayout
android:layout_width="100dp"
android:layout_height="100dp"
android:background="@drawable/bmc_qr"
android:orientation="horizontal" />
</LinearLayout>

</LinearLayout>

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/system_info"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="36dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="36dp"
android:background="@drawable/btn_accent_24"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/common_actions">

<TextView
android:id="@+id/textView8"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:background="@drawable/btn_accent_tonal_selector_v5"
android:paddingStart="16dp"
android:paddingTop="14dp"
android:paddingEnd="16dp"
android:paddingBottom="14dp"
android:text="@string/about_developer"
android:textColor="@color/text"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/app_ver"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="12dp"
android:background="@drawable/btn_accent_tonal_selector_v5"
android:paddingStart="16dp"
android:paddingTop="14dp"
android:paddingEnd="16dp"
android:paddingBottom="14dp"
android:text="@string/about_version"
android:textColor="@color/text"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView8" />
</androidx.constraintlayout.widget.ConstraintLayout>

<ImageView
android:id="@+id/app_icon"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginTop="56dp"
android:background="@drawable/btn_accent_50"
android:contentDescription="@string/app_name"
android:padding="12dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/assistant" />

</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
Loading

0 comments on commit efb2a6c

Please sign in to comment.