113 lines
4.4 KiB
XML
113 lines
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Twidere - Twitter client for Android
|
|
~
|
|
~ Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/api_editor_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/label_api_url_format"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:singleLine="true"
|
|
android:text="@string/api_url_format"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
<org.mariotaku.twidere.view.ActionIconView
|
|
android:id="@+id/api_url_format_help"
|
|
android:layout_width="@dimen/element_size_small"
|
|
android:layout_height="@dimen/element_size_small"
|
|
android:layout_weight="0"
|
|
android:background="?selectableItemBackground"
|
|
android:src="@drawable/ic_action_info" />
|
|
</LinearLayout>
|
|
|
|
<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" />
|
|
|
|
<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>
|
|
|
|
<include layout="@layout/layout_api_editor_advanced_fields" />
|
|
</LinearLayout>
|
|
</ScrollView> |