Skip to content

Commit 4e09220

Browse files
adamthecashewLorDClockaN
authored andcommitted
ROMControl: Upgraded About
Improved about section.... SEXY! Images are pulled from your twitter account profile Patch AOKP#2 - put back in strings i removed on accident... Patch AOKP#3 - use url image helper (https://github.com/koush/UrlImageViewHelper) to handle downloading and caching profile pictures. - add more aokp fellas - randomly sort order in which devs are shown Patch AOKP#4 - add more donate links, still missing Nitroz's Patch AOKP#5 - add stevespearderp Patch AOKP#6 - fix kwes' url - add birdman Patch AOKP#7 - add nitroz Change-Id: I420d29689e0530db8d805c06529801e1b6ea6ba4 Signed-off-by: Adam Fisch <adammfisch@gmail.com>
1 parent eb2cb87 commit 4e09220

File tree

17 files changed

+620
-113
lines changed

17 files changed

+620
-113
lines changed

AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,12 @@
8282
<category android:name="com.aokp.romcontrol.SHORTCUT" />
8383
</intent-filter>
8484
</activity>
85+
<activity
86+
android:name=".fragments.About"
87+
android:label="@string/about_aokp" >
88+
<intent-filter>
89+
<action android:name="android.intent.action.MAIN" />
90+
</intent-filter>
91+
</activity>
8592
</application>
8693
</manifest>
5.7 KB
Loading
634 Bytes
Loading
3.54 KB
Loading
516 Bytes
Loading

res/layout/dev_card.xml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<FrameLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:layout_width="wrap_content"
5+
android:layout_height="wrap_content"
6+
android:paddingLeft="15dip"
7+
android:paddingRight="15dip">
8+
9+
<RelativeLayout
10+
android:id="@+id/image_here"
11+
android:layout_width="wrap_content"
12+
android:layout_height="150dip"
13+
android:paddingTop="8dip"
14+
android:gravity="center_vertical"
15+
android:orientation="vertical">
16+
17+
<ImageView
18+
android:id="@+id/photo"
19+
android:layout_width="match_parent"
20+
android:layout_height="150dip"
21+
android:scaleType="centerCrop" />
22+
23+
<View
24+
android:id="@+id/photo_text_bar"
25+
android:layout_width="wrap_content"
26+
android:layout_height="42dip"
27+
android:layout_alignBottom="@id/photo"
28+
android:layout_alignLeft="@id/photo"
29+
android:background="#7F000000" />
30+
31+
<LinearLayout
32+
android:layout_width="wrap_content"
33+
android:layout_height="42dip"
34+
android:layout_alignBottom="@id/photo"
35+
android:layout_alignLeft="@id/photo"
36+
android:gravity="center_vertical">
37+
38+
<TextView
39+
android:id="@+id/name"
40+
android:layout_width="wrap_content"
41+
android:layout_height="wrap_content"
42+
android:layout_marginLeft="8dip"
43+
android:singleLine="true"
44+
android:ellipsize="end"
45+
android:textColor="@android:color/white"
46+
android:textAppearance="?android:attr/textAppearanceMedium" />
47+
48+
<ImageView
49+
android:id="@+id/twitter_button"
50+
android:layout_width="wrap_content"
51+
android:layout_height="wrap_content"
52+
android:layout_marginLeft="8dip"
53+
android:scaleType="centerInside"
54+
android:src="@drawable/twitter_birdy"/>
55+
56+
</LinearLayout>
57+
58+
<ImageView
59+
android:id="@+id/donate_button"
60+
android:layout_width="wrap_content"
61+
android:layout_height="wrap_content"
62+
android:layout_alignBottom="@id/photo"
63+
android:paddingRight="4dip"
64+
android:paddingBottom="4dp"
65+
android:layout_alignParentRight="true"
66+
android:scaleType="centerInside"
67+
android:src="@drawable/paypal_donate"/>
68+
69+
</RelativeLayout>
70+
71+
</FrameLayout>

res/layout/developer_preference.xml

Lines changed: 0 additions & 65 deletions
This file was deleted.

