Search in sources :

Example 1 with LVLoadingView

use of com.taobao.luaview.view.LVLoadingView in project LuaViewSDK by alibaba.

the class CustomLoading method initPanel.

@Override
public void initPanel() {
    final View lvLoadingView = new ProgressBar(getContext(), null, android.R.attr.progressBarStyleSmallInverse);
    LayoutParams relativeLayout = LuaViewUtil.createRelativeLayoutParamsWW();
    relativeLayout.addRule(RelativeLayout.CENTER_IN_PARENT);
    lvLoadingView.setVisibility(View.VISIBLE);
    addView(lvLoadingView, relativeLayout);
}
Also used : LVLoadingView(com.taobao.luaview.view.LVLoadingView) View(android.view.View) ProgressBar(android.widget.ProgressBar)

Aggregations

View (android.view.View)1 ProgressBar (android.widget.ProgressBar)1 LVLoadingView (com.taobao.luaview.view.LVLoadingView)1