diff options
author | Arne Schwabe <arne@rfc2549.org> | 2019-11-12 22:58:14 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2019-11-17 10:16:02 +0100 |
commit | cbdaa48705855169827f29014efbaa934d212ccf (patch) | |
tree | 678c3c37bae0578b636bea38691d3eed9bec2f1f /main/src/ui/res/layout | |
parent | 81d7c76b94335e699b2885cd74f3e364eba60cc3 (diff) |
Convert most fragments/activities to androidx
Diffstat (limited to 'main/src/ui/res/layout')
-rw-r--r-- | main/src/ui/res/layout/main_activity.xml | 17 | ||||
-rw-r--r-- | main/src/ui/res/layout/sliding_tab.xml (renamed from main/src/ui/res/layout/padersliding_tab.xml) | 0 | ||||
-rw-r--r-- | main/src/ui/res/layout/tabs.xml | 12 | ||||
-rw-r--r-- | main/src/ui/res/layout/tlsremote.xml | 10 |
4 files changed, 19 insertions, 20 deletions
diff --git a/main/src/ui/res/layout/main_activity.xml b/main/src/ui/res/layout/main_activity.xml index 7b6caf00..d47bacc5 100644 --- a/main/src/ui/res/layout/main_activity.xml +++ b/main/src/ui/res/layout/main_activity.xml @@ -4,15 +4,26 @@ --> <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"> - <include layout="@layout/tabs" /> - <android.support.v4n.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android" + <androidx.viewpager.widget.ViewPager android:id="@+id/pager" android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:layout_height="match_parent"> + + <com.google.android.material.tabs.TabLayout + style="@style/AppTabLayout" + android:id="@+id/tab_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="top" + + /> + + </androidx.viewpager.widget.ViewPager> </LinearLayout> diff --git a/main/src/ui/res/layout/padersliding_tab.xml b/main/src/ui/res/layout/sliding_tab.xml index 07c8daa9..07c8daa9 100644 --- a/main/src/ui/res/layout/padersliding_tab.xml +++ b/main/src/ui/res/layout/sliding_tab.xml diff --git a/main/src/ui/res/layout/tabs.xml b/main/src/ui/res/layout/tabs.xml deleted file mode 100644 index a68c4e42..00000000 --- a/main/src/ui/res/layout/tabs.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?><!-- - ~ Copyright (c) 2012-2016 Arne Schwabe - ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt - --> -<merge> - - <de.blinkt.openvpn.views.SlidingTabLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/sliding_tabs" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> - -</merge>
\ No newline at end of file diff --git a/main/src/ui/res/layout/tlsremote.xml b/main/src/ui/res/layout/tlsremote.xml index 5ebeb051..1e393d6b 100644 --- a/main/src/ui/res/layout/tlsremote.xml +++ b/main/src/ui/res/layout/tlsremote.xml @@ -1,18 +1,18 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- ~ Copyright (c) 2012-2016 Arne Schwabe ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt --> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" + android:layout_height="match_parent" android:padding="@dimen/stdpadding" - android:layout_height="match_parent" > + android:theme="@style/Theme.AppCompat.Dialog.Alert"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:orientation="vertical" > + android:orientation="vertical"> <TextView android:id="@+id/dialogHeader" @@ -40,7 +40,7 @@ android:layout_height="wrap_content" android:layout_marginTop="20dp" android:ems="10" - android:inputType="text" > + android:inputType="text"> <requestFocus /> </EditText> |