Inital Commit of the framented migration

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-05-10 13:07:38 -04:00
parent 50f050dd33
commit 69597150ea
64 changed files with 4363 additions and 2178 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="@string/alarm_volume"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
android:layout_marginTop="10dip"/>
<SeekBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/alarm_volume"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"/>
</LinearLayout>

View File

@@ -5,14 +5,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- <ImageView -->
<!-- android:layout_width="wrap_content" -->
<!-- android:layout_height="wrap_content" -->
<!-- android:src="@drawable/icon" -->
<!-- android:layout_alignParentLeft="true" -->
<!-- android:layout_alignParentTop="true" -->
<!-- android:id="@+id/icon"/> -->
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fragment_list_contianer"
>
</LinearLayout>

View File

@@ -1,44 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- buttons -->
<include
android:id="@+id/buttons"
layout="@layout/ringer_info_button_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"/>
<com.TwentyCodes.android.LocationRinger.ui.ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:id="@+id/scrollview"
android:layout_above="@id/buttons"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<!-- Location Options -->
<include android:id="@+id/map_info"
layout="@layout/map_info"
android:layout_width="match_parent"
android:layout_height="350dip"
android:layout_alignParentBottom="true"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"/>
</RelativeLayout>
</com.TwentyCodes.android.LocationRinger.ui.ScrollView>
</RelativeLayout>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent" />

View File

@@ -1,27 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:gravity="center_vertical"
android:id="@+id/ringer_enabled_checkbox"
android:focusable="false"
/>
<TextView
android:id="@id/android:id/text1"
android:layout_toRightOf="@id/ringer_enabled_checkbox"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center_vertical"
android:paddingLeft="6dip"
android:paddingRight="6dip"
/>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<CheckBox
android:id="@+id/ringer_enabled_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:focusable="false"
android:gravity="center_vertical" />
<TextView
android:id="@id/android:id/text1"
android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:layout_toRightOf="@id/ringer_enabled_checkbox"
android:gravity="center_vertical"
android:paddingLeft="6dip"
android:paddingRight="6dip"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@id/android:id/text2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/android:id/text1"
android:paddingLeft="6dip"
android:paddingRight="6dip" />
</RelativeLayout>

View File

@@ -1,58 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="10dip"
android:layout_alignParentTop="true"
android:id="@+id/map_controls">
<TextView
android:text="@string/location_and_radius"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
/>
<ToggleButton
android:id="@+id/map_edit_toggle"
android:textOn="@string/editing_location"
android:textOff="@string/edit_location"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<TextView
android:text="@string/radius"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<SeekBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/radius"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"/>
</LinearLayout>
<!--
ricky beta release 0rKmsWMM0D-IRAEgcSZEqwZCs_8AUwxjYjj0bnA
ricky 0rKmsWMM0D-KC9KXr1WbA5aEb-2ozQ0SHTvV46g
TWENTYCODES 0rKmsWMM0D-K15bEM_kwabPbNhsn4dp4rcq2q5Q
-->
<com.TwentyCodes.android.location.MapView
android:id="@+id/mapview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:apiKey="0rKmsWMM0D-KC9KXr1WbA5aEb-2ozQ0SHTvV46g"
android:layout_alignParentBottom="true"
android:layout_below="@id/map_controls"
/>
</RelativeLayout>

View File

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/map_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginBottom="10dip"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:text="@string/location_and_radius"
android:textColor="#FFFFFF" />
<ToggleButton
android:id="@+id/map_edit_toggle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textOff="@string/edit_location"
android:textOn="@string/editing_location" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/radius" />
<SeekBar
android:id="@+id/radius"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip" />
</LinearLayout>
<include
android:id="@+id/buttons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
layout="@layout/ringer_info_button_bar"
android:visibility="gone" />
<fragment
android:id="@+id/mapview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/buttons"
android:layout_below="@id/map_controls"
class="com.TwentyCodes.android.fragments.SkyHoookUserOverlayMapFragment" >
</fragment>
</RelativeLayout>

