kzwhkzw

Gradel android x

Aug 20th, 2020 (edited)
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.89 KB | None | 0 0
  1. android {
  2.     compileSdkVersion 28
  3.     buildToolsVersion "30.0.1"
  4.     defaultConfig {
  5.         applicationId "com.app.tesandroidx"
  6.         minSdkVersion 18
  7.         targetSdkVersion 28
  8.         versionCode 1
  9.         versionName "1.0"
  10.         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11.     }
  12.     buildTypes {
  13.         release {
  14.             minifyEnabled false
  15.             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16.         }
  17.     }
  18.     useLibrary 'org.apache.http.legacy'
  19. }
  20.  
  21. dependencies {
  22.     implementation fileTree(dir: 'libs', include: ['*.jar'])
  23.     implementation 'androidx.appcompat:appcompat:1.0.2'
  24.     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  25.     implementation 'com.google.android.gms:play-services-maps:17.0.0'
  26.     testImplementation 'junit:junit:4.12'
  27.     androidTestImplementation 'androidx.test:runner:1.1.1'
  28.     androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  29.  
  30.  
  31.     implementation 'androidx.cardview:cardview:1.0.0'
  32.     implementation 'com.android.support:design:28.0.0'
  33.  
  34.     implementation 'info.vividcode.android.zxing:capture-activity:2.3.0-1.+'
  35.     implementation 'com.journeyapps:zxing-android-embedded:3.1.0@aar'
  36.     implementation 'com.google.zxing:core:3.0.1'
  37.     implementation 'me.dm7.barcodescanner:zxing:1.9'
  38.     implementation 'me.dm7.barcodescanner:zxing:1.8.4'
  39.     implementation "com.android.support:support-v4:28.0.0"
  40. }
  41.  
  42. =================If you make card View====
  43. change to in layout: <br>
  44.  
  45. androidx.cardview.widget.CardView
  46.  
  47. <androidx.cardview.widget.CardView
  48.             android:foreground="?android:attr/selectableItemBackground"
  49.             android:clickable="true"
  50.             android:id="@+id/mapsCard"
  51.             android:layout_width="160dp"
  52.             android:layout_height="160dp"
  53.             android:layout_margin="10dp">
  54.            
  55.  
Add Comment
Please, Sign In to add comment