1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-12 02:10:32 +00:00

Fixed 2. Use CardView to reprecent each tab.

This commit is contained in:
Somethingweirdhere 2018-06-16 11:55:57 +02:00
parent a84bd1a97e
commit ab2242e49c
2 changed files with 5 additions and 3 deletions

View File

@ -96,4 +96,5 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
debugImplementation "com.facebook.stetho:stetho-okhttp3:$okHttpLibVersion"
implementation 'com.android.support.constraint:constraint-layout:1.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
}

View File

@ -1,21 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1dp"
android:orientation="horizontal">
<TextView
android:id="@+id/tabName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:paddingLeft="3dp"
android:paddingStart="3dp"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textSize="24sp" />
</RelativeLayout>
</android.support.v7.widget.CardView>