View File

@@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="@string/music_volume"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
android:layout_marginTop="10dip"/>
<SeekBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/music_volume"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"/>
</LinearLayout>

View File

@@ -1,57 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="@string/notification_ringtone_options"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
android:layout_marginTop="10dip"/>
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="0,1">
<TableRow >
<ToggleButton
android:id="@+id/notification_silent_toggle"
android:textOn="@string/silent_enabled"
android:textOff="@string/silent_disabled"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"/>
<Button
android:id="@+id/notification_ringtone_button"
android:text="@string/select_tone"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>
<EditText
android:id="@+id/notification_ringtone"
android:editable="false"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:cursorVisible="false"/>
<TextView
android:text="@string/volume"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<SeekBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/notification_ringtone_volume"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"/>
</LinearLayout>

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ToggleButton
android:layout_height="wrap_content"
android:id="@+id/ringer_enabled"
android:textOn="@string/enable"
android:textOff="@string/disable"
android:layout_width="match_parent"
/>
<TextView
android:text="@string/ringer_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
android:layout_marginTop="10dip"/>
<view class="com.TwentyCodes.android.LocationRinger.ui.fragments.AboutRingerFragment$ListeningEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ringer_name"
android:capitalize="words"
/>
<TextView
android:text="@string/ringer_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
android:layout_marginTop="10dip"/>
<view class="com.TwentyCodes.android.LocationRinger.ui.fragments.AboutRingerFragment$ListeningEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ringer_description"
android:inputType="textMultiLine"
android:capitalize="sentences"/>
</LinearLayout>

View File

@@ -4,15 +4,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
android:background="@android:drawable/ic_menu_add"
android:id="@+id/add_feature_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dip"
/>
><Button
android:id="@+id/add_feature_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dip"
android:background="@android:drawable/ic_menu_add" />
<Button
android:background="@android:drawable/ic_menu_save"
@@ -27,7 +24,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:visibility="gone"
/>
<Button
@@ -37,7 +33,6 @@
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginLeft="20dip"
android:visibility="gone"
/>
<Button
@@ -47,7 +42,6 @@
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginLeft="20dip"
android:visibility="gone"
/>
<Button
@@ -57,6 +51,5 @@
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginLeft="20dip"
android:visibility="gone"
/>
</LinearLayout>

View File

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/ringerinfpager">
</android.support.v4.view.ViewPager>
</LinearLayout>

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2011 Jake Wharton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.jakewharton.android.viewpagerindicator.TitlePageIndicator
android:id="@+id/indicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dip" />
<com.TwentyCodes.android.LocationRinger.ui.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>

View File

@@ -1,35 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:background="@android:drawable/ic_menu_add"
android:id="@+id/add_ringer_button"
android:layout_alignParentBottom="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
/>
<ListView
android:layout_above="@id/add_ringer_button"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/ringer_list"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/add_ringer_button"
android:textColor="#ffffff"
android:text="@string/add_a_ringer"
android:layout_centerHorizontal="true"
android:id="@+id/add_ringer_button_hint"
android:background="#000000"
android:gravity="center"
/>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/add_ringer_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@android:drawable/ic_menu_add" />
<ListView
android:id="@+id/ringer_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/add_ringer_button" />
<TextView
android:id="@+id/add_ringer_button_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/add_ringer_button"
android:layout_centerHorizontal="true"
android:background="#000000"
android:gravity="center"
android:text="@string/add_a_ringer"
android:textColor="#ffffff" />
</RelativeLayout>

View File

@@ -1,59 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="@string/ringtone_options"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
android:layout_marginTop="10dip"/>
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="0,1">
<TableRow >
<ToggleButton
android:id="@+id/ringtone_silent_toggle"
android:textOn="@string/silent_enabled"
android:textOff="@string/silent_disabled"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"/>
<Button
android:id="@+id/ringtone_button"
android:text="@string/select_tone"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>
<EditText
android:id="@+id/ringtone"
android:editable="false"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:cursorVisible="false"/>
<TextView
android:text="@string/volume"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<SeekBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ringtone_volume"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"/>
</LinearLayout>

