mirror of
http://gitea.winboll.cc/Studio/WinBoLL.git
synced 2026-06-30 20:35:48 +08:00
97 lines
3.5 KiB
XML
97 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical">
|
||
|
||
<!-- 顶部地址栏区域(水平布局:输入框+功能按钮) -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_margin="8dp"
|
||
android:orientation="horizontal"
|
||
android:gravity="center_vertical"
|
||
android:background="@drawable/bg_browser_top"
|
||
android:padding="4dp">
|
||
|
||
<!-- 地址输入框 -->
|
||
<EditText
|
||
android:id="@+id/et_url"
|
||
android:layout_width="0dp"
|
||
android:layout_height="48dp"
|
||
android:layout_weight="1"
|
||
android:hint="请输入URL或搜索内容"
|
||
android:paddingHorizontal="12dp"
|
||
android:background="@drawable/bg_edittext"
|
||
android:singleLine="true"
|
||
android:imeOptions="actionGo"
|
||
android:inputType="textUri" /> <!-- 提示输入URL格式 -->
|
||
|
||
<!-- 功能按钮区域(水平排列:加载、刷新、停止、前进、后退) -->
|
||
<LinearLayout
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="match_parent"
|
||
android:orientation="horizontal"
|
||
android:gravity="center_vertical"
|
||
android:paddingHorizontal="4dp">
|
||
|
||
<Button
|
||
android:id="@+id/btn_load"
|
||
android:layout_width="40dp"
|
||
android:layout_height="40dp"
|
||
android:text="加载"
|
||
android:textSize="12sp"
|
||
android:layout_marginHorizontal="2dp"/>
|
||
|
||
<Button
|
||
android:id="@+id/btn_refresh"
|
||
android:layout_width="40dp"
|
||
android:layout_height="40dp"
|
||
android:text="刷新"
|
||
android:textSize="12sp"
|
||
android:layout_marginHorizontal="2dp"/>
|
||
|
||
<Button
|
||
android:id="@+id/btn_stop"
|
||
android:layout_width="40dp"
|
||
android:layout_height="40dp"
|
||
android:text="停止"
|
||
android:textSize="12sp"
|
||
android:layout_marginHorizontal="2dp"/>
|
||
|
||
<Button
|
||
android:id="@+id/btn_forward"
|
||
android:layout_width="40dp"
|
||
android:layout_height="40dp"
|
||
android:text="前进"
|
||
android:textSize="12sp"
|
||
android:layout_marginHorizontal="2dp"/>
|
||
|
||
<Button
|
||
android:id="@+id/btn_back"
|
||
android:layout_width="40dp"
|
||
android:layout_height="40dp"
|
||
android:text="后退"
|
||
android:textSize="12sp"
|
||
android:layout_marginHorizontal="2dp"/>
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
|
||
<!-- 页面加载进度条(位于地址栏下方,WebView上方) -->
|
||
<ProgressBar
|
||
android:id="@+id/progress_bar"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="2dp"
|
||
android:progressDrawable="@drawable/progress_bar_style"
|
||
android:visibility="gone"/>
|
||
|
||
<!-- 自定义WebView(WinBoLLView) -->
|
||
<cc.winboll.studio.winboll.views.WinBoLLView
|
||
android:id="@+id/winboll_webview"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="1"/>
|
||
|
||
</LinearLayout>
|
||
|