reorg
This commit is contained in:
BIN
AutoPlayer/res/drawable-hdpi/icon.png
Normal file
BIN
AutoPlayer/res/drawable-hdpi/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
BIN
AutoPlayer/res/drawable-ldpi/icon.png
Normal file
BIN
AutoPlayer/res/drawable-ldpi/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
AutoPlayer/res/drawable-mdpi/icon.png
Normal file
BIN
AutoPlayer/res/drawable-mdpi/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
54
AutoPlayer/res/layout/confirm_dialog.xml
Normal file
54
AutoPlayer/res/layout/confirm_dialog.xml
Normal 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>
|
||||
95
AutoPlayer/res/layout/main.xml
Normal file
95
AutoPlayer/res/layout/main.xml
Normal 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>
|
||||
20
AutoPlayer/res/values/strings.xml
Normal file
20
AutoPlayer/res/values/strings.xml
Normal 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>
|
||||
Reference in New Issue
Block a user