File tree Expand file tree Collapse file tree 5 files changed +18
-9
lines changed
java/com/alamkanak/weekview/sample Expand file tree Collapse file tree 5 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
1
package com .alamkanak .weekview .sample ;
2
2
3
- import android .app .Activity ;
4
3
import android .graphics .RectF ;
5
4
import android .os .Bundle ;
5
+ import android .support .v7 .app .ActionBarActivity ;
6
6
import android .util .TypedValue ;
7
7
import android .view .Menu ;
8
8
import android .view .MenuItem ;
18
18
19
19
/**
20
20
* Created by Raquib-ul-Alam Kanak on 7/21/2014.
21
- * Website: http://april-shower.com
21
+ * Website: http://alamkanak.github.io
22
22
*/
23
- public class MainActivity extends Activity implements WeekView .MonthChangeListener ,
23
+ public class MainActivity extends ActionBarActivity implements WeekView .MonthChangeListener ,
24
24
WeekView .EventClickListener , WeekView .EventLongPressListener {
25
25
26
26
private static final int TYPE_DAY_VIEW = 1 ;
Original file line number Diff line number Diff line change 14
14
app : textSize =" 12sp"
15
15
app : hourHeight =" 60dp"
16
16
app : headerColumnPadding =" 8dp"
17
- app : headerColumnTextColor =" #8f000000 "
17
+ app : headerColumnTextColor =" @color/toolbar_text "
18
18
app : headerRowPadding =" 12dp"
19
19
app : columnGap =" 8dp"
20
20
app : noOfVisibleDays =" 3"
21
- app : headerRowBackgroundColor =" #ffefefef "
21
+ app : headerRowBackgroundColor =" @color/toolbar "
22
22
app : dayBackgroundColor =" #05000000"
23
23
app : todayBackgroundColor =" #1848adff"
24
- app : headerColumnBackground =" #ffffffff" />
24
+ app : headerColumnBackground =" #ffffffff"
25
+ app : todayHeaderTextColor =" @color/accent" />
25
26
26
27
</RelativeLayout >
Original file line number Diff line number Diff line change 4
4
<color name =" event_color_02" >#f57f68</color >
5
5
<color name =" event_color_03" >#87d288</color >
6
6
<color name =" event_color_04" >#f8b552</color >
7
+ <color name =" toolbar" >#efefef</color >
8
+ <color name =" toolbar_text" >#8f000000</color >
9
+ <color name =" accent" >#2789e4</color >
7
10
</resources >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources >
3
3
<string name =" app_name" >Android Week View</string >
4
- <string name =" action_today" >Go to today </string >
4
+ <string name =" action_today" >Today </string >
5
5
<string name =" action_day_view" >Day view</string >
6
6
<string name =" action_three_day_view" >3 day view</string >
7
7
<string name =" action_week_view" >Week view</string >
Original file line number Diff line number Diff line change 2
2
3
3
<!-- Base application theme. -->
4
4
<style name =" AppTheme" parent =" Theme.AppCompat.Light" >
5
-
5
+ <item name =" colorPrimary" >@color/toolbar</item >
6
+ <item name =" colorPrimaryDark" >@color/accent</item >
7
+ <item name =" android:windowContentOverlay" >@null</item >
8
+ <item name =" android:textColorPrimary" >@color/toolbar_text</item >
9
+ <item name =" actionMenuTextColor" >@color/toolbar_text</item >
10
+ <item name =" popupTheme" >@style/ThemeOverlay.AppCompat.Light</item >
11
+ <item name =" colorControlActivated" >@color/accent</item >
6
12
</style >
7
-
8
13
</resources >
You can’t perform that action at this time.
0 commit comments