-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include Chip and ChipGroup material components Refactor resource values
- Loading branch information
Unknown
committed
Apr 15, 2019
1 parent
3c4087f
commit da80316
Showing
10 changed files
with
114 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/src/main/java/br/com/caiodev/newmaterialdesigntest/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package br.com.caiodev.newmaterialdesigntest | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import androidx.appcompat.app.AppCompatActivity | ||
|
||
class MainActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_main) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:color="@color/colorPrimaryDark" android:state_checked="true" /> | ||
<item android:color="@color/lighterGreen" /> | ||
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorAccent">#D81B60</color> | ||
|
||
<!--Shades of green--> | ||
<color name="colorAccent">#1B5E20</color> | ||
<color name="colorPrimary">#008577</color> | ||
<color name="colorPrimaryDark">#00574B</color> | ||
<color name="darkGreen">#1B5E20</color> | ||
|
||
<!--Shades of green--> | ||
<color name="lighterGreen">#81C784</color> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
<resources> | ||
|
||
<string name="app_name">NewMaterialDesignTest</string> | ||
|
||
<!--TextView value--> | ||
<string name="material_card_text_view">Long click me!</string> | ||
|
||
<!--MaterialButton value--> | ||
<string name="material_button_text">Click me!</string> | ||
|
||
<!--MaterialCheckBox value--> | ||
<string name="material_check_box_text">Check me!</string> | ||
|
||
<!--MaterialRadioButton value--> | ||
<string name="material_radio_button_text">Tap me!</string> | ||
|
||
<!--MaterialSwitch value--> | ||
<string name="material_switch_text">Switch me!</string> | ||
</resources> | ||
|
||
<!--Chip value--> | ||
<string name="single_material_chip_text">I\'m a chip</string> | ||
|
||
<!--ChipGroup values--> | ||
<string name="first_material_chip_text">We are</string> | ||
<string name="second_material_chip_text">part of a</string> | ||
<string name="third_material_chip_text">chip group</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters