Skip to content

Commit

Permalink
twrp
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Feb 14, 2013
1 parent bda1d66 commit 8bfab66
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 5 deletions.
93 changes: 93 additions & 0 deletions layout/recovery_setup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" >

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:alpha=".2"
android:src="@drawable/clockwork512" />

<TextView
style="@android:style/TextAppearance.DeviceDefault.Medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:padding="20dp"
android:text="@string/setup_help" />
</RelativeLayout>

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<TextView
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/install_or_update"
android:textColor="@color/list_header" />

<Button
android:id="@+id/install"
style="@style/flatbutton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/clockworkmod_recovery" />

<FrameLayout
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />

<FrameLayout
android:layout_width="fill_parent"
android:layout_height="20dp" />

<TextView
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/recovery_already_installed"
android:textColor="@color/list_header" />

<FrameLayout
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />

<Button
android:id="@+id/clockworkmod"
style="@style/flatbutton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/clockworkmod_recovery" />

<FrameLayout
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />

<Button
android:id="@+id/twrp"
style="@style/flatbutton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/twrp" />

<FrameLayout
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider" />
</LinearLayout>

</LinearLayout>
3 changes: 1 addition & 2 deletions values-v14/color.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="list_header">@android:color/holo_blue_bright</color>
<color name="circle_progress">@android:color/holo_orange_dark</color>

</resources>
8 changes: 8 additions & 0 deletions values-v14/style.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">

<style name="AppTheme" parent="@android:style/Theme.Holo" />

<style name="flatbutton" parent="@android:style/Widget.Holo.Button.Borderless"></style>

</resources>
6 changes: 4 additions & 2 deletions values/color.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="list_header">#ff00ddff</color>
<color name="circle_progress">#ffff8800</color>
<color name="holo_blue_light">#ff33b5e5</color>
<color name="holo_blue_dark">#ff0099cc</color>
<color name="holo_blue_bright">#ff00ddff</color>
<color name="list_header">@color/holo_blue_light</color>
</resources>
8 changes: 8 additions & 0 deletions values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -410,4 +410,12 @@

<string name="processing_delta">Processing delta...</string>
<string name="delta_download">Delta Download</string>
<string name="setup_help">To get started using ROM Manager, you must first set up a custom recovery.\n\nSet up a custom recovery by choosing from the options below.</string>

<string name="install_or_update">Install or Update</string>
<string name="recovery_already_installed">Recovery Already Installed</string>
<string name="clockworkmod_recovery">ClockworkMod Recovery</string>
<string name="twrp">Team Win Recovery Project (TWRP)</string>
<string name="recovery_setup">Recovery Setup</string>
<string name="confirm_reboot_and_install_alternate">Press OK to reboot into %s and continue the installation.</string>
</resources>
8 changes: 7 additions & 1 deletion values/style.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault" />

<style name="Dialog" parent="@android:style/Theme.Light">
<item name="android:minWidth">300dp</item>

Expand All @@ -10,7 +12,7 @@
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
<item name="android:windowContentOverlay">@null</item>
</style>

<style name="NotificationText">
<item name="android:textColor">?android:attr/textColorPrimary</item>
</style>
Expand All @@ -19,4 +21,8 @@
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textStyle">bold</item>
</style>


<style name="flatbutton">
</style>
</resources>

0 comments on commit 8bfab66

Please sign in to comment.