Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_main)
- }
- > <?xml version="1.0" encoding="utf-8"?> <LinearLayout
- > android:layout_width="match_parent"
- > android:layout_height="match_parent"
- > android:orientation="vertical"
- > xmlns:android="http://schemas.android.com/apk/res/android"> <ImageView
- > android:layout_width="80dp"
- > android:layout_height="80dp"
- > android:layout_gravity="center"
- > android:src="@drawable/tony_stark_small"
- > android:layout_marginBottom="8dp"
- > android:contentDescription="App"/> <TextView
- > android:layout_width="wrap_content"
- > android:layout_height="wrap_content"
- > android:text="Tony Stark"
- > android:layout_gravity="center"
- > android:textStyle="bold"
- > android:textSize="24sp"
- > android:textColor="#222222"/> </LinearLayout>
Add Comment
Please, Sign In to add comment