[Android Studio] SynGreis:
trying to make the progress bar be an actual progress bar. i dont want the spinning circle loading graphic. im looking for a bar that would load and go to the right while loading.

here is some code.

package com.example.syn.testing;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.widget.ProgressBar;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setprogressbar();
}
public void setprogressbar(){
ProgressBar pb = (ProgressBar) findViewById(R.id.pbloading);
for(int x = 1; x <= pb.getMax(); x++){
pb.setProgress(x);
}
}
public void second_page(View view)
{
Intent intent = new Intent(MainActivity.this, SecondActivity.class);
startActivity(intent);
}
public void gotobattery(View view)
{
Intent intent = new Intent(MainActivity.this, BatteryActivity.class);
startActivity(intent);
}
public void gotoText(View view){
Intent intent = new Intent(MainActivity.this, Text.class);
startActivity(intent);
}
}

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.syn.testing.MainActivity"
android:background="#000000">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:id="@+id/textView" />

<TextClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textClock"
android:layout_alignTop="@+id/textView"
android:background="#393939"
android:textColor="#00ff00"
android:layout_alignParentEnd="true" />

<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button"
android:id="@+id/button"
android:onClick="second_page"
android:layout_centerVertical="true"
android:layout_alignParentStart="true" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/batbtn"
android:id="@+id/button3"
android:onClick="gotobattery"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="71dp" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Button"
android:id="@+id/button6"
android:onClick="gotoText"
android:layout_above="@+id/button"
android:layout_alignEnd="@+id/button3"
android:layout_alignParentStart="true" />

<ProgressBar
style="?android:attr/progressBarStyleSmall"
android:layout_width="400px"
android:layout_height="wrap_content"
android:id="@+id/pbloading"
android:layout_below="@+id/textView"
android:layout_marginTop="28dp"
android:max="100"/>

</RelativeLayout>