Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
8b24655c
Commit
8b24655c
authored
Dec 05, 2015
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated README with new animations
parent
f59dc603
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
Examples/CardView/CardView/ViewController.swift
+8
-7
Examples/NavigationBarView/NavigationBarView/ViewController.swift
+1
-1
README.md
+1
-1
No files found.
Examples/CardView/CardView/ViewController.swift
View file @
8b24655c
...
@@ -144,30 +144,31 @@ class ViewController: UIViewController {
...
@@ -144,30 +144,31 @@ class ViewController: UIViewController {
cardView
.
dividerInsetsRef
.
left
=
100
cardView
.
dividerInsetsRef
.
left
=
100
cardView
.
titleLabelInsetsRef
.
left
=
100
cardView
.
titleLabelInsetsRef
.
left
=
100
cardView
.
detailLabelInsetsRef
.
left
=
100
cardView
.
detailLabelInsetsRef
.
left
=
100
cardView
.
pulseColor
=
MaterialColor
.
teal
.
lighten4
// Image.
// Image.
cardView
.
image
=
UIImage
(
named
:
"
MaterialKitCardViewBackgroundImage
"
)?
.
resize
(
toWidth
:
300
)
cardView
.
image
=
UIImage
(
named
:
"
GraphKit
"
)?
.
resize
(
toWidth
:
300
)
cardView
.
contentsGravity
=
.
TopLeft
cardView
.
contentsGravity
=
.
TopLeft
// Title label.
// Title label.
let
titleLabel
:
UILabel
=
UILabel
()
let
titleLabel
:
UILabel
=
UILabel
()
titleLabel
.
text
=
"
Focus
"
titleLabel
.
text
=
"
GraphKit
"
titleLabel
.
font
=
RobotoFont
.
mediumWithSize
(
24
)
titleLabel
.
font
=
RobotoFont
.
mediumWithSize
(
24
)
cardView
.
titleLabel
=
titleLabel
cardView
.
titleLabel
=
titleLabel
// Detail label
// Detail label
let
detailLabel
:
UILabel
=
UILabel
()
let
detailLabel
:
UILabel
=
UILabel
()
detailLabel
.
text
=
"
Easily organize your thoughts using hashtag
s."
detailLabel
.
text
=
"
Build scalable data-driven app
s."
detailLabel
.
numberOfLines
=
0
detailLabel
.
numberOfLines
=
0
cardView
.
detailLabel
=
detailLabel
cardView
.
detailLabel
=
detailLabel
//
ITUNES
button.
//
LEARN MORE
button.
let
btn1
:
FlatButton
=
FlatButton
()
let
btn1
:
FlatButton
=
FlatButton
()
btn1
.
pulseColor
=
MaterialColor
.
blue
.
lighten1
btn1
.
pulseColor
=
MaterialColor
.
teal
.
lighten1
btn1
.
pulseFill
=
true
btn1
.
pulseFill
=
true
btn1
.
pulseScale
=
false
btn1
.
pulseScale
=
false
btn1
.
setTitle
(
"
ITUNES
"
,
forState
:
.
Normal
)
btn1
.
setTitle
(
"
LEARN MORE
"
,
forState
:
.
Normal
)
btn1
.
setTitleColor
(
MaterialColor
.
blue
.
darken1
,
forState
:
.
Normal
)
btn1
.
setTitleColor
(
MaterialColor
.
teal
.
darken1
,
forState
:
.
Normal
)
// Add buttons to right side.
// Add buttons to right side.
cardView
.
rightButtons
=
[
btn1
]
cardView
.
rightButtons
=
[
btn1
]
...
...
Examples/NavigationBarView/NavigationBarView/ViewController.swift
View file @
8b24655c
...
@@ -240,7 +240,7 @@ class ViewController: UIViewController {
...
@@ -240,7 +240,7 @@ class ViewController: UIViewController {
let
navigationBarView
:
NavigationBarView
=
NavigationBarView
()
let
navigationBarView
:
NavigationBarView
=
NavigationBarView
()
// Stylize.
// Stylize.
navigationBarView
.
backgroundColor
=
MaterialColor
.
indigo
.
darken1
navigationBarView
.
backgroundColor
=
MaterialColor
.
blue
.
darken1
// To lighten the status bar add the "View controller-based status bar appearance = NO"
// To lighten the status bar add the "View controller-based status bar appearance = NO"
// to you info.plist file and set the following property.
// to you info.plist file and set the following property.
...
...
README.md
View file @
8b24655c
...
@@ -30,7 +30,7 @@ Easily remove the pulse animation and add a background image for an entirely new
...
@@ -30,7 +30,7 @@ Easily remove the pulse animation and add a background image for an entirely new
Adjust the alignment of the UI elements to create different configurations of the CardView.
Adjust the alignment of the UI elements to create different configurations of the CardView.


### ImageCardView
### ImageCardView
...
...
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