Example usage for android.widget ProgressBar setScaleY

List of usage examples for android.widget ProgressBar setScaleY

Introduction

In this page you can find the example usage for android.widget ProgressBar setScaleY.

Prototype

public void setScaleY(float scaleY) 

Source Link

Document

Sets the amount that the view is scaled in Y around the pivot point, as a proportion of the view's unscaled width.

Usage

From source file:app.android.example.com.commontcents.ListContentFragment.java

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View recyclerView = inflater.inflate(R.layout.item_list, container, false);

    final ProgressBar progressBar = (ProgressBar) recyclerView.findViewById(R.id.progress_bar);
    progressBar.setScaleY(3f);

    final Handler mHandler = new Handler();

    mHandler.post(new Runnable() {
        public void run() {
            progressBar.incrementProgressBy(10 * poolCounter.getCount());
            progressBar.setProgress(progressBar.getProgress());
        }//from   w  w w. j a  v a2 s  .  co  m
    });

    return recyclerView;
}