File tree 6 files changed +11
-6
lines changed
java/com/example/kotlin_reminder
6 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package com.example.kotlin_reminder
2
2
3
3
import android.os.Bundle
4
4
import com.google.android.material.snackbar.Snackbar
5
- import androidx.appcompat.app.AppCompatActivity;
5
+ import androidx.appcompat.app.AppCompatActivity
6
6
import android.view.Menu
7
7
import android.view.MenuItem
8
8
@@ -15,7 +15,7 @@ class MainActivity : AppCompatActivity() {
15
15
setContentView(R .layout.activity_main)
16
16
setSupportActionBar(toolbar)
17
17
18
- fab .setOnClickListener { view ->
18
+ addButton .setOnClickListener { view ->
19
19
Snackbar .make(view, " Replace with your own action" , Snackbar .LENGTH_LONG )
20
20
.setAction(" Action" , null ).show()
21
21
}
Original file line number Diff line number Diff line change 25
25
android : id =" @+id/include" />
26
26
27
27
<com .google.android.material.floatingactionbutton.FloatingActionButton
28
- android : id =" @+id/fab "
28
+ android : id =" @+id/addButton "
29
29
android : layout_gravity =" bottom|end"
30
30
android : layout_margin =" @dimen/fab_margin"
31
31
app : srcCompat =" @drawable/addplusbutton" android : tint =" #00AF8989" app : rippleColor =" #00BD3939"
Original file line number Diff line number Diff line change 12
12
<TextView
13
13
android : layout_width =" wrap_content"
14
14
android : layout_height =" wrap_content"
15
- android : text =" Hello World!"
15
+ android : text =" @string/homepage_placeholder"
16
+ style =" @style/homePageText"
16
17
app : layout_constraintBottom_toBottomOf =" parent"
17
18
app : layout_constraintLeft_toLeftOf =" parent"
18
19
app : layout_constraintRight_toRightOf =" parent"
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources >
3
- <color name =" colorPrimary" >#008577 </color >
3
+ <color name =" colorPrimary" >#3498db </color >
4
4
<color name =" colorPrimaryDark" >#00574B</color >
5
5
<color name =" colorAccent" >#D81B60</color >
6
6
</resources >
Original file line number Diff line number Diff line change 1
1
<resources >
2
- <string name =" app_name" >Mémo </string >
2
+ <string name =" app_name" >Reminder </string >
3
3
<string name =" action_settings" >Settings</string >
4
+ <string name =" homepage_placeholder" >No memo yet!</string >
4
5
</resources >
Original file line number Diff line number Diff line change 7
7
<item name =" colorPrimaryDark" >@color/colorPrimaryDark</item >
8
8
<item name =" colorAccent" >@color/colorAccent</item >
9
9
</style >
10
+ <style name =" homePageText" >
11
+ <item name =" android:textSize" >32sp</item >
12
+ </style >
10
13
<style name =" AppTheme.NoActionBar" >
11
14
<item name =" windowActionBar" >false</item >
12
15
<item name =" windowNoTitle" >true</item >
You can’t perform that action at this time.
0 commit comments