各类文件定义样式 01

FileListener.properties:
#need to Listener File Number
ListenerFileNum = 3
#Listener File will take time one times
Interval = 5000
#need to be Listener File List
ListenerFile1 =D:\\var\\mqsi\\config\\
ListenerFile2 =D:\\property\\
ListenerFile3 =D:\\property\\enum\\

init.properties:
#This directory is store all interface properties
xpathMapdirectory=D:\\property\\xpath
#format of Timestamp
date_format=yyyy-MM-dd HH:mm:ss.SS
#This is a cycle of thread scance,unit is ms
threadSleep=5000
#stack size
maxLength=50000
#the size of each batch excute sqls.
maxeachBatch=1000
#the endpoint of ESBM for real time alarm
endpoint=http://10.138.21.76:8080/axis2/services/EsbmIntfService?wsdl
rule_file=D:\\property\\rules.xml
#is authorization
AUTHORIZATION=1
USERNAME=500
PASSWORD=500
####################################################
# encrypt algorithm
ENCRYPT_ALGO=MD5

log4j.properties:
#log4j.rootCategory=ERROR, ConApp, FileApp
#log4j.category.xxx.xxx=DEBUG
#log4j.category.com.huawei.boss=DEBUG, ConApp, FileApp
log4j.category.com.huawei=DEBUG, ConApp, FileApp

#######################################################################
# Appenders(ConApp/FileApp)
#######################################################################

# ConApp is set to be a ConsoleAppender.
log4j.appender.ConApp=org.apache.log4j.ConsoleAppender
# ConApp uses PatternLayout.
log4j.appender.ConApp.layout=org.apache.log4j.PatternLayout
# Define Pattern
#log4j.appender.ConApp.layout.ConversionPattern=%d [%t] %-5p %c %m%n

log4j.appender.ConApp.layout.ConversionPattern=%-5p [%m]%n

# FileApp is set to be a FileAppender.
log4j.appender.FileApp=org.apache.log4j.DailyRollingFileAppender
log4j.appender.FileApp.File=D:\\var\\mqsi\\logs\\esb.log
log4j.appender.FileApp.MaxFileSize=10240KB
# Keep one backup file
log4j.appender.FileApp.MaxBackupIndex=10
log4j.appender.FileApp.layout=org.apache.log4j.PatternLayout
log4j.appender.FileApp.layout.ConversionPattern=%d [%t] %-5p %c [%m]%n


Endpoint_URL.properties:
#CBS
CBS_UVSInterface=http://10.137.30.84:37782/services/UVSInterfaceService
CBS_BB4CC=http://10.137.30.84:37782/services/BB4CCInterfaceService
CBS_UVS_Extend=http://10.137.30.84:37782/services/UVSInterface_Extend
CBS_Mgr=http://10.137.30.84:37782/services/CBSInterfaceBusinessMgrService
CBS_AR4CC=http://10.137.30.82:37782/services/AR4CCInterfaceService

enumerate.xml:
<MappingList xmlns="http://ngbss.huawei.com/ENUMMapping">

<AssetStatus>
<TransferAttr>
<OriginallyValue>Active</OriginallyValue>
<TransferValue>B01</TransferValue>
</TransferAttr>
</AssetStatus>
</MappingList>

rules.xml:
<?xml version="1.0" encoding="UTF-8" ?>
- <SyncRulesRequest>
- <RuleContents>
<Rule RuleId="1" RuleContent="sds" />
<Rule RuleId="2" RuleContent="sdsdsds" />
<Rule RuleId="3" RuleContent="sdsdsds" />
<Rule RuleId="5" RuleContent="sdsdsdsd" />
</RuleContents>
</SyncRulesRequest>


esbtable.xml:
<tablelist>
- <esbtable tablename="ESB_BUSINESS_EX">
- <fieldlist>
- <field>
<fieldname>PARTITION_ID</fieldname>
<xpathfield>partition_id</xpathfield>
<datetype>string</datetype>
</field>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这里提供一个简单的例子,演示如何使用样式资源和布局文件创建个性化的登录界面。 首先,创建一个新的 Android 项目并打开 activity_main.xml 文件。在这个文件中,我们将添加一个垂直的 LinearLayout,并在其中添加两个 EditText 和一个 Button。 ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <EditText android:id="@+id/username" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Username" android:textSize="18sp" android:padding="8dp" android:background="@drawable/edittext_style"/> <EditText android:id="@+id/password" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Password" android:textSize="18sp" android:padding="8dp" android:background="@drawable/edittext_style"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Login" android:textSize="18sp" android:padding="8dp" android:background="@drawable/button_style"/> </LinearLayout> ``` 在 EditText 和 Button 中,我们使用了 @drawable/edittext_style 和 @drawable/button_style。这些资源位于 res/drawable 目录中,我们需要在这个目录下创建相应的 XML 文件。 在 edittext_style.xml 文件中,我们定义了一个圆角矩形的背景和一个边框。在 button_style.xml 文件中,我们定义了一个渐变背景和一个圆角矩形的边框。 edittext_style.xml: ``` <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:radius="8dp" /> <stroke android:width="2dp" android:color="@color/black" /> <solid android:color="@color/white" /> </shape> ``` button_style.xml: ``` <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:radius="8dp" /> <gradient android:startColor="@color/orange" android:endColor="@color/yellow" android:type="linear" android:angle="0"/> <stroke android:width="2dp" android:color="@color/black" /> </shape> ``` 最后,我们需要在 colors.xml 文件定义颜色值。 colors.xml: ``` <?xml version="1.0" encoding="utf-8"?> <resources> <color name="black">#000000</color> <color name="white">#FFFFFF</color> <color name="orange">#FFA500</color> <color name="yellow">#FFFF00</color> </resources> ``` 现在,我们已经完成了登录界面的布局和样式。下面是 MainActivity.java 文件的代码: ``` public class MainActivity extends AppCompatActivity { private EditText username; private EditText password; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); username = findViewById(R.id.username); password = findViewById(R.id.password); Button loginButton = findViewById(R.id.login_button); loginButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String usernameText = username.getText().toString(); String passwordText = password.getText().toString(); // TODO: 登录操作 } }); } } ``` 现在,您可以运行应用程序并查看您的个性化登录界面!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值