diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2011-01-10 22:03:53 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2011-01-10 22:03:53 (GMT) |
commit | 68e055945e6278d9ccde1997b5dafbfdfdf14dd5 (patch) | |
tree | d18dd1ebf8b3261b03be5cb9c9f21e827e1239e8 | |
parent | 92394b58029f924c5e15f488020ce31a8e793b81 (diff) | |
download | SoftKeys-68e055945e6278d9ccde1997b5dafbfdfdf14dd5.zip SoftKeys-68e055945e6278d9ccde1997b5dafbfdfdf14dd5.tar.gz SoftKeys-68e055945e6278d9ccde1997b5dafbfdfdf14dd5.tar.bz2 |
Fix transparency bug
-rw-r--r-- | res/layout/service_extra.xml | 8 | ||||
-rw-r--r-- | src/net/hoopajoo/android/SoftKeys/SoftKeysService.java | 18 |
2 files changed, 19 insertions, 7 deletions
diff --git a/res/layout/service_extra.xml b/res/layout/service_extra.xml index ded0263..7024bb0 100644 --- a/res/layout/service_extra.xml +++ b/res/layout/service_extra.xml @@ -20,6 +20,13 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main_view" + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + > + +<LinearLayout + android:id="@+id/button_container" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -125,4 +132,5 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="custom"/> +</LinearLayout> </LinearLayout>
\ No newline at end of file diff --git a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java index 4c9b265..fa23127 100644 --- a/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java +++ b/src/net/hoopajoo/android/SoftKeys/SoftKeysService.java @@ -354,10 +354,10 @@ public class SoftKeysService extends Service { // extra view (dpad, customizable buttons) mExtraView = l.inflate( R.layout.service_extra, null ); - Generator.applyContainerExtras( mExtraView, "service_extra", + Generator.applyContainerExtras( mExtraView.findViewById( R.id.button_container ), "service_extra", Generator.currentTheme( this ), Generator.scaledIconSize( this, 0, buttonMult ) ); - + mExtraView.setOnTouchListener( touch ); OnLongClickListener configButtons = new OnLongClickListener() { @@ -427,10 +427,7 @@ public class SoftKeysService extends Service { break; } } - mNumRows = settings.getInt( "service_extra_num_custom", 0 ); - mExtraEnabled = settings.getBoolean( "service_extra_enabled", false ); - updateExtraRows(); - + // update the button configs, they are simply mapped by id in to a hashmap int i = 0; for( int id : new int[] { @@ -460,8 +457,13 @@ public class SoftKeysService extends Service { ((Button)mExtraView.findViewById( id )).setText( keyname ); mCustomKeys.put( id, keycode ); } + applyTransparency( mExtraView, settings.getInt( "service_extra_transparency", 0 ) ); - + + mNumRows = settings.getInt( "service_extra_num_custom", 0 ); + mExtraEnabled = settings.getBoolean( "service_extra_enabled", false ); + updateExtraRows(); + // hide stuff toggleBar(); @@ -669,9 +671,11 @@ public class SoftKeysService extends Service { WindowManager wm = (WindowManager)getSystemService(WINDOW_SERVICE); wm.removeView( mView ); wm.removeView( mBumpView ); + wm.removeView( mExtraView ); mView = null; mBumpView = null; + mExtraView = null; mOrientationListener.disable(); } |