Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
fb85385f
Commit
fb85385f
authored
Feb 06, 2019
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dark theme to complaints
parent
6f6736df
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
19 deletions
+23
-19
app/src/main/res/layout/complaint_card.xml
app/src/main/res/layout/complaint_card.xml
+18
-14
app/src/main/res/layout/fragment_complaints.xml
app/src/main/res/layout/fragment_complaints.xml
+1
-1
app/src/main/res/layout/fragment_complaints_home.xml
app/src/main/res/layout/fragment_complaints_home.xml
+2
-2
app/src/main/res/layout/fragment_complaints_me.xml
app/src/main/res/layout/fragment_complaints_me.xml
+2
-2
No files found.
app/src/main/res/layout/complaint_card.xml
View file @
fb85385f
...
...
@@ -7,9 +7,9 @@
android:layout_alignParentRight=
"true"
android:layout_gravity=
"center"
android:layout_margin=
"5dp"
card_view:cardBackgroundColor=
"
@color/colorWhite
"
card_view:cardBackgroundColor=
"
?attr/themeColor
"
card_view:cardCornerRadius=
"0dp"
card_view:cardElevation=
"
5
dp"
card_view:cardElevation=
"
1
dp"
card_view:cardUseCompatPadding=
"true"
>
<LinearLayout
...
...
@@ -39,7 +39,7 @@
android:layout_height=
"wrap_content"
android:layout_weight=
"2"
android:text=
"User"
android:textColor=
"
@android:color/black
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
...
...
@@ -48,7 +48,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"report date"
android:textColor=
"
@color/color
Gray"
android:textColor=
"
?attr/theme
Gray"
android:textSize=
"14sp"
/>
<TextView
...
...
@@ -56,7 +56,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"location"
android:textColor=
"
@color/color
Gray"
android:textColor=
"
?attr/theme
Gray"
android:textSize=
"14sp"
/>
</LinearLayout>
...
...
@@ -67,7 +67,7 @@
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"10dp"
android:text=
"status"
android:textColor=
"
@android:color/black
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"16sp"
android:textStyle=
"bold"
android:background=
"@drawable/customborder"
/>
...
...
@@ -93,7 +93,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Complaint:"
android:textColor=
"
@android:color/black
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
...
...
@@ -105,7 +105,7 @@
android:id=
"@+id/textViewDescription"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"
@android:color/black
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"16sp"
/>
<LinearLayout
...
...
@@ -124,7 +124,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Suggestions:"
android:textColor=
"
@android:color/black
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
...
...
@@ -136,7 +136,7 @@
android:id=
"@+id/textViewSuggestions"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"
@android:color/black
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"16sp"
/>
</LinearLayout>
...
...
@@ -157,7 +157,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Location Details:"
android:textColor=
"
@android:color/black
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
...
...
@@ -169,7 +169,7 @@
android:id=
"@+id/textViewLocationDetails"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"
@android:color/black
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"16sp"
/>
</LinearLayout>
...
...
@@ -205,6 +205,7 @@
android:layout_width=
"10dp"
android:layout_height=
"40dp"
android:layout_weight=
"1"
android:tint=
"?attr/themeGray"
android:src=
"@drawable/baseline_arrow_upward_24"
/>
<TextView
...
...
@@ -214,7 +215,7 @@
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:text=
"23"
android:textColor=
"
@color/secondaryTextColor
"
/>
android:textColor=
"
?attr/themeColorInverse
"
/>
</LinearLayout>
...
...
@@ -230,6 +231,7 @@
android:layout_width=
"10dp"
android:layout_height=
"40dp"
android:layout_weight=
"1"
android:tint=
"?attr/themeGray"
android:src=
"@drawable/baseline_comment_24"
/>
<TextView
...
...
@@ -237,7 +239,7 @@
android:layout_width=
"20dp"
android:layout_height=
"match_parent"
android:gravity=
"center_vertical"
android:textColor=
"
@color/secondaryTextColor
"
android:textColor=
"
?attr/themeColorInverse
"
android:layout_weight=
"1"
android:text=
"12"
/>
</LinearLayout>
...
...
@@ -254,6 +256,7 @@
android:layout_width=
"10dp"
android:layout_height=
"40dp"
android:visibility=
"visible"
android:tint=
"?attr/themeGray"
android:layout_weight=
"1"
android:src=
"@drawable/baseline_notifications_black_24"
/>
...
...
@@ -264,6 +267,7 @@
android:layout_height=
"40dp"
android:visibility=
"gone"
android:layout_weight=
"1"
android:tint=
"?attr/themeGray"
android:src=
"@drawable/baseline_notifications_active_black_24"
/>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_complaints.xml
View file @
fb85385f
...
...
@@ -80,7 +80,7 @@
android:layout_gravity=
"bottom"
app:tabIndicatorColor=
"@color/colorAccent"
style=
"@style/CustomTabLayout"
android:background=
"
?att
r/colorPrimary"
/>
android:background=
"
@colo
r/colorPrimary"
/>
</android.support.design.widget.AppBarLayout>
...
...
app/src/main/res/layout/fragment_complaints_home.xml
View file @
fb85385f
...
...
@@ -8,7 +8,7 @@
android:id=
"@+id/main_content"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"
#ededed
"
>
android:background=
"
?attr/themeColor
"
>
<TextView
android:id=
"@+id/error_message_home"
...
...
@@ -16,7 +16,7 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal|center_vertical"
android:text=
"@string/error_message"
android:textColor=
"
@color/secondaryTextColor
"
android:textColor=
"
?attr/themeColorInverse
"
android:visibility=
"invisible"
/>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
...
...
app/src/main/res/layout/fragment_complaints_me.xml
View file @
fb85385f
...
...
@@ -10,7 +10,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:background=
"
#ededed
"
>
android:background=
"
?attr/themeColor
"
>
<TextView
android:id=
"@+id/error_message_me"
...
...
@@ -18,7 +18,7 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal|center_vertical"
android:text=
"@string/error_message"
android:textColor=
"
@color/secondaryTextColor
"
android:textColor=
"
?attr/themeColorInverse
"
android:visibility=
"gone"
/>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment