This commit is contained in:
2011-12-18 14:31:27 +00:00
parent 26ca75f4c1
commit 433ee4b734
24 changed files with 6878 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignTop="@+id/app_icon"
android:layout_centerHorizontal="true" >
<TextView
android:id="@+id/body"
android:layout_width="wrap_content"
android:layout_height="@android:dimen/app_icon_size"
android:layout_gravity="center"
android:layout_marginRight="10dip"
android:gravity="center"
android:text="@string/start"
android:textAppearance="?android:attr/textAppearanceLarge" />
<ImageView
android:id="@+id/app_icon"
android:layout_width="@android:dimen/app_icon_size"
android:layout_height="@android:dimen/app_icon_size"
android:layout_gravity="center|center_vertical"
android:layout_marginRight="11dip"
android:layout_toRightOf="@id/body"
android:scaleType="fitCenter" />
</LinearLayout>
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/linearLayout1"
android:layout_centerVertical="true"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_marginTop="10dip" />
<Button
android:id="@+id/okButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/progressBar"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="@android:string/cancel" />
</RelativeLayout>

View File

@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ToggleButton
android:id="@+id/toggleButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:checked="true"
android:text="@string/enable" />
<ImageView
android:id="@+id/app_icon"
android:layout_width="@android:dimen/app_icon_size"
android:layout_height="@android:dimen/app_icon_size"
android:layout_alignParentLeft="true"
android:layout_below="@id/toggleButton"
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dip"
android:layout_marginRight="11dip"
android:layout_marginTop="10dip"
android:background="@drawable/icon"
android:scaleType="fitCenter" />
<Button
android:id="@+id/activty_picker_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/toggleButton"
android:layout_marginRight="10dip"
android:layout_marginTop="10dip"
android:layout_toRightOf="@id/app_icon"
android:text="@string/pick_an_activity" >
</Button>
<TextView
android:id="@+id/music_volume_tag"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/activty_picker_button"
android:layout_marginTop="10dip"
android:text="@string/music_volume" />
<SeekBar
android:id="@+id/music_volume"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/music_volume_tag"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip" />
<CheckBox
android:id="@+id/confirmCheckBox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/music_volume"
android:layout_marginLeft="10dip"
android:layout_marginTop="10dip"
android:text="@string/confirm" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/confirmCheckBox"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_marginTop="10dip" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/about"
android:text="@string/about"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_marginTop="10dip"
android:id="@+id/version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center" />
</LinearLayout>
</ScrollView>
</RelativeLayout>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, AutoPlayerActivity!</string>
<string name="app_name">AutoPlayer</string>
<string name="music_volume">Music Volume</string>
<string name="pick_an_activity">Pick an Activity</string>
<string name="loading">Loading...</string>
<string name="about">Welcome to AutoPlayer \n\n
AutoPlayer allows you to program your Android powered device to start a specific application and set the music volume level upon plugging in your headphones, speakers, ect.\n\n
To start, simply select which application you want to start, and set your desired volume level. The next time you plug something into your headphone jack, AutoPlayer will apply your desired settings.\n\n</string>
<string name="enable">Enable</string>
<string name="confirm">Use Confirmation Dialog</string>
<string name="start">Starting...</string>
<string name="version">Version</string>
<string name="build">build</string>
</resources>