mirror of
http://gitea.winboll.cc/Studio/WinBoLL.git
synced 2026-07-01 04:45:47 +08:00
This commit is contained in:
96
winboll/src/main/res/layout/fragment_browser.xml
Normal file
96
winboll/src/main/res/layout/fragment_browser.xml
Normal file
@@ -0,0 +1,96 @@
|
||||
<?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>
|
||||
|
||||
Reference in New Issue
Block a user