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
358b1a34
Commit
358b1a34
authored
Oct 27, 2019
by
Varun Patil
Committed by
GitHub
Oct 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #295 from unstablebrainiac/text-selection
Enable text selection on all main TextViews
parents
4552d0ec
ed01f499
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
47 deletions
+61
-47
app/src/main/res/layout/blog_post_card.xml
app/src/main/res/layout/blog_post_card.xml
+3
-1
app/src/main/res/layout/body_head_view.xml
app/src/main/res/layout/body_head_view.xml
+8
-5
app/src/main/res/layout/fragment_complaint_details.xml
app/src/main/res/layout/fragment_complaint_details.xml
+22
-19
app/src/main/res/layout/fragment_event.xml
app/src/main/res/layout/fragment_event.xml
+13
-13
app/src/main/res/layout/mess_menu_card.xml
app/src/main/res/layout/mess_menu_card.xml
+10
-6
app/src/main/res/layout/news_article_card.xml
app/src/main/res/layout/news_article_card.xml
+5
-3
No files found.
app/src/main/res/layout/blog_post_card.xml
View file @
358b1a34
...
...
@@ -11,6 +11,7 @@
android:layout_height=
"wrap_content"
android:fontFamily=
"sans-serif-light"
android:textColor=
"?attr/themeColorInverse"
android:textIsSelectable=
"true"
android:textSize=
"24sp"
/>
<TextView
...
...
@@ -24,5 +25,6 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"?attr/urlColor"
/>
android:textColorLink=
"?attr/urlColor"
android:textIsSelectable=
"true"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/body_head_view.xml
View file @
358b1a34
...
...
@@ -16,10 +16,10 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginBottom=
"12dp"
android:layout_marginEnd=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"12dp"
android:layout_marginEnd=
"16dp"
android:layout_marginBottom=
"12dp"
android:layout_weight=
"3"
android:orientation=
"vertical"
>
...
...
@@ -35,6 +35,7 @@
android:layout_weight=
"10"
android:text=
"Org Title"
android:textColor=
"@color/colorWhite"
android:textIsSelectable=
"true"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
...
...
@@ -66,7 +67,8 @@
android:id=
"@+id/body_subtitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/colorWhite"
/>
android:textColor=
"@color/colorWhite"
android:textIsSelectable=
"true"
/>
</LinearLayout>
</androidx.cardview.widget.CardView>
...
...
@@ -102,12 +104,13 @@
android:id=
"@+id/body_description"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"16dp"
android:layout_marginEnd=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"12dp"
android:layout_marginEnd=
"10dp"
android:layout_marginBottom=
"16dp"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"?attr/urlColor"
android:textIsSelectable=
"true"
android:textSize=
"16sp"
/>
</LinearLayout>
app/src/main/res/layout/fragment_complaint_details.xml
View file @
358b1a34
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/nestedScrollViewComplaintDetail"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@android:color/white"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
android:id=
"@+id/nestedScrollViewComplaintDetail"
>
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
...
...
@@ -26,7 +26,7 @@
<androidx.viewpager.widget.ViewPager
android:id=
"@+id/complaint_image_view_pager"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
<me.relex.circleindicator.CircleIndicator
android:id=
"@+id/indicator"
...
...
@@ -116,11 +116,11 @@
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"@color/colorPrimary"
/>
android:background=
"@color/colorPrimary"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"20dp"
/>
android:layout_height=
"20dp"
/>
<RelativeLayout
android:layout_width=
"match_parent"
...
...
@@ -131,20 +131,20 @@
style=
"@style/Widget.AppCompat.Button.Borderless"
android:layout_width=
"wrap_content"
android:layout_height=
"20dp"
android:src=
"@drawable/baseline_notifications_black_24"
android:visibility=
"visible"
android:layout_alignEnd=
"@id/complaint_details"
android:layout_alignParentTop=
"true"
/>
android:layout_alignParentTop=
"true"
android:src=
"@drawable/baseline_notifications_black_24"
android:visibility=
"visible"
/>
<ImageButton
android:id=
"@+id/buttonnotificationson"
style=
"@style/Widget.AppCompat.Button.Borderless"
android:layout_width=
"wrap_content"
android:layout_height=
"20dp"
android:src=
"@drawable/baseline_notifications_active_black_24"
android:visibility=
"gone"
android:layout_alignEnd=
"@id/complaint_details"
android:layout_alignParentTop=
"true"
/>
android:layout_alignParentTop=
"true"
android:src=
"@drawable/baseline_notifications_active_black_24"
android:visibility=
"gone"
/>
<LinearLayout
android:id=
"@+id/complaint_details"
...
...
@@ -159,7 +159,7 @@
android:text=
"Complaint:"
android:textColor=
"@android:color/black"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<View
android:layout_width=
"match_parent"
...
...
@@ -170,6 +170,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@android:color/black"
android:textIsSelectable=
"true"
android:textSize=
"16sp"
/>
<LinearLayout
...
...
@@ -190,7 +191,7 @@
android:text=
"Suggestions:"
android:textColor=
"@android:color/black"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<View
android:layout_width=
"match_parent"
...
...
@@ -201,6 +202,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@android:color/black"
android:textIsSelectable=
"true"
android:textSize=
"16sp"
/>
</LinearLayout>
...
...
@@ -223,7 +225,7 @@
android:text=
"Location Details:"
android:textColor=
"@android:color/black"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<View
android:layout_width=
"match_parent"
...
...
@@ -234,6 +236,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@android:color/black"
android:textIsSelectable=
"true"
android:textSize=
"16sp"
/>
</LinearLayout>
...
...
@@ -274,7 +277,7 @@
android:id=
"@+id/tags_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
/>
android:orientation=
"vertical"
/>
</LinearLayout>
...
...
@@ -344,9 +347,9 @@
android:id=
"@+id/up_vote_label"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:textColor=
"@android:color/black"
android:textSize=
"16sp"
android:layout_marginTop=
"8dp"
/>
android:textSize=
"16sp"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recyclerViewUpVotes"
...
...
@@ -358,11 +361,11 @@
android:id=
"@+id/buttonVoteUp"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_marginTop=
"8dp"
android:layout_weight=
"2"
android:background=
"@color/colorSecondary"
android:text=
"Upvote"
android:textColor=
"@color/secondaryTextColor"
android:layout_marginTop=
"8dp"
/>
android:textColor=
"@color/secondaryTextColor"
/>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_event.xml
View file @
358b1a34
...
...
@@ -2,16 +2,15 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/container_event"
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
"app.insti.fragment.EventFragment"
android:background=
"@android:color/transparent"
>
android:background=
"@android:color/transparent"
android:orientation=
"vertical"
tools:context=
"app.insti.fragment.EventFragment"
>
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id=
"@+id/coordinator"
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/coordinator"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
...
...
@@ -28,8 +27,8 @@
<!-- HEADER -->
<RelativeLayout
android:layout_height=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_collapseMode=
"parallax"
>
<ImageView
...
...
@@ -72,10 +71,10 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginBottom=
"12dp"
android:layout_marginEnd=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"12dp"
android:layout_marginEnd=
"16dp"
android:layout_marginBottom=
"12dp"
android:layout_weight=
"3"
android:orientation=
"vertical"
>
...
...
@@ -91,6 +90,7 @@
android:layout_weight=
"10"
android:text=
"Event Title"
android:textColor=
"@color/colorWhite"
android:textIsSelectable=
"true"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
...
...
@@ -191,19 +191,19 @@
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"#aaa"
>
</View>
android:background=
"#aaa"
/>
<TextView
android:id=
"@+id/event_page_description"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"16dp"
android:layout_marginEnd=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"12dp"
android:layout_marginEnd=
"10dp"
android:layout_marginBottom=
"16dp"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"?attr/urlColor"
android:textIsSelectable=
"true"
android:textSize=
"16sp"
/>
<androidx.recyclerview.widget.RecyclerView
...
...
app/src/main/res/layout/mess_menu_card.xml
View file @
358b1a34
...
...
@@ -3,10 +3,10 @@
xmlns:card_view=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"4dp"
android:layout_marginLeft=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginTop=
"4dp"
android:layout_marginRight=
"8dp"
android:layout_marginBottom=
"4dp"
card_view:cardCornerRadius=
"1dp"
card_view:cardElevation=
"1dp"
>
...
...
@@ -36,7 +36,8 @@
android:id=
"@+id/breakfast_text_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColor=
"?attr/themeColorInverse"
/>
android:textColor=
"?attr/themeColorInverse"
android:textIsSelectable=
"true"
/>
<TextView
android:layout_width=
"match_parent"
...
...
@@ -50,7 +51,8 @@
android:id=
"@+id/lunch_text_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColor=
"?attr/themeColorInverse"
/>
android:textColor=
"?attr/themeColorInverse"
android:textIsSelectable=
"true"
/>
<TextView
android:layout_width=
"match_parent"
...
...
@@ -64,7 +66,8 @@
android:id=
"@+id/snacks_text_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColor=
"?attr/themeColorInverse"
/>
android:textColor=
"?attr/themeColorInverse"
android:textIsSelectable=
"true"
/>
<TextView
android:layout_width=
"match_parent"
...
...
@@ -78,6 +81,7 @@
android:id=
"@+id/dinner_text_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColor=
"?attr/themeColorInverse"
/>
android:textColor=
"?attr/themeColorInverse"
android:textIsSelectable=
"true"
/>
</LinearLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
app/src/main/res/layout/news_article_card.xml
View file @
358b1a34
...
...
@@ -2,16 +2,17 @@
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:padding=
"16dp"
android:layout_margin=
"8dp"
android:background=
"?attr/newsColor"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
android:padding=
"16dp"
>
<TextView
android:id=
"@+id/article_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColor=
"?attr/themeColorInverse"
android:textIsSelectable=
"true"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
...
...
@@ -49,5 +50,6 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"?attr/urlColor"
/>
android:textColorLink=
"?attr/urlColor"
android:textIsSelectable=
"true"
/>
</LinearLayout>
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