mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 23:32:59 +00:00 
			
		
		
		
	Fixed 2. Use CardView to reprecent each tab.
This commit is contained in:
		 Somethingweirdhere
					Somethingweirdhere
				
			
				
					committed by
					
						 Christian Schabesberger
						Christian Schabesberger
					
				
			
			
				
	
			
			
			 Christian Schabesberger
						Christian Schabesberger
					
				
			
						parent
						
							890b3e13c9
						
					
				
				
					commit
					27f509c8e0
				
			| @@ -93,7 +93,9 @@ dependencies { | |||||||
|     debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryLibVersion" |     debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryLibVersion" | ||||||
|     releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryLibVersion" |     releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryLibVersion" | ||||||
|  |  | ||||||
|  |  | ||||||
|     implementation "com.squareup.okhttp3:okhttp:$okHttpLibVersion" |     implementation "com.squareup.okhttp3:okhttp:$okHttpLibVersion" | ||||||
|     debugImplementation "com.facebook.stetho:stetho-okhttp3:$stethoLibVersion" |     debugImplementation "com.facebook.stetho:stetho-okhttp3:$stethoLibVersion" | ||||||
|     implementation 'com.android.support.constraint:constraint-layout:1.1.2' |     implementation 'com.android.support.constraint:constraint-layout:1.1.2' | ||||||
|  |     implementation 'com.android.support:cardview-v7:27.1.1' | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,21 +1,22 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?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:id="@+id/layout" | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|  |     android:layout_marginTop="1dp" | ||||||
|     android:orientation="horizontal"> |     android:orientation="horizontal"> | ||||||
|  |  | ||||||
|     <TextView |     <TextView | ||||||
|         android:id="@+id/tabName" |         android:id="@+id/tabName" | ||||||
|         android:layout_width="match_parent" |         android:layout_width="match_parent" | ||||||
|         android:layout_height="wrap_content" |         android:layout_height="wrap_content" | ||||||
|  |         android:layout_alignParentEnd="true" | ||||||
|         android:layout_alignParentLeft="true" |         android:layout_alignParentLeft="true" | ||||||
|         android:layout_alignParentStart="true" |         android:layout_alignParentStart="true" | ||||||
|         android:layout_alignParentEnd="true" |  | ||||||
|         android:layout_centerVertical="true" |         android:layout_centerVertical="true" | ||||||
|         android:paddingLeft="3dp" |         android:paddingLeft="3dp" | ||||||
|         android:paddingStart="3dp" |         android:paddingStart="3dp" | ||||||
|         android:textAppearance="?android:attr/textAppearanceListItem" |         android:textAppearance="?android:attr/textAppearanceListItem" | ||||||
|         android:textSize="24sp" /> |         android:textSize="24sp" /> | ||||||
|  |  | ||||||
| </RelativeLayout> | </android.support.v7.widget.CardView> | ||||||
		Reference in New Issue
	
	Block a user