View File

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:background="@android:drawable/title_bar"
android:text="@string/ringtone_options"
android:textColor="#FFFFFF" />
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ToggleButton
android:id="@+id/ringtone_silent_toggle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:textOff="@string/silent_disabled"
android:textOn="@string/silent_enabled" />
<Button
android:id="@+id/ringtone_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/select_tone" />
</LinearLayout>
<EditText
android:id="@+id/ringtone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cursorVisible="false"
android:editable="false" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/volume" />
<SeekBar
android:id="@+id/ringtone_volume"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip" />
</LinearLayout>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:background="@android:drawable/title_bar"
android:text="@string/ringtone_options"
android:textColor="#FFFFFF" />
<ToggleButton
android:id="@+id/toggle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textOff="@string/disable"
android:textOn="@string/enable" />
</LinearLayout>

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="@string/update_interval"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
android:layout_marginTop="10dip"/>
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/update_interval"
android:entries="@array/runtime_string"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"/>
</LinearLayout>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:background="@android:drawable/title_bar"
android:text="@string/update_interval"
android:textColor="#FFFFFF" />
<Spinner
android:id="@+id/update_interval"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:entries="@array/runtime_string" />
</LinearLayout>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/volume_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:background="@android:drawable/title_bar"
android:text="@string/volume"
android:textColor="#FFFFFF" />
<SeekBar
android:id="@+id/volume"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip" />
</LinearLayout>

View File

