0
Progressibar Code in XML
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent">
<ProgressBar
android:layout_height="11px"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="300px"
android:id="@+id/load"
android:layout_centerInParent="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="52px"/>
</RelativeLayout>
Code of Progressbar in Java
package game.app;
import android.app.*;
import android.os.*;
public class LoadActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.loadlayout);
}
}
Activity that Progressbar will load
package game.app;
import android.app.Activity;
import android.os.Bundle;
import android.widget.*;
import android.view.*;
import android.view.View.*;
import android.content.*;
public class MenuActivity extends Activity {
private Button btiniciar;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.menulayout);
btiniciar = (Button) findViewById(R.id.btiniciar);
btiniciar.setOnClickListener(new View.OnClickListener(){
public void onClick(View v) {
@Override
Intent it = new Intent(MenuActivity.this,LoadActivity.class);
startActivity(it);
finish();
}
});
Button btconfig = (Button) findViewById(R.id.btconfig);
btconfig.setOnClickListener(new View.OnClickListener(){
public void onClick(View argO) {
}
});
}
}
For me it was not clear what you want to do. Just pasted the codes here
– LMaker