Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/rootLayout"
>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
Button b = new Button(this);
b.setText(myClass.getTitle());
b.setTextColor(0xFFFFFFFF);
b.setX(buttonX);
b.setY(buttonY);
b.setWidth(buttonWidth);
b.setHeight(buttonHeight);
conLayout.addView(b);