res/values/attrs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<declare-styleable name="DeveloperPreference">
99
<attr name="twitterHandle" format="string" />
10+
<attr name="nameDev" format="string"/>
1011
<attr name="donateLink" format="string" />
1112
</declare-styleable>
1213

res/values/strings.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<string name="app_name">ROM Control</string>
55

66
<!-- Header Strings -->
7+
<string name="user_interface">User Interface</string>
78
<string name="cancel">Cancel</string>
89
<string name="ok">OK</string>
910
<string name="menu_main_activity_change_locale">Blank!</string>
@@ -39,7 +40,7 @@
3940
<string name="group_applications">Applications</string>
4041

4142
<!-- About -->
42-
<string name="devs">Developers</string>
43+
<string name="devs">The Crew</string>
4344
<string name="aokp">Android Open Kang Project</string>
4445
<string name="aokp_website_title">AOKP Website</string>
4546
<string name="aokp_website_summary">www.aokp.co - Find all newest releases here.</string>
@@ -57,7 +58,16 @@
5758
<string name="donate_protekk">https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=YJTUMSBC2TRHS</string>
5859
<string name="donate_khasmek">http://nyan.cat</string>
5960
<string name="donate_sethyx">https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=5R4DYJLDYDRAU</string>
60-
61+
<string name="donate_adam">http://goo.gl/fRj57</string>
62+
<string name="donate_kwes">https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=HGAN9G5ZJ2AAS&amp;lc=US&amp;item_name=kwes1020&amp;currency_code=USD&amp;bn=PP%%2dDonationsBF%%3abtn_donateCC_LG%2egif%%3aNonHosted</string>
63+
<string name="donate_nitroz">https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=U27ZAWB8995TS</string>
64+
<string name="donate_xoom">http://bit.ly/t7YC5Z</string>
65+
<string name="donate_marclandis">https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=7FN44KF8XZXFW</string>
66+
<string name="donate_sixstringsg">https://www.paypal.com/cgi-bin/webscr?cmd=_flow&amp;SESSION=U3KYhTz6itHx8bKvx-F79EFVY5sQKKQu9f1ftkJ1pevFN6wdaJLu8yz3Y3e&amp;dispatch=5885d80a13c0db1f8e263663d3faee8d1e83f46a36995b3856cef1e18897ad75</string>
67+
<string name="donate_just_reboot">https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=WEZKU46DAFMSW</string>
68+
<string name="donate_stevespear">https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=6SY3WH7AZNR7Y</string>
69+
<string name="donate_birdman">https://support.woundedwarriorproject.org/Default.aspx?tsid=66&amp;campaignSource=WEBSITE</string>
70+
6171
<!-- General UI -->
6272
<string name="enable_volume_options">Enable Volume Panel</string>
6373
<string name="status_bar_notif_count_title">Show notification count</string>
@@ -133,8 +143,8 @@
133143
<string name="summary_pref_navigation_menu_display">How and when do you want the menu buttons to appear?</string>
134144
<string name="navbar_qty_title">Navigation button quantity</string>
135145
<string name="navbar_qty_summary">Choose the number of navigation buttons</string>
136-
<string name="button_transparency_title">Nav button transparency</string>
137146
<string name="navbar_action_title">Button %1$s action &amp; icon</string>
147+
<string name="button_transparency_title">Nav button transparency</string>
138148
<string name="navbar_longpress_title">Button %1$s longpress action</string>
139149
<string name="navbar_action_home">Home</string>
140150
<string name="navbar_action_back">Back</string>

res/xml/preference_headers.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<preference-headers xmlns:android="http://schemas.android.com/apk/res/android" >
2+
3+
<header
4+
android:id="@+id/about"
5+
android:fragment="com.aokp.romcontrol.fragments.About"
6+
android:title="@string/about_aokp"
7+
android:summary="@string/about_aokp_summary" />
8+
9+
<header android:title="@string/user_interface" />
10+
211
<header
312
android:id="@+id/user_interface"
413
android:fragment="com.aokp.romcontrol.fragments.UserInterface"

0 commit comments

Comments
 (0)