How to Configure Home Settings in poshomesettings.xml: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
You can configure some home settings in poshomesettings.xml.Please download the [http://ftp.wizarpos.com/advanceSDK/poshomesettings.xml xml template].
You can configure some home settings in poshomesettings.xml.
== poshomesettings.xml default file download==
=== [http://ftp.wizarpos.com/advanceSDK/poshomesettings_Q1_default.xml Default poshomesettings for Q1 Download] ===
=== [http://ftp.wizarpos.com/advanceSDK/poshomesettings_Q1V2_default.xml Default poshomesettings for Q1V2 Download] ===
=== [http://ftp.wizarpos.com/advanceSDK/poshomesettings_Q2-Q2A7_default.xml Default poshomesettings for Q2/Q2A7 Download] ===
=== [http://ftp.wizarpos.com/advanceSDK/poshomesettings_Q3_default.xml Default poshomesettings for Q3 Download] ===
=== [http://ftp.wizarpos.com/advanceSDK/poshomesettings_Q3K_default.xml Default poshomesettings for Q3K Download] ===
== poshomesettings.xml file description ==
== poshomesettings.xml file description ==
===UI style for Q1: android===
<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!--
style: launcher theme, Q1 default is 'android'.
indicatorColor: Page indicator color of the selected page.
itemBackground: The style 'android' does not support this feature.
pageStatus: page indicator location, up / down
topBackgroundColor: the background color of favoritebar
versionCode: When update, the versionCode should larger/equals than the previous in the system.
-->
<desktop
<desktop
     // UI style, clarity / metro / android, Q2 and Q3 only support metro.
     style="android"
     style="metro"  
     indicatorColor="4FA2FF"
    itemBackground="false"
     pageStatus="down"
     pageStatus="down"
     // page indicator color of the selected page
     topBackgroundColor="00BFFF"
    versionCode="2" >
 
    <!--
    Some special application you want to define.
cols: How many cols display in one page, Q1 default is 4.
iconheight: Q1 default is 96.
iconwidth: Q1 default is 96.
rows: How many rows display in one page, Q1 default is 3.
    -->
    <applications
        cols="4"
        iconheight="96"
        iconwidth="96"
        rows="3" >
 
        <!--
class: app class name, can be empty.
col: at which column.
package: app package name.
page: at which page.
row: at which row.
columnSpan: icon item span columns, default is 1.
type: app or clock, default is app.
        -->
        <application
            class=""
            col="1"
            columnSpan="2"
            package="com.moji.mjweather"
            page="3"
            row="1"
            type="app" />
    </applications>
    <!--
    Define favorite bar.
cols: How many columns.
    -->
    <favoritebar cols="3" >
 
        <!--
class: app class name, can be empty.
col: at which column
package: app package name
        -->
        <application
            class="com.example.testEditText.FirstActivity"
            col="3"
            package="com.example.testEditText" />
        <application
            class=""
            col="2"
            package="cn.kuwo.player" />
        <application
            class=""
            col="1"
            package="com.sohu.inputmethod.sogou" />
    </favoritebar>
    <!-- Define hidden applications. -->
    <hiddenapplications>
 
        <!--
package: app package name, if only set this, all the entrance of this package will be hide; if only one entrance, just set package name.
class: app class name, can be empty.
        -->
        <application
            class=""
            package="com.example.realfullscreensample" />
    </hiddenapplications>
 
</desktop>
</syntaxhighlight >
=== UI style for Q1V2: clarity ===
<syntaxhighlight >
<?xml version="1.0" encoding="utf-8"?>
<!--
style: launcher theme, Q1V2 default is 'clarity'.
indicatorColor: Page indicator color of the selected page.
itemBackground: Whether set icon item background color.
pageStatus: page indicator location, up / down
versionCode: When update, the versionCode should larger/equals than the previous in the system.
-->
<desktop
    style="clarity"
     indicatorColor="4FA2FF"
     indicatorColor="4FA2FF"
    // whether set icon item background color
     itemBackground="true"
     itemBackground="true"
     // title location, left/center/right, only for Q2 and Q3
     pageStatus="down"
     titleGravity="left"
     versionCode="2" >
     // only for Q2 and Q3
 
     title="WizarPOS"
     <!--
    // When update, the version and versionCode should larger than the one in the system.
     Some special application you want to define.
    version="1.0.0"
cols: How many cols display in one page, Q1V2 default is 2.
     versionCode="11" >
iconheight: Q1V2 default is 72.
   
iconwidth: Q1V2 default is 72.
    // Application config
rows: How many rows display in one page, Q1V2 default is 3.
     -->
     <applications
     <applications
        // How many cols display in one page
         cols="2"
         cols="2"    
         iconheight="72"
        // Q2 default is 140, Q3 default is 96
         iconwidth="72"
         iconheight="140"
         rows="3" >
         iconwidth="140"
 
         // How many rows display in one page. Q2 default is 4, Q3 default is 3.
        <!--
         rows="4" >
backgroundColor: icon item background color.
        // Some special application you want to define
class: app class name, can be empty.
col: at which column.
package: app package name.
page: at which page.
row: at which row.
columnSpan: icon item span columns, default is 1.
type: app or clock, default is app.
         -->
         <application
         <application
            // icon item background color
             backgroundColor="20A2DE"
             backgroundColor="20A2DE"
            // app class name
             class=""
             class="com.test.allApp15.AllAppList1"
            // at which column
             col="1"
             col="1"
             // app package name
             columnSpan="2"
             package="com.test.allApp15"
             package="com.moji.mjweather"
            // at which page
             page="3"
             page="3"
            // at which row
             row="1"
             row="1"  
            // span columns
            columnSpan="2" (default is 1)
            // app or clock, default is app
             type="app" />
             type="app" />
    </applications>
    <!-- This feature was removed in style 'clarity'. -->
    <favoritebar cols="0" />
    <!-- Define hidden applications. -->
    <hiddenapplications>
        <!--
package: app package name, if only set this, all the entrance of this package will be hide; if only one entrance, just set package name.
class: app class name, can be empty.
        -->
         <application
         <application
            backgroundColor="596892"
             class=""
             class=""
             col="2"
             package="com.example.realfullscreensample" />
            package="com.UCMobile"
    </hiddenapplications>
            page="1"
 
            row="1" />
</desktop>
           
</syntaxhighlight >
 
=== UI style for Q2/Q2A7/Q3/Q3K: metro ===
<syntaxhighlight >
<?xml version="1.0" encoding="utf-8"?>
<!--
style: launcher theme, Q2/Q2A7/Q3/Q3K default is 'metro'.
indicatorColor: Page indicator color of the selected page.
itemBackground: Whether set icon item background color.
pageStatus: page indicator location, up / down
title: Merchant or store name, or other.
titleGravity: title location, left / center / right.
topBackgroundColor: the background color of title and favoritebar
versionCode: When update, the versionCode should larger/equals than the previous in the system.
-->
<desktop
    style="metro"
    indicatorColor="4FA2FF"
    itemBackground="true"
    pageStatus="down"
    title="WizarPOS"
    titleGravity="left"
    topBackgroundColor="00BFFF"
    versionCode="2" >
 
    <!--
    Some special application you want to define.
cols: How many cols display in one page, default is 2.
iconheight: Q2/Q2A7 default is 144, Q3 default is 96, Q3K default is 72.
iconwidth: Q2/Q2A7 default is 144, Q3 default is 96, Q3K default is 72.
rows: How many rows display in one page, Q2/Q2A7 default is 4, Q3/Q3K default is 3.
    -->
    <applications
        cols="2"
        iconheight="144"
        iconwidth="144"
        rows="4" >
 
        <!--
backgroundColor: icon item background color.
class: app class name, can be empty.
col: at which column.
package: app package name.
page: at which page.
row: at which row.
columnSpan: icon item span columns, default is 1.
type: app or clock, default is app.
        -->
         <application
         <application
             backgroundColor="20A2DE"
             backgroundColor="20A2DE"
             class="com.android.stk"
             class=""
             col="1"
             col="1"
             package="com.android.stk.StkLauncherActivity"
             columnSpan="2"
             page="1"
             package="com.moji.mjweather"
            row="1" />
             page="3"
           
             row="1"
        <application
             type="app" />
            backgroundColor="20A2DE"
            class="com.android.stk"
             col="1"
             package="com.android.stk.StkMenuActivity"
            page="1"
             row="2" />
     </applications>
     </applications>
     // Define favorite bar.
     <!--
     <favoritebar
    Define favorite bar.
        // how many columns
cols: How many columns.
        cols="3"
    -->
         // whether transparent
     <favoritebar cols="3" >
         hideBackground="false" >
 
      <application
         <!--
            // app class name
class: app class name, can be empty.
col: at which column
package: app package name
         -->
        <application
             class="com.example.testEditText.FirstActivity"
             class="com.example.testEditText.FirstActivity"
            // at which column
             col="3"
             col="3"
            // app package name
             package="com.example.testEditText" />
             package="com.example.testEditText" />
         <application
         <application
Line 88: Line 238:
             package="cn.kuwo.player" />
             package="cn.kuwo.player" />
         <application
         <application
             class="com.example.realfullscreensample.MainActivity"
             class=""
             col="1"
             col="1"
             package="com.example.realfullscreensample" />  
             package="com.sohu.inputmethod.sogou" />
     </favoritebar>
     </favoritebar>
     // Define hidden application.
     <!-- Define hidden applications. -->
     <hiddenapplications >
     <hiddenapplications>
      <application
 
          // package name, if only config package name, all the entrance of this package will be hide, if only one entrance, just config package name
        <!--
          package="com.sohu.inputmethod.sogou"
package: app package name, if only set this, all the entrance of this package will be hide; if only one entrance, just set package name.
          // class name  
class: app class name, can be empty.
  class="com.sohu.inputmethod.sogou.SogouIMELauncher"/>
        -->
     <hiddenapplications />
        <application
            class=""
            package="com.example.realfullscreensample" />
     </hiddenapplications>
 
</desktop>
</desktop>
</syntaxhighlight >
</syntaxhighlight >
== update process ==
== update process ==
Create the folder:
Create the folder:

Revision as of 06:03, 15 September 2021

You can configure some home settings in poshomesettings.xml.

poshomesettings.xml default file download

Default poshomesettings for Q1 Download

Default poshomesettings for Q1V2 Download

Default poshomesettings for Q2/Q2A7 Download

Default poshomesettings for Q3 Download

Default poshomesettings for Q3K Download

poshomesettings.xml file description

UI style for Q1: android

<?xml version="1.0" encoding="utf-8"?>
<!--
style: launcher theme, Q1 default is 'android'.
indicatorColor: Page indicator color of the selected page.
itemBackground: The style 'android' does not support this feature.
pageStatus: page indicator location, up / down
topBackgroundColor: the background color of favoritebar
versionCode: When update, the versionCode should larger/equals than the previous in the system.
-->
<desktop
    style="android"
    indicatorColor="4FA2FF"
    itemBackground="false"
    pageStatus="down"
    topBackgroundColor="00BFFF"
    versionCode="2" >

    <!--
    Some special application you want to define.
	cols: How many cols display in one page, Q1 default is 4.
	iconheight: Q1 default is 96.
	iconwidth: Q1 default is 96.
	rows: How many rows display in one page, Q1 default is 3.
    -->
    <applications
        cols="4"
        iconheight="96"
        iconwidth="96"
        rows="3" >

        <!--
		class: app class name, can be empty.
		col: at which column.
		package: app package name.
		page: at which page.
		row: at which row.
		columnSpan: icon item span columns, default is 1.
		type: app or clock, default is app.
        -->
        <application
            class=""
            col="1"
            columnSpan="2"
            package="com.moji.mjweather"
            page="3"
            row="1"
            type="app" />
    </applications>
    <!--
    Define favorite bar.
	cols: How many columns.
    -->
    <favoritebar cols="3" >

        <!--
		class: app class name, can be empty.
		col: at which column
		package: app package name
        -->
        <application
            class="com.example.testEditText.FirstActivity"
            col="3"
            package="com.example.testEditText" />
        <application
            class=""
            col="2"
            package="cn.kuwo.player" />
        <application
            class=""
            col="1"
            package="com.sohu.inputmethod.sogou" />
    </favoritebar>
    <!-- Define hidden applications. -->
    <hiddenapplications>

        <!--
		package: app package name, if only set this, all the entrance of this package will be hide; if only one entrance, just set package name.
		class: app class name, can be empty.
        -->
        <application
            class=""
            package="com.example.realfullscreensample" />
    </hiddenapplications>

</desktop>

UI style for Q1V2: clarity

<?xml version="1.0" encoding="utf-8"?>
<!--
style: launcher theme, Q1V2 default is 'clarity'.
indicatorColor: Page indicator color of the selected page.
itemBackground: Whether set icon item background color.
pageStatus: page indicator location, up / down
versionCode: When update, the versionCode should larger/equals than the previous in the system.
-->
<desktop
    style="clarity"
    indicatorColor="4FA2FF"
    itemBackground="true"
    pageStatus="down"
    versionCode="2" >

    <!--
    Some special application you want to define.
	cols: How many cols display in one page, Q1V2 default is 2.
	iconheight: Q1V2 default is 72.
	iconwidth: Q1V2 default is 72.
	rows: How many rows display in one page, Q1V2 default is 3.
    -->
    <applications
        cols="2"
        iconheight="72"
        iconwidth="72"
        rows="3" >

        <!--
		backgroundColor: icon item background color.
		class: app class name, can be empty.
		col: at which column.
		package: app package name.
		page: at which page.
		row: at which row.
		columnSpan: icon item span columns, default is 1.
		type: app or clock, default is app.
        -->
        <application
            backgroundColor="20A2DE"
            class=""
            col="1"
            columnSpan="2"
            package="com.moji.mjweather"
            page="3"
            row="1"
            type="app" />
    </applications>
    <!-- This feature was removed in style 'clarity'. -->
    <favoritebar cols="0" />
    <!-- Define hidden applications. -->
    <hiddenapplications>

        <!--
		package: app package name, if only set this, all the entrance of this package will be hide; if only one entrance, just set package name.
		class: app class name, can be empty.
        -->
        <application
            class=""
            package="com.example.realfullscreensample" />
    </hiddenapplications>

</desktop>

UI style for Q2/Q2A7/Q3/Q3K: metro

<?xml version="1.0" encoding="utf-8"?>
<!--
style: launcher theme, Q2/Q2A7/Q3/Q3K default is 'metro'.
indicatorColor: Page indicator color of the selected page.
itemBackground: Whether set icon item background color.
pageStatus: page indicator location, up / down
title: Merchant or store name, or other.
titleGravity: title location, left / center / right.
topBackgroundColor: the background color of title and favoritebar
versionCode: When update, the versionCode should larger/equals than the previous in the system.
-->
<desktop
    style="metro"
    indicatorColor="4FA2FF"
    itemBackground="true"
    pageStatus="down"
    title="WizarPOS"
    titleGravity="left"
    topBackgroundColor="00BFFF"
    versionCode="2" >

    <!--
    Some special application you want to define.
	cols: How many cols display in one page, default is 2.
	iconheight: Q2/Q2A7 default is 144, Q3 default is 96, Q3K default is 72.
	iconwidth: Q2/Q2A7 default is 144, Q3 default is 96, Q3K default is 72.
	rows: How many rows display in one page, Q2/Q2A7 default is 4, Q3/Q3K default is 3.
    -->
    <applications
        cols="2"
        iconheight="144"
        iconwidth="144"
        rows="4" >

        <!--
		backgroundColor: icon item background color.
		class: app class name, can be empty.
		col: at which column.
		package: app package name.
		page: at which page.
		row: at which row.
		columnSpan: icon item span columns, default is 1.
		type: app or clock, default is app.
        -->
        <application
            backgroundColor="20A2DE"
            class=""
            col="1"
            columnSpan="2"
            package="com.moji.mjweather"
            page="3"
            row="1"
            type="app" />
    </applications>
    <!--
    Define favorite bar.
	cols: How many columns.
    -->
    <favoritebar cols="3" >

        <!--
		class: app class name, can be empty.
		col: at which column
		package: app package name
        -->
        <application
            class="com.example.testEditText.FirstActivity"
            col="3"
            package="com.example.testEditText" />
        <application
            class=""
            col="2"
            package="cn.kuwo.player" />
        <application
            class=""
            col="1"
            package="com.sohu.inputmethod.sogou" />
    </favoritebar>
    <!-- Define hidden applications. -->
    <hiddenapplications>

        <!--
		package: app package name, if only set this, all the entrance of this package will be hide; if only one entrance, just set package name.
		class: app class name, can be empty.
        -->
        <application
            class=""
            package="com.example.realfullscreensample" />
    </hiddenapplications>

</desktop>

update process

Create the folder:

1) \wizarpos\homesettings\homesettings_XXX\, XXX default is wizarpos, please check the kernel version, it includes splash=XXX, this values is same with the splash value.

2) Or \cloudpos\, this is only supported in PosSysAssistant app version > 2.11.8

Copy the poshomesettings.xml to this folder, then update, the process is like install APK or update firmware.

Update from wizarview

Upload poshomesettings.xml to WizarView:

  1. Add a new parameter file name in WizarView.
    1. Click Applications>Application.
    2. Click + icon in the left bottom of the tool box, popup an edit window.
    3. In the edit window, write the name and other input area, then select type param.
    4. Input the package name(com.wizarpos.android.home) and parameter file name(poshomesettings.xml).
    5. Click Commit button.
  2. Click Search button in the Applications>Application page.
  3. Select the parameter file name in the list.
  4. Select config icon in the right bottom of the tool box.
  5. Select Upload button in the popup window.
  6. Choose the upload file, then click Commit button.

The parameter file has configured in WizarView now.

The pushing process is as same as pushing an app. Please follow Wizarview user manual to configure it and push it to a terminal