Initial commit in preparation for further work to improve this app.
Since it's been a long while since I've worked on it and it was never version controlled to begin with...
8
.classpath
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||
<classpathentry kind="output" path="bin/classes"/>
|
||||
</classpath>
|
7
.gitignore
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
*.apk
|
||||
*.ap_
|
||||
*.dex
|
||||
*.class
|
||||
bin/
|
||||
gen/
|
||||
local.properties
|
33
.project
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>HTPCRemote</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
4
.settings/org.eclipse.jdt.core.prefs
Normal file
|
@ -0,0 +1,4 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
81
AndroidManifest.xml
Normal file
|
@ -0,0 +1,81 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.geredking.htpcremote"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0"
|
||||
>
|
||||
|
||||
<uses-sdk android:minSdkVersion="10" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
|
||||
<supports-screens
|
||||
android:smallScreens="false"
|
||||
android:normalScreens="true"
|
||||
android:largeScreens="true"
|
||||
android:xlargeScreens="true"
|
||||
android:anyDensity="true"
|
||||
/>
|
||||
|
||||
<application
|
||||
android:name=".HtpcRemoteApplication"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@android:style/Theme.Black.NoTitleBar"
|
||||
>
|
||||
|
||||
<activity
|
||||
android:name=".HtpcRemoteActivity"
|
||||
android:label="@string/app_name"
|
||||
android:screenOrientation="portrait"
|
||||
>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<receiver
|
||||
android:name=".HtpcRemoteWidgetBigProvider"
|
||||
android:label="HTPC Remote Control (Big)"
|
||||
>
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
</intent-filter>
|
||||
<meta-data
|
||||
android:name="android.appwidget.provider"
|
||||
android:resource="@xml/widget_remote_control_big_provider"
|
||||
/>
|
||||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name=".HtpcRemoteWidgetMediumProvider"
|
||||
android:label="HTPC Remote Control (Medium)"
|
||||
>
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
</intent-filter>
|
||||
<meta-data
|
||||
android:name="android.appwidget.provider"
|
||||
android:resource="@xml/widget_remote_control_medium_provider"
|
||||
/>
|
||||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name=".HtpcRemoteWidgetSmallProvider"
|
||||
android:label="HTPC Remote Control (Small)"
|
||||
>
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
</intent-filter>
|
||||
<meta-data
|
||||
android:name="android.appwidget.provider"
|
||||
android:resource="@xml/widget_remote_control_small_provider"
|
||||
/>
|
||||
</receiver>
|
||||
|
||||
<service android:name=".HtpcRemoteService" />
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
20
proguard-project.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
# To enable ProGuard in your project, edit project.properties
|
||||
# to define the proguard.config property as described in that file.
|
||||
#
|
||||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the ProGuard
|
||||
# include property in project.properties.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
14
project.properties
Normal file
|
@ -0,0 +1,14 @@
|
|||
# This file is automatically generated by Android Tools.
|
||||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||
#
|
||||
# This file must be checked in Version Control Systems.
|
||||
#
|
||||
# To customize properties used by the Ant build system edit
|
||||
# "ant.properties", and override values to adapt the script to your
|
||||
# project structure.
|
||||
#
|
||||
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
|
||||
#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
|
||||
|
||||
# Project target.
|
||||
target=android-10
|
BIN
res/drawable-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
res/drawable-hdpi/remote_button.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-hdpi/remote_button_big.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
res/drawable-hdpi/remote_button_long_horiz.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
res/drawable-hdpi/remote_button_long_vert.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-hdpi/remote_button_small.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-ldpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
res/drawable-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
res/drawable-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
res/drawable/remote_back.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
5
res/drawable/remote_back_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_back_pressed"/>
|
||||
<item android:drawable="@drawable/remote_back"/>
|
||||
</selector>
|
BIN
res/drawable/remote_back_pressed.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
res/drawable/remote_dpad_down.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
5
res/drawable/remote_dpad_down_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_dpad_down_pressed"/>
|
||||
<item android:drawable="@drawable/remote_dpad_down"/>
|
||||
</selector>
|
BIN
res/drawable/remote_dpad_down_pressed.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
res/drawable/remote_dpad_left.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
5
res/drawable/remote_dpad_left_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_dpad_left_pressed"/>
|
||||
<item android:drawable="@drawable/remote_dpad_left"/>
|
||||
</selector>
|
BIN
res/drawable/remote_dpad_left_pressed.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
res/drawable/remote_dpad_right.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
5
res/drawable/remote_dpad_right_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_dpad_right_pressed"/>
|
||||
<item android:drawable="@drawable/remote_dpad_right"/>
|
||||
</selector>
|
BIN
res/drawable/remote_dpad_right_pressed.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
res/drawable/remote_dpad_up.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
5
res/drawable/remote_dpad_up_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_dpad_up_pressed"/>
|
||||
<item android:drawable="@drawable/remote_dpad_up"/>
|
||||
</selector>
|
BIN
res/drawable/remote_dpad_up_pressed.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
res/drawable/remote_fastforward.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
5
res/drawable/remote_fastforward_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_fastforward_pressed"/>
|
||||
<item android:drawable="@drawable/remote_fastforward"/>
|
||||
</selector>
|
BIN
res/drawable/remote_fastforward_pressed.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable/remote_home.png
Normal file
After Width: | Height: | Size: 2 KiB |
5
res/drawable/remote_home_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_home_pressed"/>
|
||||
<item android:drawable="@drawable/remote_home"/>
|
||||
</selector>
|
BIN
res/drawable/remote_home_pressed.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
res/drawable/remote_info.png
Normal file
After Width: | Height: | Size: 3 KiB |
5
res/drawable/remote_info_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_info_pressed"/>
|
||||
<item android:drawable="@drawable/remote_info"/>
|
||||
</selector>
|
BIN
res/drawable/remote_info_pressed.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
res/drawable/remote_menu.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
5
res/drawable/remote_menu_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_menu_pressed"/>
|
||||
<item android:drawable="@drawable/remote_menu"/>
|
||||
</selector>
|
BIN
res/drawable/remote_menu_pressed.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
res/drawable/remote_ok.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
5
res/drawable/remote_ok_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_ok_pressed"/>
|
||||
<item android:drawable="@drawable/remote_ok"/>
|
||||
</selector>
|
BIN
res/drawable/remote_ok_pressed.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
res/drawable/remote_osd.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
5
res/drawable/remote_osd_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_osd_pressed"/>
|
||||
<item android:drawable="@drawable/remote_osd"/>
|
||||
</selector>
|
BIN
res/drawable/remote_osd_pressed.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
res/drawable/remote_pause.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
5
res/drawable/remote_pause_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_pause_pressed"/>
|
||||
<item android:drawable="@drawable/remote_pause"/>
|
||||
</selector>
|
BIN
res/drawable/remote_pause_pressed.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
res/drawable/remote_play.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
5
res/drawable/remote_play_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_play_pressed"/>
|
||||
<item android:drawable="@drawable/remote_play"/>
|
||||
</selector>
|
BIN
res/drawable/remote_play_pressed.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
res/drawable/remote_playpause.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
5
res/drawable/remote_playpause_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_playpause_pressed"/>
|
||||
<item android:drawable="@drawable/remote_playpause"/>
|
||||
</selector>
|
BIN
res/drawable/remote_playpause_pressed.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
res/drawable/remote_power.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
5
res/drawable/remote_power_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_power_pressed"/>
|
||||
<item android:drawable="@drawable/remote_power"/>
|
||||
</selector>
|
BIN
res/drawable/remote_power_big.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
5
res/drawable/remote_power_big_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_power_big_pressed"/>
|
||||
<item android:drawable="@drawable/remote_power_big"/>
|
||||
</selector>
|
BIN
res/drawable/remote_power_big_pressed.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
res/drawable/remote_power_pressed.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
res/drawable/remote_rewind.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
5
res/drawable/remote_rewind_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_rewind_pressed"/>
|
||||
<item android:drawable="@drawable/remote_rewind"/>
|
||||
</selector>
|
BIN
res/drawable/remote_rewind_pressed.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable/remote_skip_next.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
5
res/drawable/remote_skip_next_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_skip_next_pressed"/>
|
||||
<item android:drawable="@drawable/remote_skip_next"/>
|
||||
</selector>
|
BIN
res/drawable/remote_skip_next_pressed.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
res/drawable/remote_skip_previous.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
5
res/drawable/remote_skip_previous_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_skip_previous_pressed"/>
|
||||
<item android:drawable="@drawable/remote_skip_previous"/>
|
||||
</selector>
|
BIN
res/drawable/remote_skip_previous_pressed.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
res/drawable/remote_stop.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
5
res/drawable/remote_stop_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_stop_pressed"/>
|
||||
<item android:drawable="@drawable/remote_stop"/>
|
||||
</selector>
|
BIN
res/drawable/remote_stop_pressed.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable/remote_togglefullscreen.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
5
res/drawable/remote_togglefullscreen_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/remote_togglefullscreen_pressed"/>
|
||||
<item android:drawable="@drawable/remote_togglefullscreen"/>
|
||||
</selector>
|
BIN
res/drawable/remote_togglefullscreen_pressed.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
174
res/layout-land/widget_remote_control_big.xml
Normal file
|
@ -0,0 +1,174 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="#88000000"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteLeftSide"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPlay"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_playpause_bg"
|
||||
android:tag="button.play"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonStop"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_stop_bg"
|
||||
android:tag="button.stop"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPrevious"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_previous_bg"
|
||||
android:tag="button.skip_previous"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonNext"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_next_bg"
|
||||
android:tag="button.skip_next"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonHome"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_home_bg"
|
||||
android:tag="button.home"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteRightSide"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOsd"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_osd_bg"
|
||||
android:tag="button.osd"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonUp"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_up_bg"
|
||||
android:tag="button.dpad_up"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPower"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_power_big_bg"
|
||||
android:tag="button.power"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadMiddle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonLeft"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_left_bg"
|
||||
android:tag="button.dpad_left"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOK"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_largeButtonHeight"
|
||||
android:src="@drawable/remote_ok_bg"
|
||||
android:tag="button.ok"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonRight"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_right_bg"
|
||||
android:tag="button.dpad_right"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonBack"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_back_bg"
|
||||
android:tag="button.back"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonDown"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_down_bg"
|
||||
android:tag="button.dpad_down"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonMenu"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_menu_bg"
|
||||
android:tag="button.menu"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
174
res/layout-land/widget_remote_control_medium.xml
Normal file
|
@ -0,0 +1,174 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="#88000000"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteLeftSide"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPlay"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_playpause_bg"
|
||||
android:tag="button.play"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonStop"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_stop_bg"
|
||||
android:tag="button.stop"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPrevious"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_previous_bg"
|
||||
android:tag="button.skip_previous"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonNext"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_next_bg"
|
||||
android:tag="button.skip_next"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonHome"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_home_bg"
|
||||
android:tag="button.home"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteRightSide"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOsd"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_osd_bg"
|
||||
android:tag="button.osd"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonUp"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_up_bg"
|
||||
android:tag="button.dpad_up"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPower"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_power_big_bg"
|
||||
android:tag="button.power"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadMiddle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonLeft"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_left_bg"
|
||||
android:tag="button.dpad_left"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOK"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_largeButtonHeight"
|
||||
android:src="@drawable/remote_ok_bg"
|
||||
android:tag="button.ok"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonRight"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_right_bg"
|
||||
android:tag="button.dpad_right"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonBack"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_back_bg"
|
||||
android:tag="button.back"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonDown"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_down_bg"
|
||||
android:tag="button.dpad_down"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonMenu"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_menu_bg"
|
||||
android:tag="button.menu"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
174
res/layout-land/widget_remote_control_small.xml
Normal file
|
@ -0,0 +1,174 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="#88000000"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteLeftSide"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPlay"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_playpause_bg"
|
||||
android:tag="button.play"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonStop"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_stop_bg"
|
||||
android:tag="button.stop"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPrevious"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_previous_bg"
|
||||
android:tag="button.skip_previous"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonNext"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_next_bg"
|
||||
android:tag="button.skip_next"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonHome"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_home_bg"
|
||||
android:tag="button.home"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteRightSide"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOsd"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_osd_bg"
|
||||
android:tag="button.osd"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonUp"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_up_bg"
|
||||
android:tag="button.dpad_up"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPower"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_power_big_bg"
|
||||
android:tag="button.power"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadMiddle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonLeft"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_left_bg"
|
||||
android:tag="button.dpad_left"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOK"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_largeButtonHeight"
|
||||
android:src="@drawable/remote_ok_bg"
|
||||
android:tag="button.ok"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonRight"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_right_bg"
|
||||
android:tag="button.dpad_right"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonBack"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_back_bg"
|
||||
android:tag="button.back"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonDown"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_down_bg"
|
||||
android:tag="button.dpad_down"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonMenu"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_menu_bg"
|
||||
android:tag="button.menu"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
290
res/layout/remote_control.xml
Normal file
|
@ -0,0 +1,290 @@
|
|||
<?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="fill_parent"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/activityBg"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteTop"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/vertSpacer"
|
||||
android:layout_marginBottom="@dimen/vertSpacer"
|
||||
android:layout_marginLeft="@dimen/horizSpacer"
|
||||
android:layout_marginRight="@dimen/horizSpacer"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteTopLeft"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="left"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonHome"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_home_bg"
|
||||
android:tag="button.home"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonToggleFullscreen"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_togglefullscreen_bg"
|
||||
android:tag="button.togglefullscreen"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteTopRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="right"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPower"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_power_bg"
|
||||
android:tag="button.power"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/horizSpacer"
|
||||
android:layout_marginRight="@dimen/horizSpacer"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOsd"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/regButtonWidth"
|
||||
android:layout_height="@dimen/regButtonHeight"
|
||||
android:src="@drawable/remote_osd_bg"
|
||||
android:tag="button.osd"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonUp"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/largeButtonWidth"
|
||||
android:layout_height="@dimen/regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_up_bg"
|
||||
android:tag="button.dpad_up"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonInfo"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/regButtonWidth"
|
||||
android:layout_height="@dimen/regButtonHeight"
|
||||
android:src="@drawable/remote_info_bg"
|
||||
android:tag="button.info"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadMiddle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/horizSpacer"
|
||||
android:layout_marginRight="@dimen/horizSpacer"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonLeft"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/regButtonWidth"
|
||||
android:layout_height="@dimen/largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_left_bg"
|
||||
android:tag="button.dpad_left"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOK"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/largeButtonWidth"
|
||||
android:layout_height="@dimen/largeButtonHeight"
|
||||
android:src="@drawable/remote_ok_bg"
|
||||
android:tag="button.ok"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonRight"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/regButtonWidth"
|
||||
android:layout_height="@dimen/largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_right_bg"
|
||||
android:tag="button.dpad_right"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/horizSpacer"
|
||||
android:layout_marginRight="@dimen/horizSpacer"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonBack"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/regButtonWidth"
|
||||
android:layout_height="@dimen/regButtonHeight"
|
||||
android:src="@drawable/remote_back_bg"
|
||||
android:tag="button.back"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonDown"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/largeButtonWidth"
|
||||
android:layout_height="@dimen/regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_down_bg"
|
||||
android:tag="button.dpad_down"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonMenu"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/regButtonWidth"
|
||||
android:layout_height="@dimen/regButtonHeight"
|
||||
android:src="@drawable/remote_menu_bg"
|
||||
android:tag="button.menu"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteBottom"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/vertSpacer"
|
||||
android:layout_marginBottom="@dimen/vertSpacer"
|
||||
android:layout_marginLeft="@dimen/horizSpacer"
|
||||
android:layout_marginRight="@dimen/horizSpacer"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteBottomLeft"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPrevious"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_previous_bg"
|
||||
android:tag="button.skip_previous"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonNext"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_next_bg"
|
||||
android:tag="button.skip_next"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteBottomRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:gravity="right"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteBottomRightTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPlay"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_playpause_bg"
|
||||
android:tag="button.play"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonStop"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_stop_bg"
|
||||
android:tag="button.stop"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteBottomRightBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonRewind"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_rewind_bg"
|
||||
android:tag="button.rewind"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonFastforward"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/smallButtonWidth"
|
||||
android:layout_height="@dimen/smallButtonHeight"
|
||||
android:src="@drawable/remote_fastforward_bg"
|
||||
android:tag="button.fastforward"
|
||||
android:onClick="onRemoteButtonClick"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
267
res/layout/test_layout.xml
Normal file
|
@ -0,0 +1,267 @@
|
|||
<?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:background="#ff333333"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton1"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton2"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="right" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton3"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton10"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton11"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_long_horiz" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton12"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton13"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_long_vert" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton14"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_big" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton15"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_long_vert" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton16"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton17"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_long_horiz" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton18"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:visibility="gone" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton4"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton5"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="right"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton6"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton7"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton8"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton9"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton19"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton20"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton21"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton22"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton23"
|
||||
style="@style/TestRemoteButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/remote_button_small" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
164
res/layout/widget_remote_control_big.xml
Normal file
|
@ -0,0 +1,164 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="#88000000"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOsd"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_osd_bg"
|
||||
android:tag="button.osd"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonUp"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_up_bg"
|
||||
android:tag="button.dpad_up"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPower"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_power_big_bg"
|
||||
android:tag="button.power"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadMiddle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonLeft"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_left_bg"
|
||||
android:tag="button.dpad_left"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOK"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_largeButtonHeight"
|
||||
android:src="@drawable/remote_ok_bg"
|
||||
android:tag="button.ok"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonRight"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_right_bg"
|
||||
android:tag="button.dpad_right"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonBack"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_back_bg"
|
||||
android:tag="button.back"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonDown"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_down_bg"
|
||||
android:tag="button.dpad_down"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonMenu"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_regButtonHeight"
|
||||
android:src="@drawable/remote_menu_bg"
|
||||
android:tag="button.menu"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteBottom"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPlay"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_playpause_bg"
|
||||
android:tag="button.play"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonStop"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_stop_bg"
|
||||
android:tag="button.stop"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPrevious"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_previous_bg"
|
||||
android:tag="button.skip_previous"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonNext"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_next_bg"
|
||||
android:tag="button.skip_next"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonHome"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_big_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_big_smallButtonHeight"
|
||||
android:src="@drawable/remote_home_bg"
|
||||
android:tag="button.home"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
164
res/layout/widget_remote_control_medium.xml
Normal file
|
@ -0,0 +1,164 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="#88000000"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOsd"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_osd_bg"
|
||||
android:tag="button.osd"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonUp"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_up_bg"
|
||||
android:tag="button.dpad_up"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPower"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_power_big_bg"
|
||||
android:tag="button.power"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadMiddle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonLeft"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_left_bg"
|
||||
android:tag="button.dpad_left"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOK"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_largeButtonHeight"
|
||||
android:src="@drawable/remote_ok_bg"
|
||||
android:tag="button.ok"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonRight"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_right_bg"
|
||||
android:tag="button.dpad_right"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonBack"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_back_bg"
|
||||
android:tag="button.back"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonDown"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_down_bg"
|
||||
android:tag="button.dpad_down"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonMenu"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_regButtonHeight"
|
||||
android:src="@drawable/remote_menu_bg"
|
||||
android:tag="button.menu"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPlay"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_playpause_bg"
|
||||
android:tag="button.play"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonStop"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_stop_bg"
|
||||
android:tag="button.stop"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPrevious"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_previous_bg"
|
||||
android:tag="button.skip_previous"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonNext"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_next_bg"
|
||||
android:tag="button.skip_next"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonHome"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_medium_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_medium_smallButtonHeight"
|
||||
android:src="@drawable/remote_home_bg"
|
||||
android:tag="button.home"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
164
res/layout/widget_remote_control_small.xml
Normal file
|
@ -0,0 +1,164 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="#88000000"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOsd"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_osd_bg"
|
||||
android:tag="button.osd"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonUp"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_up_bg"
|
||||
android:tag="button.dpad_up"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPower"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_power_big_bg"
|
||||
android:tag="button.power"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadMiddle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonLeft"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_left_bg"
|
||||
android:tag="button.dpad_left"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonOK"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_largeButtonHeight"
|
||||
android:src="@drawable/remote_ok_bg"
|
||||
android:tag="button.ok"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonRight"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_largeButtonHeight"
|
||||
android:src="@drawable/remote_dpad_right_bg"
|
||||
android:tag="button.dpad_right"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteDpadBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonBack"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_back_bg"
|
||||
android:tag="button.back"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonDown"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_largeButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_dpad_down_bg"
|
||||
android:tag="button.dpad_down"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonMenu"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_regButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_regButtonHeight"
|
||||
android:src="@drawable/remote_menu_bg"
|
||||
android:tag="button.menu"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remoteBottom"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPlay"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_playpause_bg"
|
||||
android:tag="button.play"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonStop"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_stop_bg"
|
||||
android:tag="button.stop"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonPrevious"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_previous_bg"
|
||||
android:tag="button.skip_previous"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonNext"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_skip_next_bg"
|
||||
android:tag="button.skip_next"
|
||||
/>
|
||||
<ImageButton
|
||||
android:id="@+id/remoteButtonHome"
|
||||
style="@style/RemoteButton"
|
||||
android:layout_width="@dimen/widget_small_smallButtonWidth"
|
||||
android:layout_height="@dimen/widget_small_smallButtonHeight"
|
||||
android:src="@drawable/remote_home_bg"
|
||||
android:tag="button.home"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
15
res/values-land/widget_dimensions_big.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="widget_big_smallButtonWidth">61dp</dimen>
|
||||
<dimen name="widget_big_smallButtonHeight">61dp</dimen>
|
||||
<dimen name="widget_big_regButtonWidth">78dp</dimen>
|
||||
<dimen name="widget_big_regButtonHeight">78dp</dimen>
|
||||
<dimen name="widget_big_largeButtonWidth">156dp</dimen>
|
||||
<dimen name="widget_big_largeButtonHeight">156dp</dimen>
|
||||
<dimen name="widget_big_dpadWidth">320dp</dimen>
|
||||
<dimen name="widget_big_dpadHeight">320dp</dimen>
|
||||
<dimen name="widget_big_margin1dp">1dp</dimen>
|
||||
<dimen name="widget_big_margin2dp">2dp</dimen>
|
||||
|
||||
</resources>
|
15
res/values-land/widget_dimensions_medium.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="widget_medium_smallButtonWidth">45dp</dimen>
|
||||
<dimen name="widget_medium_smallButtonHeight">45dp</dimen>
|
||||
<dimen name="widget_medium_regButtonWidth">58dp</dimen>
|
||||
<dimen name="widget_medium_regButtonHeight">58dp</dimen>
|
||||
<dimen name="widget_medium_largeButtonWidth">116dp</dimen>
|
||||
<dimen name="widget_medium_largeButtonHeight">116dp</dimen>
|
||||
<dimen name="widget_medium_dpadWidth">240dp</dimen>
|
||||
<dimen name="widget_medium_dpadHeight">240dp</dimen>
|
||||
<dimen name="widget_medium_margin1dp">1dp</dimen>
|
||||
<dimen name="widget_medium_margin2dp">2dp</dimen>
|
||||
|
||||
</resources>
|
15
res/values-land/widget_dimensions_small.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="widget_small_smallButtonWidth">29dp</dimen>
|
||||
<dimen name="widget_small_smallButtonHeight">29dp</dimen>
|
||||
<dimen name="widget_small_regButtonWidth">38dp</dimen>
|
||||
<dimen name="widget_small_regButtonHeight">38dp</dimen>
|
||||
<dimen name="widget_small_largeButtonWidth">76dp</dimen>
|
||||
<dimen name="widget_small_largeButtonHeight">76dp</dimen>
|
||||
<dimen name="widget_small_dpadWidth">160dp</dimen>
|
||||
<dimen name="widget_small_dpadHeight">160dp</dimen>
|
||||
<dimen name="widget_small_margin1dp">1dp</dimen>
|
||||
<dimen name="widget_small_margin2dp">2dp</dimen>
|
||||
|
||||
</resources>
|
13
res/values-sw360dp/activity_dimensions.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="smallButtonWidth">65dp</dimen>
|
||||
<dimen name="smallButtonHeight">65dp</dimen>
|
||||
<dimen name="regButtonWidth">84dp</dimen>
|
||||
<dimen name="regButtonHeight">84dp</dimen>
|
||||
<dimen name="largeButtonWidth">165dp</dimen>
|
||||
<dimen name="largeButtonHeight">165dp</dimen>
|
||||
<dimen name="horizSpacer">11dp</dimen>
|
||||
<dimen name="vertSpacer">6dp</dimen>
|
||||
|
||||
</resources>
|
16
res/values-sw800dp/activity_dimensions.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="smallButtonWidth">130dp</dimen>
|
||||
<dimen name="smallButtonHeight">130dp</dimen>
|
||||
<dimen name="regButtonWidth">180dp</dimen>
|
||||
<dimen name="regButtonHeight">180dp</dimen>
|
||||
<dimen name="largeButtonWidth">360dp</dimen>
|
||||
<dimen name="largeButtonHeight">360dp</dimen>
|
||||
<dimen name="dpadWidth">740dp</dimen>
|
||||
<dimen name="dpadHeight">740dp</dimen>
|
||||
<dimen name="sectionMargin">25dp</dimen>
|
||||
<dimen name="margin1dp">3dp</dimen>
|
||||
<dimen name="margin2dp">5dp</dimen>
|
||||
|
||||
</resources>
|
15
res/values-sw800dp/widget_dimensions_big.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="widget_big_smallButtonWidth">74dp</dimen>
|
||||
<dimen name="widget_big_smallButtonHeight">74dp</dimen>
|
||||
<dimen name="widget_big_regButtonWidth">94dp</dimen>
|
||||
<dimen name="widget_big_regButtonHeight">94dp</dimen>
|
||||
<dimen name="widget_big_largeButtonWidth">188dp</dimen>
|
||||
<dimen name="widget_big_largeButtonHeight">188dp</dimen>
|
||||
<dimen name="widget_big_dpadWidth">384dp</dimen>
|
||||
<dimen name="widget_big_dpadHeight">384dp</dimen>
|
||||
<dimen name="widget_big_margin1dp">1dp</dimen>
|
||||
<dimen name="widget_big_margin2dp">2dp</dimen>
|
||||
|
||||
</resources>
|
15
res/values-sw800dp/widget_dimensions_medium.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="widget_medium_smallButtonWidth">55dp</dimen>
|
||||
<dimen name="widget_medium_smallButtonHeight">55dp</dimen>
|
||||
<dimen name="widget_medium_regButtonWidth">70dp</dimen>
|
||||
<dimen name="widget_medium_regButtonHeight">70dp</dimen>
|
||||
<dimen name="widget_medium_largeButtonWidth">140dp</dimen>
|
||||
<dimen name="widget_medium_largeButtonHeight">140dp</dimen>
|
||||
<dimen name="widget_medium_dpadWidth">288dp</dimen>
|
||||
<dimen name="widget_medium_dpadHeight">288dp</dimen>
|
||||
<dimen name="widget_medium_margin1dp">1dp</dimen>
|
||||
<dimen name="widget_medium_margin2dp">2dp</dimen>
|
||||
|
||||
</resources>
|
15
res/values-sw800dp/widget_dimensions_small.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="widget_small_smallButtonWidth">35dp</dimen>
|
||||
<dimen name="widget_small_smallButtonHeight">35dp</dimen>
|
||||
<dimen name="widget_small_regButtonWidth">45dp</dimen>
|
||||
<dimen name="widget_small_regButtonHeight">45dp</dimen>
|
||||
<dimen name="widget_small_largeButtonWidth">90dp</dimen>
|
||||
<dimen name="widget_small_largeButtonHeight">90dp</dimen>
|
||||
<dimen name="widget_small_dpadWidth">189dp</dimen>
|
||||
<dimen name="widget_small_dpadHeight">189dp</dimen>
|
||||
<dimen name="widget_small_margin1dp">1dp</dimen>
|
||||
<dimen name="widget_small_margin2dp">2dp</dimen>
|
||||
|
||||
</resources>
|
13
res/values/activity_dimensions.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="smallButtonWidth">57dp</dimen>
|
||||
<dimen name="smallButtonHeight">57dp</dimen>
|
||||
<dimen name="regButtonWidth">73dp</dimen>
|
||||
<dimen name="regButtonHeight">73dp</dimen>
|
||||
<dimen name="largeButtonWidth">145dp</dimen>
|
||||
<dimen name="largeButtonHeight">145dp</dimen>
|
||||
<dimen name="horizSpacer">10dp</dimen>
|
||||
<dimen name="vertSpacer">5dp</dimen>
|
||||
|
||||
</resources>
|
5
res/values/colors.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="transparent">#00000000</color>
|
||||
<color name="activityBg">#ff1c1c1c</color>
|
||||
</resources>
|
5
res/values/strings.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">HTPC Remote</string>
|
||||
|
||||
</resources>
|
17
res/values/styles.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="RemoteButton">
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:background">@color/transparent</item>
|
||||
<item name="android:scaleType">fitCenter</item>
|
||||
<item name="android:layout_margin">1dp</item>
|
||||
</style>
|
||||
|
||||
<style name="TestRemoteButton">
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:background">@color/transparent</item>
|
||||
<item name="android:layout_margin">1dp</item>
|
||||
</style>
|
||||
</resources>
|
11
res/values/widget_dimensions_big.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<dimen name="widget_big_smallButtonWidth">61dp</dimen>
|
||||
<dimen name="widget_big_smallButtonHeight">61dp</dimen>
|
||||
<dimen name="widget_big_regButtonWidth">78dp</dimen>
|
||||
<dimen name="widget_big_regButtonHeight">78dp</dimen>
|
||||
<dimen name="widget_big_largeButtonWidth">156dp</dimen>
|
||||
<dimen name="widget_big_largeButtonHeight">156dp</dimen>
|
||||
|
||||
</resources>
|