Skip to content

Instantly share code, notes, and snippets.

View navinkumar0118's full-sized avatar

Navinkumar navinkumar0118

  • Chennai
View GitHub Profile
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
// Define versions in a single place
ext {
// Sdk and tools
compileSdkVersion = 32
minSdkVersion = 21
targetSdkVersion = 31
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'dagger.hilt.android.plugin' //hilt
id 'kotlin-kapt'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
// id 'com.google.gms.google-services'
// id 'com.google.firebase.crashlytics'
}
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid
android:color="@color/green">
</solid>
<corners
android:radius="5dp">
</corners>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<shape
android:shape="rectangle">
<solid android:color="@color/ash" />
<corners android:radius="2dp"/>
</shape>
</item>
<item android:top="1dp" android:right="1dp" android:left="1dp" android:bottom="1dp">
package com.navinprojects.myapplication;
import java.util.Date;
public class FirebaseMessage {
private String messageText;
private String messageUser;
private long messageTime;
package com.navinprojects.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.format.DateFormat;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import com.firebase.ui.database.FirebaseListAdapter;
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:orientation="vertical">
<ImageView
android:id="@+id/user_icon"
android:layout_width="24dp"
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".GroupChatActivity">
<ListView
android:id="@+id/list_of_messages"
android:layout_width="match_parent"
FirebaseAuth.getInstance().signOut();
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#ffc107</color>
<color name="colorPrimaryDark">#ffa000</color>
<color name="colorAccent">#D81B60</color>
</resources>