Skip to content

hhhaiai/CL

Repository files navigation

CL

custom layout

组件和用法

自定义相对页面

  • CRelativeLayout
public class MainActivity extends Activity {
    private static final String TAG = "MainActivity";
    private CRelativeLayout mLayout = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mLayout = new CRelativeLayout(this, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                switch (v.getId()) {
                    case 1:
                        Log.i(TAG, "click one");
                        break;
                    default:
                        break;
                }
            }
        }, 4, 3);
        setContentView(mLayout);
    }
}

About

custom layout

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages