Load GUI from XML
This commit is contained in:
19
layouts/test.xml
Normal file
19
layouts/test.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<gui version="1">
|
||||
<style name="ButtonStyle100x30" font="DejaVuSans.ttf" width="100" height="30"
|
||||
paddingLeft="6" paddingTop="6" paddingRight="6" paddingBottom="6"
|
||||
background="textures/button_100x30.png" color="0,0,0,255"
|
||||
alignHorizontal="center" alignVertical="center"/>
|
||||
|
||||
<LinearLayout direction="vertical" name="layout" backgroundColor="0,255,255,128"
|
||||
childPadding="4" paddingLeft="4" paddingTop="4" paddingRight="4"
|
||||
paddingBottom="4">
|
||||
<TextWidget font="DejaVuSans.ttf" width="204" name="laber"
|
||||
backgroundColor="255,0,0,128"
|
||||
text="Dies ist ein längerer Text, der umgebrochen werden sollte. Bla laber schwafl, laber bullshit bingo" />
|
||||
<LinearLayout direction="horizontal" name="layout2" width="match_parent"
|
||||
childPadding="4" backgroundColor="0,255,0,128">
|
||||
<TextWidget name="button2" text="Cancel" style="ButtonStyle100x30" />
|
||||
<TextWidget name="button" text="Do stuff!" style="ButtonStyle100x30" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</gui>
|
||||
Reference in New Issue
Block a user