title: Custom SearchBar Android
body: <p>I have been trying to achieve this type of <code>SearchBar</code>in my android app. <a href="https://i.stack.imgur.com/Qsoor.png" rel="nofollow noreferrer">search bar android</a><a href="https://i.stack.imgur.com/Qsoor.png" rel="nofollow noreferrer">2</a> I have tried a list of libraries but it didn't give me the expected result. 
  One of the libraries i found to be the closest was this one. <a href="https://github.com/mancj/MaterialSearchBar" rel="nofollow noreferrer">custom search bar by mancj</a>
  However, when i tried importing the dependency, (<code>implementation 'com.github.mancj:MaterialSearchBar:0.7.6'</code>) it gave me an error.</p>
  
  <p><strong>ERROR</strong></p>
  
  <pre><code>Could not find com.github.mancj:MaterialSearchBar:0.7.6.
  Searched in the following locations:
      file:/C:/Users/bnotion/AppData/Local/Android/Sdk/extras/m2repository/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.pom
      file:/C:/Users/bnotion/AppData/Local/Android/Sdk/extras/m2repository/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.jar
      file:/C:/Users/bnotion/AppData/Local/Android/Sdk/extras/google/m2repository/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.pom
      file:/C:/Users/bnotion/AppData/Local/Android/Sdk/extras/google/m2repository/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.jar
      file:/C:/Users/bnotion/AppData/Local/Android/Sdk/extras/android/m2repository/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.pom
      file:/C:/Users/bnotion/AppData/Local/Android/Sdk/extras/android/m2repository/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.jar
      https://dl.google.com/dl/android/maven2/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.pom
      https://dl.google.com/dl/android/maven2/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.jar
      https://jcenter.bintray.com/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.pom
      https://jcenter.bintray.com/com/github/mancj/MaterialSearchBar/0.7.6/MaterialSearchBar-0.7.6.jar
  Required by:
      project :app
  </code></pre>
  
  <p><strong>GRADLE (app level)</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 27
      defaultConfig {
          applicationId "com.example.app"
          minSdkVersion 16
          targetSdkVersion 27
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:27.1.1'
      implementation 'com.android.support.constraint:constraint-layout:1.1.2'
      implementation 'com.google.firebase:firebase-auth:15.0.0'
      implementation 'com.google.firebase:firebase-database:15.0.0'
      implementation 'com.google.firebase:firebase-messaging:15.0.2'
      testImplementation 'junit:junit:4.12'
      implementation 'com.github.mancj:MaterialSearchBar:0.7.6'
      implementation 'com.shobhitpuri.custombuttons:google-signin:1.0.0'
      implementation 'com.google.android.gms:play-services-auth:15.0.0'
      implementation 'com.android.support:design:27.1.1'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p><strong>GRADLE (project level)</strong></p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
  
      repositories {
          google()
          jcenter()
          maven { url "https://jitpack.io" }
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.1.2'
  
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
          classpath 'com.google.gms:google-services:3.3.0'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>I think there might be an issue with the library import. Is there a way to fix this? 
  I also want it that when it clicked, the search query gets activated. Any useful ideas would be appreciated.</p>