@@ -1,164 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<include
android:id="@+id/buttons"
layout="@layout/ringer_info_button_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/buttons"
>
<com.TwentyCodes.android.LocationRinger.ui.ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:id="@+id/scrollview"
>
<LinearLayout
android:layout_alignParentTop="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/ringer_options"
android:layout_alignParentTop="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- Ringer Options -->
<ToggleButton
android:textOn="@string/enable"
android:textOff="@string/disable"
android:id="@+id/ringer_toggle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/ringer_name"
android:hint="@string/ringer_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:id="@+id/info"
android:layout_below="@id/ringer_options"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="10dip"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip">
<!-- Ringtone -->
<include android:id="@+id/ringtone_info"
layout="@layout/ringtone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
/>
<!-- Notification Ringtone -->
<include android:id="@+id/notification_ringtone_info"
layout="@layout/notification_ringtone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
/>
<!-- Media Volume -->
<include android:id="@+id/music_volume_info"
layout="@layout/music_volume"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
/>
<!-- Alarm Volume -->
<include android:id="@+id/alarm_volume_info"
layout="@layout/alarm_volume"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
/>
<!-- data options -->
<TextView
android:id="@+id/data_label"
android:text="@string/data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/title_bar"
android:textColor="#FFFFFF"
android:layout_marginTop="10dip"
android:visibility="gone"
/>
<ToggleButton
android:id="@+id/wifi_toggle"
android:textOn="@string/wifi_enabled"
android:textOff="@string/wifi_disabled"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
/>
<ToggleButton
android:id="@+id/bluetooth_toggle"
android:textOn="@string/bt_enabled"
android:textOff="@string/bt_disabled"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
/>
<!-- Update Interval -->
<include android:id="@+id/update_interval_info"
layout="@layout/update_interval"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
/>
</LinearLayout>
</LinearLayout>
</com.TwentyCodes.android.LocationRinger.ui.ScrollView>
</RelativeLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/buttons"
android:textColor="#ffffff"
android:text="@string/add_a_feature"
android:layout_centerHorizontal="true"
android:id="@+id/add_a_feature_label"
android:background="#000000"
android:gravity="center"
/>
</RelativeLayout>

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 Patrik Åkerfeldt
Copyright (C) 2011 Jake Wharton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<declare-styleable name="ViewPagerIndicator">
<attr name="circlePageIndicatorStyle" format="reference"/>
<attr name="titlePageIndicatorStyle" format="reference"/>
</declare-styleable>
<declare-styleable name="CirclePageIndicator">
<attr name="centered" format="boolean" />
<attr name="fillColor" format="color" />
<attr name="radius" format="dimension" />
<attr name="snap" format="boolean" />
<attr name="strokeColor" format="color" />
</declare-styleable>
<declare-styleable name="TitlePageIndicator">
<attr name="clipPadding" format="dimension" />
<attr name="footerColor" format="color" />
<attr name="footerLineHeight" format="dimension" />
<attr name="footerIndicatorStyle">
<enum name="none" value="0" />
<enum name="triangle" value="1" />
<enum name="underline" value="2" />
</attr>
<attr name="footerIndicatorHeight" format="dimension" />
<attr name="footerIndicatorPadding" format="dimension" />
<attr name="footerIndicatorUnderlinePadding" format="dimension" />
<attr name="selectedColor" format="color" />
<attr name="selectedBold" format="boolean" />
<attr name="textColor" format="color" />
<attr name="textSize" format="dimension" />
<attr name="titlePadding" format="dimension" />
</declare-styleable>
</resources>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 Jake Wharton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<bool name="default_circle_indicator_centered">true</bool>
<color name="default_circle_indicator_fill_color">#FFFFFFFF</color>
<dimen name="default_circle_indicator_radius">3dp</dimen>
<bool name="default_circle_indicator_snap">false</bool>
<color name="default_circle_indicator_stroke_color">#FFDDDDDD</color>
<dimen name="default_title_indicator_clip_padding">0dp</dimen>
<color name="default_title_indicator_footer_color">#FF6899FF</color>
<dimen name="default_title_indicator_footer_line_height">1px</dimen>
<integer name="default_title_indicator_footer_indicator_style">1</integer>
<dimen name="default_title_indicator_footer_indicator_height">7dp</dimen>
<dimen name="default_title_indicator_footer_indicator_padding">5dp</dimen>
<dimen name="default_title_indicator_footer_indicator_underline_padding">10dp</dimen>
<color name="default_title_indicator_selected_color">#FFFFFFFF</color>
<bool name="default_title_indicator_selected_bold">true</bool>
<color name="default_title_indicator_text_color">#FFAAAAAA</color>
<dimen name="default_title_indicator_text_size">18dp</dimen>
<dimen name="default_title_indicator_title_padding">5dp</dimen>
</resources>

View File

