Skip to content
Permalink
Browse files

style changes to support darkmode

  • Loading branch information...
FirzenYogesh committed Aug 18, 2019
1 parent ce0fec2 commit 0f104cdbcf7e346f9a39b79cde70d4cb5b83e4fd
@@ -12,6 +12,7 @@ android {
targetSdkVersion 29
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
@@ -32,7 +33,8 @@ dependencies {
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'yogesh.firzen:MukkiyaSevaigal:3.0.4'
implementation 'yogesh.firzen:MukkiyaSevaigal:3.0.8'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
}


@@ -1,31 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:theme="@style/FileListerItemColor">

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="5dp">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon"
android:layout_width="48dp"
android:layout_height="48dp"
app:srcCompat="@drawable/ic_folder_black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:id="@+id/icon"
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/ic_folder_black" />

<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginStart="20dp"
android:layout_weight="0.9"
android:gravity="center_vertical"
android:text="Folder"
android:textSize="15sp" />
</LinearLayout>
</RelativeLayout>
<TextView
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginStart="20dp"
android:layout_marginLeft="20dp"
android:gravity="center_vertical"
android:text="Folder"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/icon"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -3,7 +3,6 @@
<!-- Base application theme. -->

<style name="FileListerItemColor">
<item name="android:textColor">#212121</item>
<item name="android:tint">#4CAF50</item>
</style>

@@ -9,8 +9,8 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

0 comments on commit 0f104cd

Please sign in to comment.
You can’t perform that action at this time.