Skip to content

Instantly share code, notes, and snippets.

View RajashekarRaju's full-sized avatar
🎯
Focusing

Raj RajashekarRaju

🎯
Focusing
View GitHub Profile
@RajashekarRaju
RajashekarRaju / SearchListData.kt
Last active December 28, 2021 07:48
Compose TextField in android.
fun actorsData(): List<Actors> {
val actorsList = ArrayList<Actors>()
data.forEach {
actorsList.add(Actors(it))
}
return actorsList
}
private val data = listOf(
@RajashekarRaju
RajashekarRaju / styles.xml
Created July 3, 2020 21:23
styles for SharedElementTransition app
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorSurface">@color/colorSurface</item>
<item name="colorSecondary">@color/colorSecondary</item>
<item name="android:colorBackground">@color/colorBackground</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
@RajashekarRaju
RajashekarRaju / colors.xml
Created July 3, 2020 21:22
colors for SharedElementTransition app
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#ffffff</color>
<color name="colorOnPrimary">#000000</color>
<color name="colorSecondary">#9e9e9e</color>
<color name="colorOnSecondary">#000000</color>
<color name="colorSurface">#ffffff</color>
<color name="coloOnSurface">#000000</color>
<color name="colorBackground">#ffffff</color>
<color name="colorOnBackground">#000000</color>
@RajashekarRaju
RajashekarRaju / strings.xml
Last active July 10, 2020 08:08
string resources for app list data
<resources>
<!-- Titles -->
<string name="title_rugby">Rugby</string>
<string name="title_cricket">Cricket</string>
<string name="title_basketball">Basketball</string>
<string name="title_hockey">Hockey</string>
<string name="title_volleyball">Volleyball</string>
<string name="title_esports">Esports</string>
<string name="title_kabbadi">Kabaddi</string>
@RajashekarRaju
RajashekarRaju / fragment_list.xml
Created July 3, 2020 18:04
Blank fragment layout
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
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=".ListFragment">
<TextView
android:layout_width="match_parent"
@RajashekarRaju
RajashekarRaju / ListFragment.kt
Created July 3, 2020 18:01
Blank fragment with layout
package com.developersbreach.myapplication
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**