mirror of https://github.com/LeOS-GSI/LeOS-Genesis
198 lines
8.2 KiB
XML
198 lines
8.2 KiB
XML
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:background="@color/white"
|
|
android:orientation="vertical"
|
|
android:layout_height="match_parent">
|
|
|
|
<!-- Title Header -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:background="@color/white"
|
|
android:layout_marginBottom="0dp"
|
|
android:orientation="horizontal"
|
|
android:layout_height="52dp">
|
|
<ImageButton
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginBottom="0dp"
|
|
android:layout_marginTop="12dp"
|
|
android:id="@+id/home"
|
|
android:onClick="onBackPressed"
|
|
android:scaleType="fitCenter"
|
|
android:tint="@color/black"
|
|
android:src="@drawable/back_arrow"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/todo"/>
|
|
<TextView
|
|
android:textColor="@color/text_color_v1"
|
|
android:textSize="19sp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="40"
|
|
android:layout_marginTop="12dp"
|
|
android:textStyle="bold"
|
|
android:layout_marginStart="30dp"
|
|
android:text="@string/settings_header"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:background="@color/white_dark" />
|
|
|
|
<!-- Title Header -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:background="@color/white"
|
|
android:layout_marginBottom="0dp"
|
|
android:orientation="horizontal"
|
|
android:layout_height="65dp">
|
|
<TextView
|
|
android:textColor="@color/cursor_blue"
|
|
android:textSize="17.5sp"
|
|
android:layout_width="0dp"
|
|
android:textStyle="bold"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="40"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginStart="20dp"
|
|
android:text="@string/basic_settings"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<!-- Title Search Engine -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:background="@color/white"
|
|
android:layout_marginTop="7dp"
|
|
android:orientation="horizontal"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:textSize="16sp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="40"
|
|
android:layout_marginStart="20dp"
|
|
android:text="@string/settings_search_engine"
|
|
/>
|
|
<Spinner
|
|
android:id="@+id/search_manager"
|
|
android:textSize="12sp"
|
|
android:layout_width="150dp"
|
|
android:layout_height="40dp"
|
|
android:paddingRight="30dp"
|
|
android:paddingLeft="30dp"
|
|
android:stateListAnimator="@xml/spinner_style_animate"
|
|
android:background="@xml/spinner_style_background"
|
|
android:drawSelectorOnTop="true"
|
|
android:entries="@array/search_engines"
|
|
android:layout_marginTop="1dp"
|
|
|
|
style="@style/Widget.AppCompat.DropDownItem.Spinner"
|
|
android:dropDownWidth="200dp"
|
|
android:popupBackground="@android:color/white"
|
|
android:overlapAnchor="false"
|
|
android:popupTheme="@style/AppTheme.PopupOverlay"
|
|
android:popupElevation="3dp"
|
|
|
|
/>
|
|
<ImageView android:layout_width="15dp" android:layout_height="15dp"
|
|
android:layout_marginEnd="35dp"
|
|
android:layout_marginStart="-26dp"
|
|
android:layout_marginTop="12dp"
|
|
android:src="@drawable/dropdown_arrow"
|
|
android:contentDescription="@string/todo"/>
|
|
</LinearLayout>
|
|
|
|
<!-- Title Enable Javascript -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:background="@color/white"
|
|
android:layout_marginTop="20dp"
|
|
android:orientation="horizontal"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:textSize="16sp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="40"
|
|
android:layout_marginStart="20dp"
|
|
android:text="@string/settings_javascript"
|
|
/>
|
|
<Spinner
|
|
android:id="@+id/javascript_manager"
|
|
android:textSize="12sp"
|
|
android:layout_width="150dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="1dp"
|
|
android:paddingRight="30dp"
|
|
android:paddingLeft="30dp"
|
|
android:stateListAnimator="@xml/spinner_style_animate"
|
|
android:background="@xml/spinner_style_background"
|
|
android:drawSelectorOnTop="true"
|
|
android:entries="@array/boolean_option"
|
|
android:popupTheme="@style/AppTheme.PopupOverlay"
|
|
|
|
style="@style/Widget.AppCompat.DropDownItem.Spinner"
|
|
android:dropDownWidth="200dp"
|
|
android:popupBackground="@android:color/white"
|
|
android:overlapAnchor="false"
|
|
android:popupElevation="3dp"
|
|
/>
|
|
<ImageView android:layout_width="15dp" android:layout_height="15dp"
|
|
android:layout_marginEnd="35dp"
|
|
android:layout_marginStart="-26dp"
|
|
android:layout_marginTop="12dp"
|
|
android:src="@drawable/dropdown_arrow"
|
|
android:contentDescription="@string/todo"/>
|
|
</LinearLayout>
|
|
|
|
<!-- Title Auto Clear -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:background="@color/white"
|
|
android:layout_marginTop="20dp"
|
|
android:orientation="horizontal"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:textSize="16sp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="40"
|
|
android:layout_marginStart="20dp"
|
|
android:text="@string/settings_clear_history"
|
|
/>
|
|
<Spinner
|
|
android:id="@+id/history_manager"
|
|
android:textSize="12sp"
|
|
android:layout_width="150dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="1dp"
|
|
android:paddingRight="30dp"
|
|
android:paddingLeft="20dp"
|
|
android:stateListAnimator="@xml/spinner_style_animate"
|
|
android:background="@xml/spinner_style_background"
|
|
android:drawSelectorOnTop="true"
|
|
android:entries="@array/boolean_option"
|
|
android:popupTheme="@style/AppTheme.PopupOverlay"
|
|
|
|
style="@style/Widget.AppCompat.DropDownItem.Spinner"
|
|
android:dropDownWidth="200dp"
|
|
android:popupBackground="@android:color/white"
|
|
android:overlapAnchor="false"
|
|
android:popupElevation="3dp"
|
|
/>
|
|
<ImageView android:layout_width="15dp" android:layout_height="15dp"
|
|
android:layout_marginEnd="35dp"
|
|
android:layout_marginStart="-26dp"
|
|
android:layout_marginTop="12dp"
|
|
android:src="@drawable/dropdown_arrow"
|
|
android:contentDescription="@string/todo"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|