summaryrefslogtreecommitdiffstats
path: root/src/net/hoopajoo/android/SoftKeys/Theme.java
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2010-12-27 22:06:24 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2010-12-27 22:06:24 (GMT)
commit82f499aad1236eef14d06757991237764d8d25f9 (patch)
tree76114889d5fc01d5c65609a63a27fc68595515a3 /src/net/hoopajoo/android/SoftKeys/Theme.java
parent669d442509c2b6d38f5a1ba9ccfed8d5d22bf21b (diff)
downloadSoftKeys-82f499aad1236eef14d06757991237764d8d25f9.zip
SoftKeys-82f499aad1236eef14d06757991237764d8d25f9.tar.gz
SoftKeys-82f499aad1236eef14d06757991237764d8d25f9.tar.bz2
Allow specifying tiling modes in the theme config, allow overriding the
button container view with some kind of wrapper view and specifying the actual view group to add buttons to
Diffstat (limited to 'src/net/hoopajoo/android/SoftKeys/Theme.java')
-rw-r--r--src/net/hoopajoo/android/SoftKeys/Theme.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/Theme.java b/src/net/hoopajoo/android/SoftKeys/Theme.java
index 310fd31..3fcb880 100644
--- a/src/net/hoopajoo/android/SoftKeys/Theme.java
+++ b/src/net/hoopajoo/android/SoftKeys/Theme.java
@@ -137,6 +137,16 @@ public class Theme {
}
*/
+ // this returns the first ID matched, for use by the generator to find the
+ // button container view by id
+ public int getId( String[] name ) {
+ IdPack i = getId( name, "id" );
+ if( i != null ) {
+ return i.id;
+ }
+ return( 0 );
+ }
+
private IdPack getId( String[] name, String type ) {
// return the most specific match, from theme first then from app
for( IdPack check : mResources ) {