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
26017cc4
authored
5 years ago
by
likorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created AnswerCard and AnswerCardText styles
parent
92f0142c
master
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
41 deletions
app/src/main/res/layout/activity_main.xml
app/src/main/res/values/styles.xml
app/src/main/res/layout/activity_main.xml
View file @
26017cc4
...
...
@@ -22,81 +22,53 @@
<androidx.cardview.widget.CardView
android:id=
"@+id/btn_left_top"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_margin=
"8dp"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
style=
"@style/AnswerCard"
app:layout_constraintBottom_toTopOf=
"@+id/btn_left_bottom"
app:layout_constraintEnd_toStartOf=
"@+id/btn_right_top"
app:layout_constraintHorizontal_bias=
"0.5"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
<TextView
style=
"@style/AnswerCardText"
/>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id=
"@+id/btn_right_top"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_margin=
"8dp"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
style=
"@style/AnswerCard"
app:layout_constraintBottom_toTopOf=
"@id/btn_right_bottom"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.5"
app:layout_constraintStart_toEndOf=
"@+id/btn_left_top"
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
<TextView
style=
"@style/AnswerCardText"
/>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id=
"@+id/btn_left_bottom"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_margin=
"8dp"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
style=
"@style/AnswerCard"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/btn_right_bottom"
app:layout_constraintHorizontal_bias=
"0.5"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/btn_right_top"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
app:layout_constraintTop_toBottomOf=
"@+id/btn_left_top"
>
<TextView
style=
"@style/AnswerCardText"
/>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id=
"@+id/btn_right_bottom"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_margin=
"8dp"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
style=
"@style/AnswerCard"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.5"
app:layout_constraintStart_toEndOf=
"@+id/btn_left_bottom"
app:layout_constraintTop_toBottomOf=
"@+id/btn_right_top"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
<TextView
style=
"@style/AnswerCardText"
/>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/values/styles.xml
View file @
26017cc4
...
...
@@ -8,4 +8,19 @@
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
</style>
<style
name=
"AnswerCard"
>
<item
name=
"android:layout_width"
>
0dp
</item>
<item
name=
"android:layout_height"
>
0dp
</item>
<item
name=
"android:layout_margin"
>
8dp
</item>
<item
name=
"android:clickable"
>
true
</item>
<item
name=
"android:focusable"
>
true
</item>
<item
name=
"android:foreground"
>
?android:attr/selectableItemBackground
</item>
</style>
<style
name=
"AnswerCardText"
>
<item
name=
"android:layout_height"
>
wrap_content
</item>
<item
name=
"android:layout_width"
>
wrap_content
</item>
<item
name=
"android:layout_gravity"
>
center
</item>
</style>
</resources>
This diff is collapsed.
Click to expand it.
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