Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
likorn
/
quick_max
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6d2307f6
authored
Sep 27, 2019
by
likorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Landscape layout for activity_task
parent
116f607f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
166 additions
and
7 deletions
app/src/main/AndroidManifest.xml
app/src/main/res/layout-land/activity_task.xml
app/src/main/res/layout/activity_task.xml
app/src/main/AndroidManifest.xml
View file @
6d2307f6
...
@@ -9,11 +9,9 @@
...
@@ -9,11 +9,9 @@
android:roundIcon=
"@mipmap/ic_launcher_round"
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:supportsRtl=
"true"
android:theme=
"@style/Theme.MaterialComponents.Light.NoActionBar"
>
android:theme=
"@style/Theme.MaterialComponents.Light.NoActionBar"
>
<activity
android:name=
"com.paktalin.quickmax.TaskActivity"
<activity
android:name=
"com.paktalin.quickmax.TaskActivity"
>
android:screenOrientation=
"portrait"
>
</activity>
</activity>
<activity
android:name=
"com.paktalin.quickmax.MainActivity"
<activity
android:name=
"com.paktalin.quickmax.MainActivity"
>
android:screenOrientation=
"portrait"
>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
app/src/main/res/layout-land/activity_task.xml
0 → 100644
View file @
6d2307f6
<?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:id=
"@+id/main_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#DADADA"
tools:context=
"com.paktalin.quickmax.TaskActivity"
>
<View
android:id=
"@+id/layout_gradient"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:background=
"@drawable/gradient"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
</View>
<ImageButton
android:id=
"@+id/btn_back"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"8dp"
android:background=
"@android:color/transparent"
android:tint=
"@android:color/white"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@drawable/ic_back"
/>
<androidx.constraintlayout.widget.Guideline
android:id=
"@+id/guideline"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
app:layout_constraintGuide_percent=
"0.5"
/>
<TextView
android:id=
"@+id/tv_response"
style=
"@style/TextAppearance.MaterialComponents.Headline4"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:text=
"@string/response_correct"
android:textColor=
"@android:color/white"
android:textSize=
"60sp"
app:layout_constraintEnd_toEndOf=
"@+id/cv_task"
app:layout_constraintStart_toStartOf=
"@+id/cv_task"
app:layout_constraintTop_toTopOf=
"@+id/layout_answers"
app:layout_constraintVertical_chainStyle=
"spread"
/>
<com.google.android.material.card.MaterialCardView
android:id=
"@+id/cv_task"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginBottom=
"8dp"
app:cardCornerRadius=
"6dp"
app:contentPaddingBottom=
"40dp"
app:contentPaddingLeft=
"16dp"
app:contentPaddingRight=
"16dp"
app:contentPaddingTop=
"40dp"
app:layout_constraintBottom_toBottomOf=
"@+id/layout_answers"
app:layout_constraintEnd_toStartOf=
"@+id/guideline"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintVertical_chainStyle=
"packed"
>
<TextView
android:id=
"@+id/tv_task"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:gravity=
"center"
android:includeFontPadding=
"true"
android:text=
"@string/second_max"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textColor=
"#323753"
/>
</com.google.android.material.card.MaterialCardView>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/layout_answers"
android:layout_width=
"0dp"
android:layout_height=
"200dp"
android:layout_marginStart=
"8dp"
android:layout_marginEnd=
"8dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"@+id/guideline"
app:layout_constraintTop_toTopOf=
"parent"
>
<com.paktalin.quickmax.AnswerCardView
android:id=
"@+id/card_left_top"
style=
"@style/MyCard"
app:cardCornerRadius=
"10dp"
app:layout_constraintBottom_toTopOf=
"@+id/card_left_bottom"
app:layout_constraintEnd_toStartOf=
"@+id/card_right_top"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
style=
"@style/AnswerCardText"
/>
</com.paktalin.quickmax.AnswerCardView>
<com.paktalin.quickmax.AnswerCardView
android:id=
"@+id/card_right_top"
style=
"@style/MyCard"
app:layout_constraintBottom_toTopOf=
"@id/card_right_bottom"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/card_left_top"
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
style=
"@style/AnswerCardText"
/>
</com.paktalin.quickmax.AnswerCardView>
<com.paktalin.quickmax.AnswerCardView
android:id=
"@+id/card_left_bottom"
style=
"@style/MyCard"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/card_right_bottom"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/card_left_top"
>
<TextView
style=
"@style/AnswerCardText"
/>
</com.paktalin.quickmax.AnswerCardView>
<com.paktalin.quickmax.AnswerCardView
android:id=
"@+id/card_right_bottom"
style=
"@style/MyCard"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/card_left_bottom"
app:layout_constraintTop_toBottomOf=
"@+id/card_right_top"
>
<TextView
style=
"@style/AnswerCardText"
/>
</com.paktalin.quickmax.AnswerCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.material.button.MaterialButton
android:id=
"@+id/btn_next"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"16dp"
android:layout_marginBottom=
"8dp"
android:text=
"@string/btn_next"
android:visibility=
"invisible"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_task.xml
View file @
6d2307f6
...
@@ -8,12 +8,13 @@
...
@@ -8,12 +8,13 @@
android:background=
"#DADADA"
android:background=
"#DADADA"
tools:context=
"com.paktalin.quickmax.TaskActivity"
>
tools:context=
"com.paktalin.quickmax.TaskActivity"
>
<
Linear
Layout
<
Frame
Layout
android:id=
"@+id/layout_gradient"
android:id=
"@+id/layout_gradient"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_marginBottom=
"32dp"
android:layout_marginBottom=
"32dp"
android:background=
"@drawable/gradient"
android:background=
"@drawable/gradient"
android:elevation=
"2dp"
app:layout_constraintBottom_toBottomOf=
"@+id/cv_task"
app:layout_constraintBottom_toBottomOf=
"@+id/cv_task"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -29,13 +30,14 @@
...
@@ -29,13 +30,14 @@
android:tint=
"@android:color/white"
android:tint=
"@android:color/white"
app:srcCompat=
"@drawable/ic_back"
/>
app:srcCompat=
"@drawable/ic_back"
/>
</
Linear
Layout>
</
Frame
Layout>
<TextView
<TextView
android:id=
"@+id/tv_response"
android:id=
"@+id/tv_response"
style=
"@style/TextAppearance.MaterialComponents.Headline4"
style=
"@style/TextAppearance.MaterialComponents.Headline4"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:elevation=
"2dp"
android:gravity=
"center"
android:gravity=
"center"
android:textColor=
"@android:color/white"
android:textColor=
"@android:color/white"
android:textSize=
"60sp"
android:textSize=
"60sp"
...
@@ -50,6 +52,8 @@
...
@@ -50,6 +52,8 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"150dp"
android:layout_height=
"150dp"
android:layout_margin=
"16dp"
android:layout_margin=
"16dp"
app:cardElevation=
"4dp"
app:cardMaxElevation=
"4dp"
app:layout_constraintBottom_toTopOf=
"@+id/layout_answers"
app:layout_constraintBottom_toTopOf=
"@+id/layout_answers"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -93,7 +97,6 @@
...
@@ -93,7 +97,6 @@
<com.paktalin.quickmax.AnswerCardView
<com.paktalin.quickmax.AnswerCardView
android:id=
"@+id/card_left_top"
android:id=
"@+id/card_left_top"
style=
"@style/MyCard"
style=
"@style/MyCard"
app:cardBackgroundColor=
"#F44336"
app:cardCornerRadius=
"10dp"
app:cardCornerRadius=
"10dp"
app:layout_constraintBottom_toTopOf=
"@+id/card_left_bottom"
app:layout_constraintBottom_toTopOf=
"@+id/card_left_bottom"
app:layout_constraintEnd_toStartOf=
"@+id/card_right_top"
app:layout_constraintEnd_toStartOf=
"@+id/card_right_top"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment