Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
d991209e
Commit
d991209e
authored
Sep 11, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
viewholder for feed
parent
6ff98096
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
107 additions
and
10 deletions
+107
-10
bell_switcher.xml
app/src/main/res/drawable/bell_switcher.xml
+0
-5
new_feed_icon.xml
app/src/main/res/drawable/new_feed_icon.xml
+25
-0
feed_viewholder.xml
app/src/main/res/layout/feed_viewholder.xml
+65
-0
feeds_block_view.xml
app/src/main/res/layout/feeds_block_view.xml
+6
-5
horizontal_divider.xml
app/src/main/res/layout/horizontal_divider.xml
+9
-0
colors.xml
app/src/main/res/values/colors.xml
+2
-0
No files found.
app/src/main/res/drawable/bell_switcher.xml
View file @
d991209e
...
...
@@ -3,7 +3,6 @@
<item
android:state_enabled=
"false"
android:width=
"24dp"
android:height=
"24dp"
>
<shape
android:shape=
"oval"
>
<size
android:width=
"24dp"
android:height=
"24dp"
/>
<stroke
android:width=
"2dp"
...
...
@@ -13,14 +12,11 @@
android:top=
"0dp"
android:right=
"0dp"
android:bottom=
"0dp"
/>
</shape>
</item>
<item
android:state_checked=
"true"
android:width=
"24dp"
android:height=
"24dp"
>
<shape
android:shape=
"oval"
>
<size
android:width=
"24dp"
android:height=
"24dp"
/>
<stroke
android:width=
"2dp"
...
...
@@ -29,7 +25,6 @@
</item>
<item>
<shape
android:shape=
"oval"
>
<size
android:width=
"24dp"
android:height=
"24dp"
/>
<stroke
android:width=
"2dp"
...
...
app/src/main/res/drawable/new_feed_icon.xml
0 → 100644
View file @
d991209e
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:state_enabled=
"false"
android:width=
"8dp"
android:height=
"8dp"
>
<shape
android:shape=
"oval"
>
<size
android:width=
"8dp"
android:height=
"8dp"
/>
<solid
android:color=
"@color/colorAccentSecondary"
/>
</shape>
</item>
<item
android:state_checked=
"true"
android:width=
"8dp"
android:height=
"8dp"
>
<shape
android:shape=
"oval"
>
<size
android:width=
"8dp"
android:height=
"8dp"
/>
<solid
android:color=
"@color/colorAccent"
/>
</shape>
</item>
<item
android:width=
"8dp"
android:height=
"8dp"
>
<shape
android:shape=
"oval"
>
<size
android:width=
"8dp"
android:height=
"8dp"
/>
<solid
android:color=
"@color/colorGray"
/>
</shape>
</item>
</selector>
\ No newline at end of file
app/src/main/res/layout/feed_viewholder.xml
0 → 100644
View file @
d991209e
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/linearLayout3"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:background=
"@color/colorFeedViewHolderBackground"
android:orientation=
"vertical"
android:paddingEnd=
"128dp"
>
<com.biganto.visual.roompark.view_utils.image_view.RoundedImageView
android:id=
"@+id/imageHolder"
android:layout_width=
"60dp"
android:layout_height=
"60dp"
android:background=
"@color/colorAccentSecondary"
app:image_corner_radius=
"4dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@drawable/ic_favorites"
/>
<androidx.constraintlayout.widget.Guideline
android:id=
"@+id/guideline"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
app:layout_constraintGuide_begin=
"76dp"
/>
<FrameLayout
android:id=
"@+id/frameLayout"
android:layout_width=
"8dp"
android:layout_height=
"8dp"
android:layout_marginTop=
"2dp"
android:background=
"@drawable/new_feed_icon"
android:visibility=
"visible"
app:layout_constraintStart_toStartOf=
"@+id/guideline"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/feed_date_text_view"
style=
"@style/Feed.Notice"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:includeFontPadding=
"false"
android:text=
"22 / 02 / 2019"
android:visibility=
"visible"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"@+id/guideline"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
style=
"@style/Feed.Description"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:maxLines=
"3"
android:text=
"В «РУМЯНЦЕВО-ПАРК» ПРИСТУПИЛИ К МОНТАЖУ ОКОННЫХ БЛОКОВ"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"@+id/guideline"
app:layout_constraintTop_toBottomOf=
"@+id/feed_date_text_view"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
app/src/main/res/layout/feeds_block_view.xml
View file @
d991209e
...
...
@@ -6,7 +6,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"448dp"
android:background=
"@drawable/gradient_background_accent"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
android:paddingStart=
"16dp"
>
<androidx.viewpager.widget.ViewPager
android:id=
"@+id/viewPager"
...
...
@@ -15,13 +16,13 @@
app:layout_constraintBottom_toTopOf=
"@+id/feeds_divider"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
</androidx.viewpager.widget.ViewPager>
app:layout_constraintTop_toTopOf=
"parent"
></androidx.viewpager.widget.ViewPager>
<
ImageView
<
include
android:id=
"@+id/feeds_divider"
layout=
"@layout/horizontal_divider"
android:layout_width=
"match_parent"
android:layout_height=
"1
0
dp"
android:layout_height=
"1dp"
android:background=
"@drawable/botttom_bar_shadow"
app:layout_constraintBottom_toTopOf=
"@+id/textView4"
/>
...
...
app/src/main/res/layout/horizontal_divider.xml
0 → 100644
View file @
d991209e
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
android:id=
"@+id/frameDivider"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"@color/colorOpacityBackgroundInv"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
</FrameLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
d991209e
...
...
@@ -31,4 +31,6 @@
<color
name=
"colorInvertedNoticeText"
>
#A1FFFFFF
</color>
//endregion
<color
name=
"colorFeedViewHolderBackground"
>
#00000000
</color>
</resources>
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