@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Location Ringer allows you to create location based ringer profiles called Ringers. Ringers allow you to have your phone automatically change basic settings based on where you are. For example you can have your phone automatically become silent when you go to work, or automatically enable your wireless when you get home.\n\nTo Start simply set your default settings in the Default Ringer, and create new ringers as they are needed.\n\nThe Default Ringer is applied when there are no applicable Ringers for your current location.</string>
<string name="app_name">Location Ringer beta</string>
<string name="silent_enabled">Silent Enabled</string>
<string name="silent_disabled">Silent Disabled</string>
<string name="edit_location">Edit Location</string>
<string name="editing_location">Editing Location</string>
<string name="ringer_options">Ringer Options</string>
<string name="enable">Enabled</string>
<string name="disable">Disabled</string>
@@ -34,8 +33,6 @@
<string name="ignore_location_about">Ignore location when the reported accuracy is greater than the selected amount</string>
<string name="address">Address</string>
<string name="search">Search</string>
<string name="ringer_name">Ringer Name</string>
<string name="new_ringer">New Ringer</string>
<string name="backup">Backup</string>
<string name="restore">Restore</string>
<string name="start_service">Start Service</string>
@@ -55,22 +52,19 @@
<string name="version_info">Version Information</string>
<string name="start_on_boot">Start on boot</string>
<string name="start_on_boot_about">Enable Location Ringer to start on boot</string>
<string name="saving">Saving...</string>
<string name="loading">Loading...</string>
<string name="upgrading">Upgrading database...</string>
<string name="deleteing">Deleting ringer...</string>
<string name="gathering">Gathering Location...</string>
<string name="saving">Saving</string>
<string name="loading">Loading</string>
<string name="upgrading">Upgrading database</string>
<string name="deleteing">Deleting ringer</string>
<string name="gathering">Gathering Location</string>
<string name="welcome">Welcome</string>
<string name="registered">Registered with Skyhook</string>
<string name="skyhook_error_registration">There was an error registering with Skyhook, please try again when you have an Internet connection.</string>
<string name="add_feature">Add Feature</string>
<string name="update_interval">Update Interval</string>
<string name="ringtone">Ringtone</string>
<string name="notification_ringtone">Notification Ringtone</string>
<string name="wifi">Wifi</string>
<string name="bluetooth">Bluetooth</string>
<string name="music_volume">Music Volume</string>
<string name="alarm_volume">Alarm Volume</string>
<string name="radius">Radius</string>
<string name="select_tone">Select Tone</string>
<string name="add_a_feature">Click the plus to add a feature</string>
@@ -80,4 +74,18 @@
<string name="restore_about">Restores your ringers and settings from exteranal storage</string>
<string name="default_save_hint">This is the first time you edited your Default ringer. When you are done editing please click save to save.</string>
<string name="default_hint">Click Default to edit your default ringer.</string>
</resources>
<string name="how">How</string>
<string name="what">What</string>
<string name="notification_volume">Notification Volume</string>
<string name="call_volume">Call Volume</string>
<string name="system_volume">System Volume</string>
<string name="ringtone_volume">Ringtone Volume</string>
<string name="dtmf_volume">DTMF Volume</string>
<string name="ringer_description">Ringer Description</string>
<string name="silent">Silent</string>
<string name="location">Location</string>
<string name="about_default_ringer">This Ringer is applied when there is no applicable ringers</string>
<string name="delete">Delete</string>
<string name="ringer_name">Ringer Name</string>
</resources>

View File

@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 Jake Wharton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<style name="StyledIndicators" parent="@android:style/Theme.Light">
<item name="circlePageIndicatorStyle">@style/CustomCirclePageIndicator</item>
<item name="titlePageIndicatorStyle">@style/CustomTitlePageIndicator</item>
</style>
<style name="CustomTitlePageIndicator">
<item name="android:background">#FFDDDDDD</item>
<item name="footerColor">#FFEE3333</item>
<item name="footerLineHeight">2dp</item>
<item name="footerIndicatorStyle">none</item>
<item name="textColor">#FF999999</item>
<item name="selectedColor">#FF000000</item>
<item name="selectedBold">false</item>
</style>
<style name="CustomCirclePageIndicator">
<item name="android:background">#FFCCCCCC</item>
<item name="fillColor">#FF888888</item>
<item name="strokeColor">#FF000000</item>
<item name="radius">10dp</item>
<item name="centered">true</item>
</style>
<!--
Copyright (C) 2011 Jake Wharton Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-->
<style name="Theme.PageIndicatorDefaults" parent="@android:style/Theme">
<item name="circlePageIndicatorStyle">@style/Widget.CirclePageIndicator</item>
<item name="titlePageIndicatorStyle">@style/Widget.TitlePageIndicator</item>
</style>
<style name="Widget.CirclePageIndicator" parent="@android:style/Widget">
<item name="centered">@bool/default_circle_indicator_centered</item>
<item name="fillColor">@color/default_circle_indicator_fill_color</item>
<item name="radius">@dimen/default_circle_indicator_radius</item>
<item name="snap">@bool/default_circle_indicator_snap</item>
<item name="strokeColor">@color/default_circle_indicator_stroke_color</item>
</style>
<style name="Widget.TitlePageIndicator" parent="@android:style/Widget">
<item name="clipPadding">@dimen/default_title_indicator_clip_padding</item>
<item name="footerColor">@color/default_title_indicator_footer_color</item>
<item name="footerLineHeight">@dimen/default_title_indicator_footer_line_height</item>
<item name="footerIndicatorStyle">
@integer/default_title_indicator_footer_indicator_style
</item>
<item name="footerIndicatorHeight">
@dimen/default_title_indicator_footer_indicator_height
</item>
<item name="footerIndicatorPadding">
@dimen/default_title_indicator_footer_indicator_padding
</item>
<item name="footerIndicatorUnderlinePadding">
@dimen/default_title_indicator_footer_indicator_underline_padding
</item>
<item name="selectedColor">@color/default_title_indicator_selected_color</item>
<item name="selectedBold">@bool/default_title_indicator_selected_bold</item>
<item name="textColor">@color/default_title_indicator_text_color</item>
<item name="textSize">@dimen/default_title_indicator_text_size</item>
<item name="titlePadding">@dimen/default_title_indicator_title_padding</item>
</style>
</resources>

