From ce053641510b5cb731d79dc95121321e4fa97718 Mon Sep 17 00:00:00 2001 From: aNNiMON Date: Wed, 14 Feb 2024 00:23:12 +0200 Subject: [PATCH] Initial commit --- .netbeans.xml | 6 + AndroidManifest.xml | 20 + ant.properties | 18 + build.xml | 92 ++ local.properties | 10 + proguard-project.txt | 25 + project.properties | 14 + res/drawable-hdpi/ic_launcher.png | Bin 0 -> 1385 bytes res/drawable-ldpi/ic_launcher.png | Bin 0 -> 615 bytes res/drawable-mdpi/ic_launcher.png | Bin 0 -> 846 bytes res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 1817 bytes res/values/strings.xml | 13 + res/values/styles.xml | 3 + src/com/annimon/layoutviewer/AXMLPrinter.java | 166 ++++ src/com/annimon/layoutviewer/AndroidXml.java | 92 ++ .../layoutviewer/LayoutViewerActivity.java | 102 ++ src/com/annimon/layoutviewer/Prefs.java | 43 + .../annimon/layoutviewer/ViewInflater.java | 613 ++++++++++++ .../android4me/res/AXmlResourceParser.java | 905 ++++++++++++++++++ .../googlecode/android4me/res/ChunkUtil.java | 34 + .../googlecode/android4me/res/IntReader.java | 156 +++ .../android4me/res/StringBlock.java | 245 +++++ .../android4me/res/XmlResourceParser.java | 28 + .../android4me/util/AttributeSet.java | 72 ++ .../android4me/util/TypedValue.java | 66 ++ 25 files changed, 2723 insertions(+) create mode 100644 .netbeans.xml create mode 100644 AndroidManifest.xml create mode 100644 ant.properties create mode 100644 build.xml create mode 100644 local.properties create mode 100644 proguard-project.txt create mode 100644 project.properties create mode 100644 res/drawable-hdpi/ic_launcher.png create mode 100644 res/drawable-ldpi/ic_launcher.png create mode 100644 res/drawable-mdpi/ic_launcher.png create mode 100644 res/drawable-xhdpi/ic_launcher.png create mode 100644 res/values/strings.xml create mode 100644 res/values/styles.xml create mode 100644 src/com/annimon/layoutviewer/AXMLPrinter.java create mode 100644 src/com/annimon/layoutviewer/AndroidXml.java create mode 100644 src/com/annimon/layoutviewer/LayoutViewerActivity.java create mode 100644 src/com/annimon/layoutviewer/Prefs.java create mode 100644 src/com/annimon/layoutviewer/ViewInflater.java create mode 100644 src/com/googlecode/android4me/res/AXmlResourceParser.java create mode 100644 src/com/googlecode/android4me/res/ChunkUtil.java create mode 100644 src/com/googlecode/android4me/res/IntReader.java create mode 100644 src/com/googlecode/android4me/res/StringBlock.java create mode 100644 src/com/googlecode/android4me/res/XmlResourceParser.java create mode 100644 src/com/googlecode/android4me/util/AttributeSet.java create mode 100644 src/com/googlecode/android4me/util/TypedValue.java diff --git a/.netbeans.xml b/.netbeans.xml new file mode 100644 index 0000000..d84c740 --- /dev/null +++ b/.netbeans.xml @@ -0,0 +1,6 @@ + + + + xml + + diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 0000000..1339373 --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + diff --git a/ant.properties b/ant.properties new file mode 100644 index 0000000..531462f --- /dev/null +++ b/ant.properties @@ -0,0 +1,18 @@ +# This file is used to override default values used by the Ant build system. +# +# This file must be checked into Version Control Systems, as it is +# integral to the build system of your project. + +# This file is only used by the Ant script. + +# You can use this to override default values such as +# 'source.dir' for the location of your java source folder and +# 'out.dir' for the location of your output folder. + +# You can also use it define how the release builds are signed by declaring +# the following properties: +# 'key.store' for the location of your keystore and +# 'key.alias' for the name of the key to use. +# The password will be asked during the build when you use the 'release' target. +key.store=D:\\\\\\\\Android\\\\\\\\android-sign\\\\\\\\keystore +key.alias=sign diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..7297f95 --- /dev/null +++ b/build.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/local.properties b/local.properties new file mode 100644 index 0000000..5e1ce4b --- /dev/null +++ b/local.properties @@ -0,0 +1,10 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. + +# location of the SDK. This is only used by Ant +# For customization when using a Version Control System, please read the +# header note. +sdk.dir=D:\\Android\\android-sdk diff --git a/proguard-project.txt b/proguard-project.txt new file mode 100644 index 0000000..35e3bf0 --- /dev/null +++ b/proguard-project.txt @@ -0,0 +1,25 @@ +# 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: +@E:\\SETUPS\\Disk\\Programming\\Java\\android.pro +-obfuscationdictionary E:\\SETUPS\\Disk\\Programming\\Java\\compact.txt +-optimizationpasses 9 +-allowaccessmodification +-overloadaggressively + +# 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 *; +#} diff --git a/project.properties b/project.properties new file mode 100644 index 0000000..8aa5e9f --- /dev/null +++ b/project.properties @@ -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}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\proguard-android.txt:proguard-project.txt + +# Project target. +target=android-16 diff --git a/res/drawable-hdpi/ic_launcher.png b/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..37a6ffa1b7273ed549c180cbef72e9548d5f3a85 GIT binary patch literal 1385 zcmV-v1(y1WP)AH%n>W6hEkYi0#IgoIc#j6@PooOaT2 zcU80KM@-x%6?8p;R7z@Dv7+Plse8{o_m&%YSP$!AZEadnU;p~c&))!8j1eT$>2z8y-N&=i zerjzR7eQ5ns`5Whr_=9FPEOAIC|V_mbzNu6^3pEL3NEeyLR~FUmCM9AmvmCIMi82& z5ek^57RJWKkkG-yvuPSx)#mFgkYbQ!7S<+F5meDbWW6q}g^37}r73KZMixPS^!;^$ zj9`)_ut{7IWauE|%>)?|S)L(@E`l0R0wTy5Vkb+Gq-lH+6rw@K803=_X&PGuIS4}{ zNCcBSK7xokOr-br_wdn+50U4Ss0dmt3Vc6OnAQlg#$bPM7n8|OWE#`}VgkxM2vR^s z)yxAMzONk{fQS$>rdan`q=k@Bf{YL*GJ=e7eL6Nu5CkGJ>Iv?51cjy;;!Ux!5VB)h zMG6>M1d%e9VIu?qFcg@`s+b|eQmm>g9M6t1DbM3FibVnE+|2}e=TTP`Dy4~H<2`)i zVZ;E`(Y2=W@ZLkjfJ&HEU18-gV>3aMJje5A&#|+k{QLu|yOxg%GysrG|+>quBOhio4xm zEs6rAxlqAeE|)FlVu8!DRKYCH&fr`?nb#h7^t*j=q4PynBePV*EEeZ*jStiy>UHxi z7IAR!SZ&T-6a`LC=Xm`1J!F}Vw>q28ky;ZHK?J)?FM^1~S|mz`k=ED_GttA`fHT^x zQgkDz_bghN9K03v?lagZLR#0W96_p>ymIE6m|;dypz5TrJd36~ziMA}opiv->b8s` zl}+8<8AakhpJH5zo_C*Opz6?maM7BAIyiG(%)o9Qs%4(iVu_}8V2>$!_sP5J=D9r$ zqH;@wklzPM>lKwFsMR*T-A0E=)d&hcS=H5`Rws0gqI8&=Mp152=DQu&N(T;=5sDh5 zjfq>d8j1&pQ*KkmpelYc*ap2aFIy<{2&-a%sP|%2 z?!`Fti%{*w!mHR8I&a++lMYkvCdGQ6p}O0On8LmvQ@l^yqKXN)VaES2zD$QD6gAA& z)Ny##AtON?g1wr2j$sPJ2 zJ@sp`sHmvzW^;Je0%geAJhxTmv5hj%dr;;(tX`;9F{z7rw;~Pwi6YfSI<(bLd{(2! zY9mM#^+JZ~sCA!#1bH}L!}(g}gBy5IfW|vDOf*f0>D4ed;j9rYycn{|9nNz>Ely zy{6>8D2nvet5?YLJgNw~xVS)7RSC&vQndRI)~*b^-eYxDXG(jgWfNMGkL00000NkvXXu0mjfw&IOT literal 0 HcmV?d00001 diff --git a/res/drawable-ldpi/ic_launcher.png b/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..7fba6c83e85f7b96b72d99d6308f287ba11f892a GIT binary patch literal 615 zcmV-t0+{`YP)zqph z6JtcHmp$Nv2lRS!T^o)399h+S+U@OL zgc#`e2OJ$98XaQYAzO#kE0u~jN$ri&SGT z-7dd9yLn{B4$X@g)_#ZVO(3~vKmw>3fkaR-0vWS^H8N4Pb;#MX8-YZeu|p0K%Q?lF zvn8I=mdOqd$qo*gN2co?GLB4SbyWCQ*_%>JdLY$xsdsQl4PLl~LwYxdATM(B@gpzt z?L|VgXV*s-LU5zu$kbj{Wjq?&?s}XvWkU!QMd4OJS(eGg#k(TqZ_pCR0orIZUQVae zS3o_{ebuztY<`+dCSTkFss`+po%+vD4*URq{sL-^*N~m3P|5%R002ovPDHLkV1i!o B3`zh1 literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/ic_launcher.png b/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4a9892bae6d08dba7ef8b37e46e7288a4b5b2ed9 GIT binary patch literal 846 zcmV-U1F`&xP)3RI>_1kwWVd(ROi{aq*d)KkAxD2{675fEmGu-~l%S5zSh7{S^J zz6~a>5I_v}JOaX0E+8QPQ;4}D0^O@iK>SXjLBCfnpwWDUR;#7@!d}0JT2Mop>h_QR zU;tr8y{>B>*Uw*VCE^rWmZ`pQl#dXFp_&_y#|Q#Zb5Wd>3t*uQlWaHD%r|OI2+R&# zm5GH#ZQ|MF*^LuD$JGM#WmJT5cXx;3XsF_hF#z;jk&i1B?1ZWW=&J56l+J#XG3}NvTeSdDPUY;G9BR zOibF4&L>Z-7f!6_uuZ^vukny7M8tZIXV=nSuR?&GKeP)%1T_aDC(c@1F5vv^9O7_u zH_vnQ`+c`NZG(a8{L9O3sQ?mT5|Is~_%f`u2!epI^ap*gbep3%K0dw*!!U=ZgNW?K zMfb)SQ{2C|bbJcnJ%AGKnk?ZMn`U$`}0J}WV8h~_u^m$AG4Clv9u6Yl$j=ic&4s7=wqw{ont*|MTa5zkdm!aQ{I)0mxCi z-G0-3`TD0$_v=#-$7!q~rkLXT;{09v?&Dwme*YH05P+=$prN%sy}s(x?GT^{Ks^9V zfx+#kOly4#AOrBQ4gfaBWW->lk_bR;003Ca#+Ym#TdB$gEkIBSBaHxT1pp$VrzXD& z03?c$rV)VpF#zC%SME5~syC`cAxqN;KwSWspg39i_mu#osY0ew5Jv#&NWp|8q0IqM z2_wsr2tZu`3Jb27!_@$&1ZkR9zB$U5Spbs<0I5omWhw$t+X80ZWMcrbl+nzh1=I#W z6UYYul_tm<5rEnNB!tAv0+d1{jV`FJXaW+iZD_`5L<^`bNkULQyP&gIXZY^>*We2D zqO6zcG{n7}l9MX479yj&20K*X^gP#XZQT*TEun1E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001 diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..b721cda --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,13 @@ + + + Layout Viewer + Error while openning file. + + Light Theme + Black Theme + Dialog Theme + Wallpaper Theme + Holo Light Theme + Holo Theme + Holo Dialog Theme + diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 0000000..90ff1fb --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,3 @@ + +