Files
andors-trail/AndorsTrail/res/layout/rangebar.xml
2018-03-23 16:48:28 +01:00

62 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/rangebar_label"
android:layout_width="@dimen/rangebar_labelwidth_small"
android:layout_height="wrap_content"
android:textSize="@dimen/statusbar_text"
android:layout_marginRight="3sp"
android:layout_marginLeft="3sp"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="1"
android:textColor="?attr/ui_theme_palette_text_gray_mid_color"
android:shadowColor="#000"
android:ellipsize="marquee"
android:singleLine="true"
android:scrollHorizontally="true"
/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ProgressBar android:id="@+id/rangebar_progress"
style="?android:attr/progressBarStyleHorizontal"
android:progressDrawable="@drawable/ui_progress_health"
android:layout_width="match_parent"
android:layout_height="@dimen/healthbar_height"
android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:layout_marginRight="3sp"
/>
<TextView android:id="@+id/rangebar_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/statusbar_text"
android:layout_centerInParent="true"
android:layout_marginRight="3sp"
android:textColor="?attr/ui_theme_palette_text_gray_light_color"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="1"
android:shadowColor="#222"
android:paddingBottom="2sp"
/>
</RelativeLayout>
</LinearLayout>
</merge>