0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 20:03:05 +02:00

NF: extract progress_bar_layout to file

This commit is contained in:
Tarekk Mohamed Abdalla 2021-04-20 16:51:18 +02:00 committed by Mike Hardy
parent 6d68424cd4
commit 9014ab35b3
2 changed files with 35 additions and 34 deletions

View File

@ -1,7 +1,6 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/MainLayoutInTranslationActivity"
@ -9,37 +8,6 @@
android:layout_height="match_parent"
android:orientation="vertical" />
<LinearLayout
android:id="@+id/progress_bar_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/progress_bar_layout_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:textColor="?android:textColorPrimary"
android:fontFamily="sans-serif-medium"
android:paddingTop="4dp"
tools:text="Progress Indicator Title"
/>
<TextView
android:id="@+id/progress_bar_layout_message"
tools:text="Progress Indicator Message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="2dp"
android:textColor="?android:textColorPrimary"
android:textSize="16sp" />
</LinearLayout>
<include layout="@layout/progress_bar_layout"/>
</FrameLayout>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/progress_bar_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/progress_bar_layout_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:textColor="?android:textColorPrimary"
android:fontFamily="sans-serif-medium"
android:paddingTop="4dp"
tools:text="Progress Indicator Title"
/>
<TextView
android:id="@+id/progress_bar_layout_message"
tools:text="Progress Indicator Message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="2dp"
android:textColor="?android:textColorPrimary"
android:textSize="16sp" />
</LinearLayout>