<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
android:padding="8dp"
tools:context=".MainActivity">
<!-- Górny pasek: Pole adresu URL + Przycisk Idź -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="6dp">
<EditText
android:id="@+id/editText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="Wpisz adres URL..."
android:inputType="textUri"
android:focusable="true" />
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Idź" />
</LinearLayout>
<!-- Drugi pasek: Przyciski nawigacji oraz Kod źródłowy -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:layout_marginBottom="6dp">
<Button
android:id="@+id/backButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="false"
android:text="Wstecz" />
<Button
android:id="@+id/forwardButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="false"
android:text="Dalej"
android:layout_marginStart="4dp" />
<Button
android:id="@+id/sourceButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Kod źródłowy"
android:layout_marginStart="4dp" />
</LinearLayout>
<!-- Okno przeglądarki zajmujące całą resztę ekranu -->
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="8dp"
tools:context=".MainActivity">
<!-- Górny pasek: Pole adresu URL + Przycisk Idź -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="6dp">
<EditText
android:id="@+id/editText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="Wpisz adres URL..."
android:inputType="textUri"
android:focusable="true" />
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Idź" />
</LinearLayout>
<!-- Drugi pasek: Przyciski nawigacji oraz Kod źródłowy -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:layout_marginBottom="6dp">
<Button
android:id="@+id/backButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="false"
android:text="Wstecz" />
<Button
android:id="@+id/forwardButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="false"
android:text="Dalej"
android:layout_marginStart="4dp" />
<Button
android:id="@+id/sourceButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Kod źródłowy"
android:layout_marginStart="4dp" />
</LinearLayout>
<!-- Okno przeglądarki zajmujące całą resztę ekranu -->
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
No comments:
Post a Comment