View File

@@ -1,35 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<ListPreference android:key="update_interval"
android:title="@string/update_interval" android:entryValues="@array/runtimes"
android:entries="@array/runtime_string" />
<ListPreference
android:entries="@array/runtime_string"
android:entryValues="@array/runtimes"
android:key="update_interval"
android:title="@string/update_interval" />
<ListPreference
android:entries="@array/accuracy_strings"
android:entryValues="@array/accuracy"
android:key="accuracy"
android:summary="@string/accuracy_about"
android:title="@string/accuracy" >
</ListPreference>
<ListPreference
android:entries="@array/ignore_strings"
android:entryValues="@array/ignore"
android:key="ignore_location"
android:summary="@string/ignore_location_about"
android:title="@string/ignore_location" >
</ListPreference>
<ListPreference android:entryValues="@array/accuracy"
android:entries="@array/accuracy_strings" android:title="@string/accuracy"
android:key="accuracy" android:summary="@string/accuracy_about"></ListPreference>
<ListPreference android:entryValues="@array/ignore"
android:entries="@array/ignore_strings" android:key="ignore_location"
android:title="@string/ignore_location" android:summary="@string/ignore_location_about"></ListPreference>
<CheckBoxPreference android:key="toasty"
android:title="@string/toasty" android:summary="@string/toasty_about" android:defaultValue="false"></CheckBoxPreference>
<CheckBoxPreference android:key="start_on_boot"
android:title="@string/start_on_boot" android:summary="@string/start_on_boot_about"
android:defaultValue="false"></CheckBoxPreference>
<PreferenceScreen android:title="@string/about">
<com.TwentyCodes.android.LocationRinger.ui.TextViewPreference android:title="@string/hello"/>
</PreferenceScreen>
<PreferenceCategory android:title="@string/contact_us">
<Preference android:key="email" android:summary="@string/email_about"
android:title="@string/email"></Preference>
<CheckBoxPreference
android:defaultValue="false"
android:key="toasty"
android:summary="@string/toasty_about"
android:title="@string/toasty" >
</CheckBoxPreference>
<CheckBoxPreference
android:defaultValue="false"
android:key="start_on_boot"
android:summary="@string/start_on_boot_about"
android:title="@string/start_on_boot" >
</CheckBoxPreference>
</PreferenceCategory><PreferenceCategory android:title="@string/version_info">
<com.TwentyCodes.android.LocationRinger.ui.VersionInformationPreference />
</PreferenceCategory>
<PreferenceScreen android:title="@string/about" >
<com.TwentyCodes.android.LocationRinger.ui.TextViewPreference android:title="@string/hello" />
</PreferenceScreen>
<PreferenceCategory android:title="@string/contact_us" >
<Preference
android:key="email"
android:summary="@string/email_about"
android:title="@string/email" >
</Preference>
</PreferenceCategory>
<PreferenceCategory android:title="@string/version_info" >
<com.TwentyCodes.android.exception.VersionInformationPreference />
</PreferenceCategory>
</PreferenceScreen>