189 lines
7.0 KiB
XML
189 lines
7.0 KiB
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="com.hty.browser.MainActivity" >
|
|
|
|
<FrameLayout
|
|
android:id="@+id/video"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#000000"
|
|
android:visibility="gone" >
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/LinearLayout1"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:background="#ffffff"
|
|
android:orientation="vertical" >
|
|
|
|
<LinearLayout
|
|
android:id="@+id/LinearLayout2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/border"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/imageButton_back"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:src="@android:drawable/ic_media_rew"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imageButton_forward"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:src="@android:drawable/ic_media_ff"/>
|
|
|
|
<Button
|
|
android:id="@+id/button_page"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_marginRight="2dp"
|
|
android:background="@drawable/border"
|
|
android:text="0"
|
|
android:textColor="#808080"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imageButton_info"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:background="@null"
|
|
android:scaleType="fitCenter"
|
|
android:src="@android:drawable/ic_menu_info_details"/>
|
|
|
|
<Button
|
|
android:id="@+id/button_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="#ffffff"
|
|
android:ellipsize="marquee"
|
|
android:singleLine="true"/>
|
|
|
|
<EditText
|
|
android:id="@+id/EditText1"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@null"
|
|
android:hint="输入网址"
|
|
android:imeOptions="actionGo"
|
|
android:inputType="textUri"
|
|
android:padding="2dp"
|
|
android:singleLine="true"
|
|
android:textSize="20sp"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imageButton_go"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:src="@android:drawable/ic_media_play"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imageButton_menu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:src="@android:drawable/ic_menu_sort_by_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar1"
|
|
style="@android:style/Widget.Holo.ProgressBar.Horizontal"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_alignTop="@+id/WebView1"
|
|
android:progressDrawable="@drawable/progressbar_color"/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/webViewLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<WebView
|
|
android:id="@+id/WebView1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView1"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:src="@drawable/play"
|
|
android:visibility="gone" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/searchBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@+id/LinearLayout1"
|
|
android:background="@drawable/border"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<EditText
|
|
android:id="@+id/editText_search"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@null"
|
|
android:hint="查找"
|
|
android:imeOptions="actionSearch"
|
|
android:inputType="textUri"
|
|
android:padding="2dp"
|
|
android:singleLine="true"
|
|
android:textSize="20sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/textView_searchCount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="0/0"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imageButton_searchPrev"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:src="@android:drawable/ic_media_rew"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imageButton_searchNext"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:src="@android:drawable/ic_media_ff"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imageButton_searchClose"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:src="@android:drawable/ic_menu_close_clear_cancel"/>
|
|
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
</RelativeLayout>
|