package com.leo.automatically_deploy_android_applications.core.decor;

import android.view.View;

import org.xmlpull.v1.XmlPullParser;

/**
 * Created by littleming on 15/7/2.
 */
public abstract class Converter {

    /*列表布局*/
    abstract View toList(View view, XmlPullParser parser);

    /*卡片布局*/
    abstract View toCardView(View view, XmlPullParser parser);

    /*滑动布局*/
    abstract View toViewPager(View view, XmlPullParser parser);

    /*普通布局*/
    abstract View toLayout(View view, XmlPullParser parser);

    /*线性布局*/
    abstract View toLinearLayout(View view, XmlPullParser parser);

    /*相对布局*/
    abstract View toRelativeLayout(View view, XmlPullParser parser);

    /*控件转化*/
    abstract View toWidget(View view, XmlPullParser parser);

    /*按钮*/
    abstract View toButton(View view, XmlPullParser parser);

    /*文本*/
    abstract View toTextView(View view, XmlPullParser parser);

    /*图片*/
    abstract View toImageView(View view, XmlPullParser parser);

    /*图片按钮*/
    abstract View toImageButton(View view, XmlPullParser parser);
}

@@ -218,12 +218,12 @@
   /*
-%E5%88%97%E8%A1%A8%E5%B8%83%E5%B1%80
+list
 */%0A 
@@ -291,12 +291,12 @@
   /*
-%E5%8D%A1%E7%89%87%E5%B8%83%E5%B1%80
+card
 */%0A 
@@ -368,12 +368,17 @@
   /*
-%E6%BB%91%E5%8A%A8%E5%B8%83%E5%B1%80
+viewpager
 */%0A 
@@ -451,12 +451,14 @@
   /*
-%E6%99%AE%E9%80%9A%E5%B8%83%E5%B1%80
+layout
 */%0A 
@@ -528,12 +528,20 @@
   /*
-%E7%BA%BF%E6%80%A7%E5%B8%83%E5%B1%80
+linearLayout
 */%0A 
@@ -617,12 +617,22 @@
   /*
-%E7%9B%B8%E5%AF%B9%E5%B8%83%E5%B1%80
+relativeLayout
 */%0A 
@@ -710,12 +710,14 @@
   /*
-%E6%8E%A7%E4%BB%B6%E8%BD%AC%E5%8C%96
+widget
 */%0A 
@@ -783,18 +783,22 @@
 %0A%0A    /*
-%E6%8C%89%E9%92%AE
+button
 */%0A    a
@@ -864,10 +864,16 @@
   /*
-%E6%96%87%E6%9C%AC
+textView
 */%0A 
@@ -941,18 +941,21 @@
 %0A%0A    /*
-%E5%9B%BE%E7%89%87
+image
 */%0A    a
@@ -1024,12 +1024,19 @@
   /*
-%E5%9B%BE%E7%89%87%E6%8C%89%E9%92%AE
+imageButton
 */%0A 

modify tip