Skip to content

Commit

Permalink
barre d'URL mise en haut
Browse files Browse the repository at this point in the history
  • Loading branch information
Celestial04 committed May 25, 2024
1 parent 3e4633d commit d289e8a
Showing 1 changed file with 62 additions and 50 deletions.
112 changes: 62 additions & 50 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,63 @@
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="1dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#4D000000"
android:backgroundTint="#34000000"
android:orientation="horizontal"
tools:visibility="visible">

<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="@dimen/SizeMenu"
android:layout_marginEnd="10dp"
android:contentDescription="@string/forward_button"
app:icon="@drawable/baseline_arrow_circle_right_24"
app:iconGravity="textEnd"
app:iconPadding="0dp"
app:iconSize="@dimen/SizeMenubtn" />

<Button
android:id="@+id/button8"
android:layout_width="wrap_content"
android:layout_height="@dimen/SizeMenu"
android:layout_marginEnd="10dp"
android:contentDescription="@string/refresh_button"
app:icon="@drawable/baseline_refresh_24"
app:iconPadding="0dp"
app:iconSize="@dimen/SizeMenubtn" />

<ImageView
android:id="@+id/SecureImage"
android:layout_width="35dp"
android:layout_height="35dp"
app:srcCompat="@android:drawable/ic_menu_info_details" />

<EditText
android:id="@+id/UrlContent"
android:layout_width="match_parent"
android:layout_height="35dp"
android:fontFamily="sans-serif-black"
android:hapticFeedbackEnabled="true"
android:hint="https://..."
android:imeOptions="actionGo"
android:inputType="textUri"
android:minHeight="48dp"
android:singleLine="true"
android:textSize="14sp" />

</LinearLayout>

<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="95" />
android:layout_weight="95" >

</WebView>

<ScrollView
android:id="@+id/scroll_view"
Expand All @@ -33,51 +85,6 @@
android:layout_height="0dp"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">

<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="@dimen/SizeMenu"
android:layout_marginEnd="10dp"
android:contentDescription="@string/forward_button"
app:icon="@drawable/baseline_arrow_circle_right_24"
app:iconGravity="textEnd"
app:iconPadding="0dp"
app:iconSize="@dimen/SizeMenubtn" />

<Button
android:id="@+id/button8"
android:layout_width="wrap_content"
android:layout_height="@dimen/SizeMenu"
android:layout_marginEnd="10dp"
android:contentDescription="@string/refresh_button"
app:icon="@drawable/baseline_refresh_24"
app:iconPadding="0dp"
app:iconSize="@dimen/SizeMenubtn" />

<ImageView
android:id="@+id/SecureImage"
android:layout_width="35dp"
android:layout_height="35dp"
app:srcCompat="@android:drawable/ic_menu_info_details" />

<EditText
android:id="@+id/UrlContent"
android:layout_width="match_parent"
android:layout_height="35dp"
android:fontFamily="sans-serif-black"
android:hint="https://..."
android:imeOptions="actionGo"
android:inputType="textUri"
android:minHeight="48dp"
android:singleLine="true"
android:textSize="14sp" />
</LinearLayout>

<HorizontalScrollView
android:id="@+id/scroll"
android:layout_width="match_parent"
Expand Down Expand Up @@ -147,29 +154,34 @@
</HorizontalScrollView>
</LinearLayout>
</ScrollView>

<Button
android:id="@+id/topButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Top" />
android:text="Top"
android:visibility="gone" />

<Button
android:id="@+id/bottomButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bottom" />
android:text="Bottom"
android:visibility="gone" />

<Button
android:id="@+id/leftButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Left" />
android:text="Left"
android:visibility="gone" />

<Button
android:id="@+id/rightButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Right" />
android:text="Right"
android:visibility="gone" />

<ProgressBar
android:id="@+id/progressBar"
Expand Down

0 comments on commit d289e8a

Please sign in to comment.