improved theme
This commit is contained in:
parent
3601d4ec9b
commit
1e55a84e42
|
@ -376,6 +376,7 @@ class MediaViewerActivity : BaseActivity(), IMediaViewerActivity, MediaSwipeClos
|
|||
override fun onFitSystemWindows(insets: Rect) {
|
||||
super.onFitSystemWindows(insets)
|
||||
val adapter = viewPager.adapter
|
||||
if (adapter.count == 0) return
|
||||
val fragment = adapter.instantiateItem(viewPager, viewPager.currentItem)
|
||||
if (fragment is IBaseFragment<*>) {
|
||||
fragment.requestFitSystemWindows()
|
||||
|
|
|
@ -44,7 +44,8 @@
|
|||
android:hint="@string/username"
|
||||
android:inputType="textEmailAddress"
|
||||
android:maxLines="1"
|
||||
android:typeface="normal" />
|
||||
android:typeface="normal"
|
||||
app:backgroundTint="?colorAccent"/>
|
||||
|
||||
<org.mariotaku.twidere.view.FixedEditText
|
||||
android:id="@+id/editPassword"
|
||||
|
@ -54,7 +55,8 @@
|
|||
android:hint="@string/password"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:typeface="normal" />
|
||||
android:typeface="normal"
|
||||
app:backgroundTint="?colorAccent"/>
|
||||
</LinearLayout>
|
||||
|
||||
<android.support.v7.widget.AppCompatButton
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
<?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/>.
|
||||
-->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<org.mariotaku.twidere.view.FixedEditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:inputType="text"
|
||||
android:minLines="10"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
|
@ -37,7 +38,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:hint="@string/host_mapping_host"
|
||||
android:inputType="text|textUri"
|
||||
android:maxLines="1"/>
|
||||
android:maxLines="1"
|
||||
app:backgroundTint="?colorAccent"/>
|
||||
|
||||
<org.mariotaku.twidere.view.FixedEditText
|
||||
android:id="@+id/address"
|
||||
|
@ -46,6 +48,7 @@
|
|||
android:layout_marginTop="16dp"
|
||||
android:hint="@string/host_mapping_address"
|
||||
android:inputType="text|textUri"
|
||||
android:maxLines="1"/>
|
||||
android:maxLines="1"
|
||||
app:backgroundTint="?colorAccent"/>
|
||||
|
||||
</LinearLayout>
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
@ -68,6 +69,7 @@
|
|||
android:ems="10"
|
||||
android:inputType="textUri"
|
||||
android:maxLines="1"
|
||||
app:backgroundTint="?colorAccent"
|
||||
tools:text="https://api.twitter.com/"/>
|
||||
|
||||
<org.mariotaku.twidere.view.FixedTextView
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
@ -10,6 +11,6 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="text"
|
||||
/>
|
||||
app:backgroundTint="?colorAccent"/>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -12,7 +13,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:inputType="text|textPersonName"
|
||||
android:maxLines="1"
|
||||
android:textColor="?colorAccent"
|
||||
app:backgroundTint="?colorAccent"
|
||||
tools:text="Nickname"/>
|
||||
|
||||
</FrameLayout>
|
|
@ -17,7 +17,9 @@
|
|||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
|
@ -36,7 +38,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/element_spacing_normal"
|
||||
android:textAppearance="?android:textAppearanceMedium"
|
||||
android:typeface="monospace">
|
||||
android:typeface="monospace"
|
||||
app:backgroundTint="?colorAccent">
|
||||
|
||||
<requestFocus/>
|
||||
</org.mariotaku.twidere.view.FixedEditText>
|
||||
|
|
|
@ -49,7 +49,8 @@
|
|||
android:layout_marginLeft="@dimen/element_spacing_normal"
|
||||
android:layout_marginRight="@dimen/element_spacing_normal"
|
||||
android:gravity="center_vertical"
|
||||
android:inputType="textPersonName|textMultiLine">
|
||||
android:inputType="textPersonName|textMultiLine"
|
||||
app:backgroundTint="?android:colorForeground">
|
||||
|
||||
<requestFocus/>
|
||||
</org.mariotaku.twidere.view.FixedEditText>
|
||||
|
|
Loading…
Reference in New Issue