Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dunbar
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
Dunbar
Commits
7a57cd9c
Unverified
Commit
7a57cd9c
authored
Nov 02, 2019
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(layout): Better cards
parent
1e9e3dc8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
README.png
.github/README.png
+0
-0
contact.xml
app/src/main/res/layout/contact.xml
+13
-10
content_friends.xml
app/src/main/res/layout/content_friends.xml
+2
-2
No files found.
.github/README.png
View replaced file @
1e9e3dc8
View file @
7a57cd9c
253 KB
|
W:
|
H:
304 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/src/main/res/layout/contact.xml
View file @
7a57cd9c
...
@@ -5,20 +5,19 @@
...
@@ -5,20 +5,19 @@
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"4dp"
android:layout_marginTop=
"0dp"
android:elevation=
"5dp"
>
android:elevation=
"5dp"
>
<androidx.constraintlayout.widget.ConstraintLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
>
<ImageView
<ImageView
android:id=
"@+id/pic"
android:id=
"@+id/pic"
android:layout_width=
"150dp"
android:layout_width=
"150dp"
android:layout_height=
"100dp"
android:layout_height=
"0dp"
android:layout_marginTop=
"5dp"
android:layout_marginEnd=
"8dp"
android:layout_marginEnd=
"10dp"
android:layout_marginBottom=
"5dp"
android:height=
"150dp"
android:height=
"150dp"
android:contentDescription=
"TODO"
android:contentDescription=
"TODO"
android:elevation=
"2dp"
android:elevation=
"2dp"
...
@@ -41,13 +40,14 @@
...
@@ -41,13 +40,14 @@
app:layout_constraintBottom_toTopOf=
"@id/contactData"
app:layout_constraintBottom_toTopOf=
"@id/contactData"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/pic"
app:layout_constraintStart_toEndOf=
"@id/pic"
app:layout_constraintTop_toTopOf=
"
parent
"
app:layout_constraintTop_toTopOf=
"
@id/pic
"
tools:text=
"@tools:sample/full_names"
/>
tools:text=
"@tools:sample/full_names"
/>
<TextView
<TextView
android:id=
"@+id/contactData"
android:id=
"@+id/contactData"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:layout_marginEnd=
"15dp"
android:layout_marginEnd=
"15dp"
android:focusable=
"false"
android:focusable=
"false"
android:focusableInTouchMode=
"false"
android:focusableInTouchMode=
"false"
...
@@ -81,16 +81,17 @@
...
@@ -81,16 +81,17 @@
style=
"@style/Widget.MaterialComponents.Button.OutlinedButton"
style=
"@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"
10
dp"
android:layout_marginStart=
"
8
dp"
android:layout_margin
End=
"10
dp"
android:layout_margin
Bottom=
"8
dp"
android:text=
"Text"
android:text=
"Text"
android:visibility=
"invisible"
android:visibility=
"invisible"
app:icon=
"@android:drawable/ic_menu_send"
app:icon=
"@android:drawable/ic_menu_send"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintEnd_toStartOf=
"@id/contactCall"
app:layout_constraintEnd_toStartOf=
"@id/contactCall"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintStart_toEndOf=
"@id/pic"
app:layout_constraintStart_toEndOf=
"@id/pic"
app:layout_constraintTop_toBottomOf=
"@id/contactPhone"
app:layout_constraintTop_toBottomOf=
"@id/contactPhone"
app:layout_constraintVertical_bias=
"1.0"
tools:visibility=
"visible"
/>
tools:visibility=
"visible"
/>
<com.google.android.material.button.MaterialButton
<com.google.android.material.button.MaterialButton
...
@@ -98,10 +99,12 @@
...
@@ -98,10 +99,12 @@
style=
"@style/Widget.MaterialComponents.Button.OutlinedButton"
style=
"@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"8dp"
android:text=
"Call"
android:text=
"Call"
android:visibility=
"invisible"
android:visibility=
"invisible"
app:icon=
"@android:drawable/ic_menu_call"
app:icon=
"@android:drawable/ic_menu_call"
app:layout_constraintBottom_toBottomOf=
"
@id/contactTex
t"
app:layout_constraintBottom_toBottomOf=
"
paren
t"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/contactText"
app:layout_constraintStart_toEndOf=
"@id/contactText"
app:layout_constraintTop_toBottomOf=
"@id/contactPhone"
app:layout_constraintTop_toBottomOf=
"@id/contactPhone"
...
...
app/src/main/res/layout/content_friends.xml
View file @
7a57cd9c
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
<TextView
<TextView
android:id=
"@+id/welcomeTitle"
android:id=
"@+id/welcomeTitle"
android:layout_marginTop=
"10dp"
android:layout_marginBottom=
"10dp"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:layout_marginBottom=
"8dp"
android:textSize=
"24sp"
android:textSize=
"24sp"
app:layout_constraintBottom_toTopOf=
"@id/friendsList"
app:layout_constraintBottom_toTopOf=
"@id/friendsList"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
...
...
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