Skip to content

Instantly share code, notes, and snippets.

@Younes-Charfaoui
Created May 1, 2018 14:46
Show Gist options
  • Save Younes-Charfaoui/06dbf0bff449682ef406550dd0c3dfcb to your computer and use it in GitHub Desktop.
Save Younes-Charfaoui/06dbf0bff449682ef406550dd0c3dfcb to your computer and use it in GitHub Desktop.
The List view of Adda
package com.example.helloworld;
import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ScrollView main = new ScrollView(this);
LinearLayout mainLinear = new LinearLayout(this);
LinearLayout mOne = new LinearLayout(this);
main.addView(mainLinear);
setContentView(main);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment