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
2968706c
Commit
2968706c
authored
Mar 17, 2018
by
Owais Chunawala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added cardview to feedUI
parent
7d3f6359
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
16 deletions
+30
-16
.idea/misc.xml
.idea/misc.xml
+1
-1
app/build.gradle
app/build.gradle
+3
-1
app/src/main/res/layout/feed_card.xml
app/src/main/res/layout/feed_card.xml
+23
-14
build.gradle
build.gradle
+3
-0
No files found.
.idea/misc.xml
View file @
2968706c
...
...
@@ -24,7 +24,7 @@
</value>
</option>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
app/build.gradle
View file @
2968706c
...
...
@@ -57,6 +57,8 @@ dependencies {
compile
"android.arch.persistence.room:runtime:${archRoomVersion}"
annotationProcessor
"android.arch.persistence.room:compiler:${archRoomVersion}"
compile
'de.hdodenhof:circleimageview:2.2.0'
implementation
"com.android.support:cardview-v7:${supportLibVersion}"
}
apply
plugin:
'com.google.gms.google-services'
app/src/main/res/layout/feed_card.xml
View file @
2968706c
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<android.support.v7.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:card_view=
"http://schemas.android.com/apk/res-auto"
android:layout_height=
"wrap_content"
android:layout_width=
"match_parent"
card_view:cardElevation=
"4dp"
card_view:cardCornerRadius=
"4dp"
android:layout_marginTop=
"2dp"
android:layout_marginBottom=
"2dp"
android:layout_marginRight=
"8dp"
android:layout_marginLeft=
"8dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"80dp"
android:orientation=
"horizontal"
android:layout_marginBottom=
"12dp"
android:layout_marginTop=
"12dp"
>
android:orientation=
"horizontal"
>
<ImageView
android:id=
"@+id/event_picture"
android:layout_width=
"80dp"
android:layout_height=
"80dp"
android:layout_gravity=
"center"
android:scaleType=
"centerCrop"
android:layout_marginLeft=
"12dp"
/>
android:scaleType=
"centerCrop"
/>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -79,12 +87,13 @@
<!--android:layout_gravity="center_vertical"/>-->
</LinearLayout>
<
View
android:layout_width=
"match_parent"
android:layout_height=
"2dp"
android:background=
"#adfff6"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
>
<
!--<View-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="2dp"-->
<!--android:background="#adfff6"-->
<!--android:layout_marginLeft="16dp"-->
<!--android:layout_marginRight="16dp">--
>
</View>
</LinearLayout>
\ No newline at end of file
<!--</View>-->
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
build.gradle
View file @
2968706c
...
...
@@ -5,11 +5,13 @@ buildscript {
repositories
{
maven
{
url
'https://maven.google.com'
}
jcenter
()
google
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.0.1'
classpath
'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
...
...
@@ -19,6 +21,7 @@ allprojects {
repositories
{
jcenter
()
maven
{
url
'https://maven.google.com'
}
google
()
}
}
...
...
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