Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
apps
maharadroid
Commits
37b32a9d
Commit
37b32a9d
authored
Jul 25, 2012
by
Jon Sharp
Browse files
Add windowtitle customisation
parent
b40e2c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
custbuild.xml
View file @
37b32a9d
...
...
@@ -9,10 +9,14 @@ ref: http://ant.apache.org/manual/
<property
name=
"CUST_DIR"
value=
"./res_sol"
/>
<property
name=
"RES_DIR"
value=
"./res"
/>
<target
depends=
"init"
description=
"test target"
name=
"testtarget"
>
<echo
message=
"Hello, world"
/>
<target
depends=
"init,copyicons,editstrings"
description=
"All customisation"
name=
"custom"
>
<echo
message=
"Doing custom tasks"
/>
</target>
<target
depends=
"init"
description=
"copy icons"
name=
"copyicons"
>
<echo
message=
"copying icons"
/>
...
...
@@ -81,17 +85,58 @@ ref: http://ant.apache.org/manual/
be manually changed -->
<echo
message=
"editing custom strings"
/>
<mkdir
dir=
"${RES_DIR}/values/std"
/>
<!-- <upload.base.uri>http://solent-mahara.catalystdemo.co.uk</upload.base.uri> -->
<copy
file=
"${RES_DIR}/values/strings.xml"
todir=
"${RES_DIR}/values/std/"
overwrite=
"false"
failonerror=
"false"
verbose=
"true"
/>
<replace
file=
"${RES_DIR}/values/strings.xml"
token=
"<string name="pref_base_url_default"></string>"
value=
"<string name="pref_base_url_default">http://solent-mahara.catalystdemo.co.uk</string>"
summary=
"true"
/>
<!-- <upload.base.uri>http://solent-mahara.catalystdemo.co.uk</upload.base.uri> -->
<!-- string name="app_name">MaharaDroid</string-->
<replace
file=
"${RES_DIR}/values/strings.xml"
token=
"<string name="app_name">MaharaDroid</string>"
value=
"<string name="app_name">myPortfolio</string>"
summary=
"true"
/>
</target>
<target
depends=
"init"
description=
"edit windowtitle"
name=
"editwindowtitle"
>
<!-- this makes a copy of the original file in the std dir
Notes as for editstrings - though this cannot reliably detect if content is already there
-->
<echo
message=
"adding custom windowtitle element"
/>
<mkdir
dir=
"${RES_DIR}/values/std"
/>
<copy
file=
"${RES_DIR}/layout/windowtitle.xml"
todir=
"${RES_DIR}/layout/std/"
overwrite=
"false"
failonerror=
"false"
verbose=
"true"
/>
<replace
file=
"${RES_DIR}/layout/windowtitle.xml"
token=
"</LinearLayout>"
value=
" <!-- custom icon on right of header -->

<ImageView

android:id="@+id/windowtitle_cust_icon"

android:src="@drawable/windowtitle_cust_icon"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_gravity="right"

android:layout_weight="0"

android:padding="0dp"

android:layout_margin="0dp"

android:scaleType="fitStart"

/>

</LinearLayout>
"
summary=
"true"
/>
</target>
<!-- to build apk - in eclipse do clean, then Run->Run As ->Android application (this builds Release verion of apk) -->
<target
depends=
"init"
description=
"copy apk"
name=
"copyapk"
>
<echo
message=
"copying apk"
/>
<echo
message=
"now copy ./bin/ArtefactExpandableListAdapterActivity.apk to server"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment