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
1a3a2aa2
authored
Sep 24, 2019
by
likorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made cards clickable and focusable
parent
c3d96ce6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/activity_main.xml
View file @
1a3a2aa2
...
...
@@ -25,6 +25,9 @@
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_margin=
"8dp"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
app:layout_constraintBottom_toTopOf=
"@+id/cv_left_bottom"
app:layout_constraintEnd_toStartOf=
"@+id/cv_right_top"
app:layout_constraintHorizontal_bias=
"0.5"
...
...
@@ -35,8 +38,7 @@
android:id=
"@+id/btn_left_top"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#00FFFFFF"
android:text=
"Button"
/>
android:background=
"#00FFFFFF"
/>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
...
...
@@ -44,6 +46,9 @@
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_margin=
"8dp"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
app:layout_constraintBottom_toTopOf=
"@id/cv_right_bottom"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.5"
...
...
@@ -54,8 +59,7 @@
android:id=
"@+id/btn_right_top"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#00FFFFFF"
android:text=
"Button"
/>
android:background=
"#00FFFFFF"
/>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
...
...
@@ -63,6 +67,9 @@
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_margin=
"8dp"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/cv_right_bottom"
app:layout_constraintHorizontal_bias=
"0.5"
...
...
@@ -73,8 +80,7 @@
android:id=
"@+id/btn_left_bottom"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#00FFFFFF"
android:text=
"Button"
/>
android:background=
"#00FFFFFF"
/>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
...
...
@@ -82,6 +88,9 @@
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_margin=
"8dp"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.5"
...
...
@@ -92,8 +101,7 @@
android:id=
"@+id/btn_right_bottom"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#00FFFFFF"
android:text=
"Button"
/>
android:background=
"#00FFFFFF"
/>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
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