mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
9ddfa6499c
Look like an Android app from 2013. Remove the redundant Gingerbread button styles from buttons to automatically use the Holo theme on phones that don't run a 3+ year old operating system. Create a new style for horizontal progress bars that uses the Holo progress bar style on v11 and above.
122 lines
5.6 KiB
XML
122 lines
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:fillViewport="true"
|
|
android:background="@drawable/background_pattern_repeat">
|
|
|
|
<FrameLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:gravity="center" >
|
|
|
|
<LinearLayout android:id="@+id/prompt_layout"
|
|
android:paddingRight="16dip"
|
|
android:paddingLeft="16dip"
|
|
android:paddingTop="10dip"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
<TextView style="@style/Registration.Description"
|
|
android:layout_width="fill_parent"
|
|
android:layout_marginBottom="16dip"
|
|
android:text="@string/database_migration_activity__would_you_like_to_import_your_existing_text_messages"/>
|
|
|
|
<ImageView android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/import_database"/>
|
|
|
|
<TextView style="@style/Registration.Description"
|
|
android:layout_width="fill_parent"
|
|
android:layout_marginBottom="16dip"
|
|
android:layout_marginTop="16dip"
|
|
android:text="@string/database_migration_activity__the_default_system_database_will_not_be_modified"/>
|
|
|
|
<LinearLayout android:orientation="horizontal"
|
|
android:gravity="center"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dip">
|
|
|
|
<Button android:id="@+id/skip_button"
|
|
android:text="@string/database_migration_activity__skip"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="7dip"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
|
|
|
<Button android:id="@+id/import_button"
|
|
android:text="@string/database_migration_activity__import"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:id="@+id/progress_layout"
|
|
android:paddingRight="16dip"
|
|
android:paddingLeft="16dip"
|
|
android:paddingTop="10dip"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:visibility="visible"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/import_database"/>
|
|
|
|
|
|
<TextView style="@style/Registration.Description"
|
|
android:layout_width="fill_parent"
|
|
android:layout_marginTop="34dip"
|
|
android:layout_marginBottom="16dip"
|
|
android:text="@string/database_migration_activity__this_could_take_a_moment_please_be_patient"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="15dip"
|
|
android:layout_weight="1.0" >
|
|
|
|
<TextView
|
|
android:id="@+id/import_status"
|
|
style="@style/Registration.Constant"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:text="0/100"
|
|
android:textSize="12.0sp" />
|
|
|
|
<TextView
|
|
style="@style/Registration.Constant"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:text="@string/database_migration_activity__importing"
|
|
android:textAllCaps="true"
|
|
android:textSize="12.0sp"
|
|
android:textStyle="normal" />
|
|
</RelativeLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/import_progress"
|
|
style="@style/Widget.ProgressBar.Horizontal"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="14.0dip"
|
|
android:layout_marginTop="2.0dip" />
|
|
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
</ScrollView>
|