Tags » Xml

MouseReleased: an Horror Story (and a panel analysis tool)

Prelude…

Many many versions ago, if you added a PushButton widget “MyButton” to a panel, opened the script editor for the whole panel using the Gedi Edit->Edit Panel Scripts option, and then select the newly added MyButton from the widget list on the top left part of the editor, by default PVSS was creating a header for the “Initialize” event of MyButton. 2,306 more words

Technique

SQLlite with Recycler view

XML Activity Main :->

<Button
    android:id="@+id/setdata"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="SET DATA"/>

  <Button
      android:id="@+id/getdata"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:text="GET DATA"/>

Main Activity :->


public class MainActivity extends AppCompatActivity {
  Button btn1,btn2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btn1=(Button)findViewById(R.id.setdata);
        btn2=(Button)findViewById(R.id.getdata);

        btn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                 Intent intent = new Intent(getApplicationContext(),DataActivity.class);

                 startActivity(intent);
            }
        });
 btn1.setOnClickListener(new View.OnClickListener() {
     @Override
     public void onClick(View view) {
         Intent intent = new Intent(getApplicationContext(),FormActivity.class);

         startActivity(intent);
     }

 });

}



}

… 1,157 more words

Creating Soap Request Message in AL

In this post we will see how to create a Soap Request Message in AL. I have created a set of function which will be helpful when you work with SOAP Web Services. 449 more words

XML DOM

XML基本知识

XML

XML处理指令:

<?xml version= “1.0” encoding= “utf-8” ?>

在XML中,所有的处理指令都以<?开始,以?>结束。XML处理指令要求指定一个version属性,并允许指定可选的standalone和encoding。其中standalone是指是否允许使用外部声明,可设置为yes或no(yes指不使用外部声明);encoding指使用的字符编码格式。

元素和属性

XML元素可以在开始标签中添加属性,提供关于元素的额外信息。属性通常提供不属于数据组成部分的信息,但是对处理这个元素的应用程序却很重要。XML属性必须加引号(单引号双引号均可),若元素值本身有双引号那么必须要使用单引号包围它。

eg: <datasource id=”db_oracle”>…</datasource>

  • 大小写敏感
  • 元素必须要有关闭标签
  • 必须有根元素
  • 元素必须正确嵌套
  • 在 XML 中,空格会被保留

XML将数据组织成为一棵树,DOM 通过解析 XML 文档,为 XML 文档在逻辑上建立一个树模型,树的节点是一个个的对象。这样通过操作这棵树和这些对象就可以完成对 XML 文档的操作,为处理文档的所有方面提供了一个完美的概念性框架。

492 more words
Web

A Java code that reads the excel data sheet and converts into an xml format to be used in ADF projects for internationalization.

This is very useful in scenarios where there is huge amount of data to be translated into different languages and stored in XLF files for use in ADF projects. 258 more words

Java

i tunes API (Michele Jackson)

dependencies :->
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
//retrofit:-
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'

compile 'com.github.bumptech.glide:glide:3.8.0'

XML main Activity:->

<android.support.v7.widget.CardView
    android:id="@+id/getMJ"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        <ImageButton
            android:id="@+id/img_profileMJ"
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:scaleType="fitXY"
            android:src="@drawable/mj"/>

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text=" play list michael Jackson"
            android:textSize="20sp"
            android:textColor="#000000"
            android:textAlignment="center"/>
    </LinearLayout>

</android.support.v7.widget.CardView>

… 1,068 more words
Xml

making a background with merged colors

wright this code in xlm made in drawable.

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape>
            <gradient android:angle="90"
                android:startColor="#D3194B"
                android:endColor="#B6311E"/>
        </shape>
    </item>
</selector>