mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2025-12-30 16:33:33 +01:00
Huge clean-up. Separation between themes and style. Preparatory work for theme inheritance and alternative themes made by derivation. Problem: due to a pre-lollipop bug, I still have to remove some color indirections through attributes, as they are not preperly resolved.
138 lines
5.3 KiB
XML
138 lines
5.3 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="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical" >
|
|
|
|
<TextView
|
|
android:id="@+id/bulkselection_itemname"
|
|
style="@style/titleWithIcon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:background="?attr/ui_theme_richframe_bitmap"
|
|
android:drawableLeft="@drawable/equip_weapon"
|
|
android:text="@string/inventory_info" />
|
|
|
|
<ScrollView
|
|
style="@style/AndorsTrail_Style_StdFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" >
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dialog_margin" >
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="horizontal" >
|
|
|
|
<TextView
|
|
android:id="@+id/bulkselection_action_type"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/inventory_drop" />
|
|
|
|
<EditText
|
|
android:id="@+id/bulkselection_amount_taken"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"
|
|
android:singleLine="true"
|
|
android:text="1" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="/" />
|
|
|
|
<TextView
|
|
android:id="@+id/bulkselection_amount_available"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="250" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
|
|
<Button
|
|
android:id="@+id/bulkselection_decrement_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="20dp"
|
|
android:paddingRight="20dp"
|
|
android:text="-1" />
|
|
|
|
<SeekBar
|
|
android:id="@+id/bulkselection_slider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1" />
|
|
|
|
<Button
|
|
android:id="@+id/bulkselection_increment_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="20dp"
|
|
android:paddingRight="20dp"
|
|
android:text="+1" />
|
|
|
|
<Button
|
|
android:id="@+id/bulkselection_select_all_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="20dp"
|
|
android:paddingRight="20dp"
|
|
android:text="@string/bulkselection_select_all" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/bulkselection_summary_totalgold"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="10dp"
|
|
android:text="@string/bulkselection_totalcost_buy" />
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<!-- Workaround http://code.google.com/p/andors-trail/issues/detail?id=242 -->
|
|
|
|
<ListView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/transparent" />
|
|
|
|
<LinearLayout
|
|
style="@style/AndorsTrail_Style_StdFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" >
|
|
|
|
<Button
|
|
android:id="@+id/bulkselection_cancel_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@android:string/cancel" />
|
|
|
|
<Button
|
|
android:id="@+id/bulkselection_finalize_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/inventory_drop" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |