diff options
| author | lonkaars <loek@pipeframe.xyz> | 2024-02-13 16:09:14 +0100 |
|---|---|---|
| committer | lonkaars <loek@pipeframe.xyz> | 2024-02-13 16:09:14 +0100 |
| commit | bce1be54a1661c8512fa5fe24ba0ec35c4a9ff96 (patch) | |
| tree | 0b80782316391075b61f2084469475ff10295ead /app/src/main/res/layout | |
| parent | 31430df5989d2b3014633912be5d27485d3e3a25 (diff) | |
minimal effort app
Diffstat (limited to 'app/src/main/res/layout')
| -rw-r--r-- | app/src/main/res/layout/activity_main.xml | 92 | ||||
| -rw-r--r-- | app/src/main/res/layout/header_navigation_drawer.xml | 26 | ||||
| -rw-r--r-- | app/src/main/res/layout/orientation_demo.xml | 24 | ||||
| -rw-r--r-- | app/src/main/res/layout/weather.xml | 63 |
4 files changed, 156 insertions, 49 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index d740acb..30b029b 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -2,23 +2,10 @@ <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:id="@+id/linearLayout" + android:id="@+id/root_layout" android:layout_width="match_parent" android:layout_height="match_parent"> - <com.google.android.material.navigation.NavigationView - android:id="@+id/navigationView" - android:layout_width="wrap_content" - android:layout_height="0dp" - app:headerLayout="@layout/header_navigation_drawer" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintVertical_bias="0.0" - app:menu="@menu/navigation_drawer"> - - </com.google.android.material.navigation.NavigationView> - <com.google.android.material.appbar.AppBarLayout android:id="@+id/appBarLayout2" style="@style/Widget.MaterialComponents.AppBarLayout.Primary" @@ -26,29 +13,88 @@ android:layout_height="wrap_content" android:fitsSystemWindows="true" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toEndOf="@+id/navigationView" + app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <com.google.android.material.appbar.MaterialToolbar android:id="@+id/topAppBar" style="@style/Widget.MaterialComponents.Toolbar.Primary" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:background="@android:color/transparent" android:elevation="0dp" android:keyboardNavigationCluster="true" - app:navigationIcon="@drawable/menu" - app:title="@string/nav_header_title" /> + app:title="bingo 3" /> </com.google.android.material.appbar.AppBarLayout> - <ListView - android:id="@+id/listView" + <LinearLayout + android:id="@+id/vertical_list" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toEndOf="@+id/navigationView" - app:layout_constraintTop_toBottomOf="@+id/appBarLayout2" /> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/appBarLayout2"> + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/button_orientation_view" + android:layout_width="0dp" + android:layout_height="80dp" + android:layout_marginTop="80dp" + android:insetLeft="8dp" + android:insetRight="8dp" + android:onClick="navigate_orientation" + android:rotation="-14" + android:rotationX="-2" + android:rotationY="-32" + android:text="oriƫntatie" + android:textSize="34sp" + app:cornerRadius="0dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <Button + android:id="@+id/button_weather_view" + android:layout_width="0dp" + android:layout_height="80dp" + android:layout_marginTop="32dp" + android:insetLeft="8dp" + android:insetRight="8dp" + android:onClick="navigate_weather" + android:rotation="-39" + android:rotationX="51" + android:rotationY="17" + android:text="weer" + android:textSize="34sp" + app:cornerRadius="0dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/button_orientation_view" /> + + <Switch + android:id="@+id/db_switch" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:rotation="-29" + android:rotationX="26" + android:rotationY="26" + android:scaleX="3" + android:scaleY="3" + android:text="aan uit" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/button_weather_view" + app:layout_constraintVertical_bias="0.17000002" /> + + </androidx.constraintlayout.widget.ConstraintLayout> + + </LinearLayout> -</androidx.constraintlayout.widget.ConstraintLayout> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/header_navigation_drawer.xml b/app/src/main/res/layout/header_navigation_drawer.xml deleted file mode 100644 index ad01e59..0000000 --- a/app/src/main/res/layout/header_navigation_drawer.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="24dp" - android:layout_marginTop="24dp" - android:layout_marginEnd="24dp" - android:text="@string/nav_header_title" - android:textAppearance="?attr/textAppearanceHeadlineSmall" - android:textColor="?attr/colorOnSurface" /> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="24dp" - android:layout_marginEnd="24dp" - android:layout_marginBottom="24dp" - android:text="@string/nav_header_subtitle" - android:textAppearance="?attr/textAppearanceTitleSmall" - android:textColor="?attr/colorOnSurfaceVariant" /> -</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/orientation_demo.xml b/app/src/main/res/layout/orientation_demo.xml new file mode 100644 index 0000000..2b178d3 --- /dev/null +++ b/app/src/main/res/layout/orientation_demo.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<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" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/textView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:rotation="45" + android:rotationX="54" + android:rotationY="-2" + android:scaleX="7" + android:scaleY="6" + android:text="portrait" + android:translationX="-30dp" + android:translationY="-50dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/weather.xml b/app/src/main/res/layout/weather.xml new file mode 100644 index 0000000..99d36df --- /dev/null +++ b/app/src/main/res/layout/weather.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<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" + android:layout_height="match_parent"> + + <com.google.android.material.appbar.AppBarLayout + android:id="@+id/appBarLayout2" + style="@style/Widget.MaterialComponents.AppBarLayout.Primary" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:fitsSystemWindows="true" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + <com.google.android.material.appbar.MaterialToolbar + android:id="@+id/topAppBar" + style="@style/Widget.MaterialComponents.Toolbar.Primary" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/transparent" + android:elevation="0dp" + android:keyboardNavigationCluster="true" + app:navigationIcon="@drawable/arrow_left" + app:title="weertje" /> + + </com.google.android.material.appbar.AppBarLayout> + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_marginStart="32dp" + android:layout_marginTop="32dp" + android:layout_marginEnd="32dp" + android:layout_marginBottom="32dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="1.0" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/appBarLayout2" + app:layout_constraintVertical_bias="1.0"> + + <Button + android:id="@+id/button" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:text="pak dat zonnetje" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <ListView + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_marginTop="32dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/button" /> + </androidx.constraintlayout.widget.ConstraintLayout> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |