Twidere-App-Android-Twitter.../twidere/src/main/res/layout/api_editor_content.xml

103 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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="vertical"
android:padding="16dp">
<TextView
android:id="@+id/label_api_url_format"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="@string/api_url_format"
android:textAppearance="?android:attr/textAppearanceSmall"/>
<EditText
android:id="@+id/api_url_format"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textUri"
android:singleLine="true"/>
<TextView
android:id="@+id/label_auth_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/auth_type"
android:textAppearance="?android:attr/textAppearanceSmall"/>
<HorizontalScrollView
android:id="@+id/auth_type_scroll"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RadioGroup
android:id="@+id/auth_type"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal">
<RadioButton
android:id="@+id/oauth"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/oauth"/>
<RadioButton
android:id="@+id/basic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/basic"/>
<RadioButton
android:id="@+id/twip_o"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/twip_o"/>
<!-- This auth method is not available for now -->
<RadioButton
android:id="@+id/xauth"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/xauth"/>
</RadioGroup>
</HorizontalScrollView>
<LinearLayout
android:id="@+id/advanced_api_config_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<Button
android:id="@+id/advanced_api_config_label"
style="?android:borderlessButtonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/expander_close_holo"
android:drawablePadding="4dp"
android:gravity="center_vertical"
android:paddingBottom="4dp"
android:paddingTop="4dp"
android:text="@string/advanced"
android:textAppearance="?android:attr/textAppearanceMedium"/>
<include
layout="@layout/api_editor_advanced_fields"
android:visibility="gone"/>
</LinearLayout>
</LinearLayout>
</ScrollView>