Inital Commit of the framented migration
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -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>
|
||||
@@ -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"
|
||||
|
||||
12
LocationRinger/res/layout/fragment_container.xml
Normal file
12
LocationRinger/res/layout/fragment_container.xml
Normal 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>
|
||||
10
LocationRinger/res/layout/fragment_list_contianer.xml
Normal file
10
LocationRinger/res/layout/fragment_list_contianer.xml
Normal 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>
|
||||
@@ -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>
|
||||
5
LocationRinger/res/layout/list.xml
Normal file
5
LocationRinger/res/layout/list.xml
Normal 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" />
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
59
LocationRinger/res/layout/map_info_fragment.xml
Normal file
59
LocationRinger/res/layout/map_info_fragment.xml
Normal 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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
46
LocationRinger/res/layout/ringer_about_fragment.xml
Normal file
46
LocationRinger/res/layout/ringer_about_fragment.xml
Normal 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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
35
LocationRinger/res/layout/ringer_information_activity.xml
Normal file
35
LocationRinger/res/layout/ringer_information_activity.xml
Normal 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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
58
LocationRinger/res/layout/ringtone_fragment.xml
Normal file
58
LocationRinger/res/layout/ringtone_fragment.xml
Normal 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>
|
||||
23
LocationRinger/res/layout/toggle_button_fragment.xml
Normal file
23
LocationRinger/res/layout/toggle_button_fragment.xml
Normal 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>
|
||||
@@ -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>
|
||||
23
LocationRinger/res/layout/update_interval_fragment.xml
Normal file
23
LocationRinger/res/layout/update_interval_fragment.xml
Normal 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>
|
||||
23
LocationRinger/res/layout/volume_fragment.xml
Normal file
23
LocationRinger/res/layout/volume_fragment.xml
Normal 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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user