File tree Expand file tree Collapse file tree 9 files changed +34
-2
lines changed
java/com/simplemobiletools/notes/activities Expand file tree Collapse file tree 9 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import android .content .Intent ;
4
4
import android .content .res .Resources ;
5
+ import android .net .Uri ;
5
6
import android .os .Bundle ;
6
7
import android .support .v7 .app .AppCompatActivity ;
7
8
import android .text .Html ;
@@ -61,4 +62,15 @@ public void licenseClicked() {
61
62
final Intent intent = new Intent (getApplicationContext (), LicenseActivity .class );
62
63
startActivity (intent );
63
64
}
65
+
66
+ @ OnClick (R .id .about_facebook )
67
+ public void facebookClicked () {
68
+ String link = "https://www.facebook.com/simplemobiletools" ;
69
+ try {
70
+ getPackageManager ().getPackageInfo ("com.facebook.katana" , 0 );
71
+ link = "fb://page/150270895341774" ;
72
+ } catch (Exception ignored ) {
73
+ }
74
+ startActivity (new Intent (Intent .ACTION_VIEW , Uri .parse (link )));
75
+ }
64
76
}
Original file line number Diff line number Diff line change 33
33
android : layout_width =" match_parent"
34
34
android : layout_height =" wrap_content"
35
35
android : layout_below =" @+id/about_email"
36
+ android : layout_marginTop =" @dimen/activity_margin"
36
37
android : paddingBottom =" @dimen/activity_margin"
37
38
android : paddingTop =" @dimen/activity_margin"
38
39
android : text =" @string/third_party_licences_underlined"
39
40
android : textColor =" @color/colorPrimary" />
40
41
42
+ <TextView
43
+ android : id =" @+id/about_follow_us"
44
+ android : layout_width =" match_parent"
45
+ android : layout_height =" wrap_content"
46
+ android : layout_below =" @+id/about_license"
47
+ android : paddingBottom =" @dimen/social_padding"
48
+ android : paddingTop =" @dimen/activity_margin"
49
+ android : text =" @string/follow_us" />
50
+
51
+ <ImageView
52
+ android : id =" @+id/about_facebook"
53
+ android : layout_width =" @dimen/social_logo"
54
+ android : layout_height =" @dimen/social_logo"
55
+ android : layout_below =" @+id/about_follow_us"
56
+ android : src =" @mipmap/facebook" />
57
+
41
58
<TextView
42
59
android : id =" @+id/about_version"
43
60
android : layout_width =" match_parent"
Original file line number Diff line number Diff line change 1
1
<resources >
2
2
<dimen name =" activity_margin" >16dp</dimen >
3
+ <dimen name =" social_padding" >8dp</dimen >
4
+ <dimen name =" social_logo" >40dp</dimen >
3
5
</resources >
Original file line number Diff line number Diff line change 6
6
7
7
<!-- About -->
8
8
<string name =" about" >About</string >
9
- <string name =" website" >For more simple apps or source codes please visit :\nhttp://simplemobiletools.com</string >
10
- <string name =" email_label" >You can send your feedback or new app suggestions at:</string >
9
+ <string name =" website" >More simple apps and source code at :\nhttp://simplemobiletools.com</string >
10
+ <string name =" email_label" >Send your feedback or suggestions at:</string >
11
11
<
string name =
" email" >
[email protected] </
string >
12
12
<string name =" third_party_licences_underlined" ><u >Third party licences</u ></string >
13
+ <string name =" follow_us" >Follow us at:</string >
13
14
<string name =" version" >v %1$s</string >
14
15
<string name =" copyright" >Copyright © Simple Mobile Tools %1$d</string >
15
16
You can’t perform that action at this time.
0 commit comments