apkfuckery/com.discord/res/layout/widget_settings_language.xml

21 lines
4.9 KiB
XML
Raw Normal View History

2019-02-04 20:05:16 +00:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView android:background="@color/theme_white" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/settings_option_text_header" android:textColor="@color/theme_grey_2" android:gravity="center_vertical" android:background="@drawable/drawable_bg_settings_header" android:paddingLeft="@dimen/settings_option_padding" android:paddingTop="@dimen/settings_option_padding_header_top" android:paddingRight="@dimen/settings_option_padding" android:paddingBottom="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/language" fontPath="@string/font_whitney_semibold" />
<RelativeLayout android:id="@id/settings_language_current" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/language" android:layout_toLeftOf="@id/settings_language_current_flag" fontPath="@string/font_whitney_medium" />
<ImageView android:id="@id/settings_language_current_flag" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginRight="16.0dip" android:src="@drawable/icon_flag_bg" android:layout_toLeftOf="@id/settings_language_current_text" android:layout_centerVertical="true" android:contentDescription="@string/shared_empty_string" />
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:id="@id/settings_language_current_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/shared_lorum_ipsum_tiny" android:drawableRight="@drawable/icon_carrot" android:drawablePadding="@dimen/settings_option_padding" android:layout_alignParentRight="true" android:drawableEnd="@drawable/icon_carrot" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
<LinearLayout android:orientation="vertical" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="11.0sp" android:textColor="@color/theme_grey_2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/help_us_translate_title" android:textAllCaps="true" fontPath="@string/font_whitney_semibold" />
<com.discord.utilities.app.AppTextView android:textSize="11.0sp" android:textColor="@color/theme_grey_3" android:textColorLink="@color/theme_links" android:autoLink="all" android:id="@id/settings_language_translation_help" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:text="@string/help_us_translate_body" android:lineSpacingMultiplier="1.1" fontPath="@string/font_whitney_medium" />
</LinearLayout>
<TextView android:textSize="@dimen/settings_option_text_header" android:textColor="@color/theme_grey_2" android:gravity="center_vertical" android:background="@drawable/drawable_bg_settings_header" android:paddingLeft="@dimen/settings_option_padding" android:paddingTop="@dimen/settings_option_padding_header_top" android:paddingRight="@dimen/settings_option_padding" android:paddingBottom="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/sync" fontPath="@string/font_whitney_semibold" />
<RelativeLayout android:id="@id/settings_language_sync" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:id="@id/settings_language_sync_toggle" android:background="@drawable/drawable_icon_switch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:ellipsize="end" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/settings_sync" android:singleLine="true" android:layout_toLeftOf="@id/settings_language_sync_toggle" android:layout_centerVertical="true" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
</LinearLayout>
</ScrollView>