Panagiotis Triantafyllou

map marker view part1

......@@ -5,7 +5,7 @@ android.buildFeatures.buildConfig = true
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.5.6deh5'
PUBLISH_VERSION = '4.5.5.6deh6'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="2.5dp" />
<solid
android:width="0dp"
android:color="@color/custom_grey10" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/white"
android:paddingHorizontal="24dp"
android:paddingVertical="8dp">
<View
android:id="@+id/sheet_view"
android:layout_width="48dp"
android:layout_height="5dp"
android:layout_centerHorizontal="true"
android:background="@drawable/shape_rectangle_rounded_corners_grey" />
<ImageView
android:id="@+id/iv_map_pin_close"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:background="@drawable/shape_rectangle_rounded_grey"
android:padding="12dp"
android:src="@drawable/demo_close" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_map_pin_close">
<ImageView
android:id="@+id/iv_pin_logo"
android:layout_width="102dp"
android:layout_height="102dp"
android:scaleType="centerCrop"
android:background="@drawable/shape_rectangle_rounded_grey"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- <RelativeLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content">-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_toEndOf="@id/iv_pin_logo"-->
<!-- android:layout_toStartOf="@id/iv_map_pin_close"-->
<!-- android:layout_centerVertical="true"-->
<!-- android:orientation="vertical"-->
<!-- android:paddingStart="12dp"-->
<!-- android:paddingEnd="8dp">-->
<!-- <TextView-->
<!-- android:id="@+id/tv_pin_title"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:includeFontPadding="false"-->
<!-- android:textColor="@color/custom_black6"-->
<!-- android:textSize="16sp"-->
<!-- android:textStyle="bold" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_pin_name"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="2dp"-->
<!-- android:includeFontPadding="false"-->
<!-- android:textColor="@color/custom_grey3"-->
<!-- android:textSize="13sp" />-->
<!-- </LinearLayout>-->
<!-- </RelativeLayout>-->
<!-- <View-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="1dp"-->
<!-- android:layout_marginTop="16dp"-->
<!-- android:layout_marginBottom="16dp"-->
<!-- android:background="@color/custom_grey4" />-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:gravity="center_vertical"-->
<!-- android:orientation="horizontal">-->
<!-- <ImageView-->
<!-- android:layout_width="16dp"-->
<!-- android:layout_height="16dp"-->
<!-- android:src="@android:drawable/ic_dialog_map"-->
<!-- android:tint="@color/custom_grey3" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_pin_address"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="8dp"-->
<!-- android:layout_weight="1"-->
<!-- android:includeFontPadding="false"-->
<!-- android:textColor="@color/custom_grey3"-->
<!-- android:textSize="13sp" />-->
<!-- </LinearLayout>-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="8dp"-->
<!-- android:gravity="center_vertical"-->
<!-- android:orientation="horizontal">-->
<!-- <ImageView-->
<!-- android:layout_width="16dp"-->
<!-- android:layout_height="16dp"-->
<!-- android:src="@android:drawable/ic_menu_call"-->
<!-- android:tint="@color/custom_grey3" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_pin_tel"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="8dp"-->
<!-- android:layout_weight="1"-->
<!-- android:includeFontPadding="false"-->
<!-- android:textColor="@color/custom_grey3"-->
<!-- android:textSize="13sp" />-->
<!-- </LinearLayout>-->
<!-- <LinearLayout-->
<!-- android:id="@+id/ll_directions"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="48dp"-->
<!-- android:layout_marginTop="20dp"-->
<!-- android:background="@drawable/shape_rectangle_rounded_black2"-->
<!-- android:gravity="center"-->
<!-- android:orientation="horizontal">-->
<!-- <TextView-->
<!-- android:id="@+id/tv_directions"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:includeFontPadding="false"-->
<!-- android:text="@string/lbl_directions"-->
<!-- android:textColor="@color/white"-->
<!-- android:textSize="14sp" />-->
<!-- </LinearLayout>-->
</RelativeLayout>
......@@ -41,4 +41,5 @@
<color name="custom_yellow2">#FFEABA</color>
<color name="custom_gold">#573300</color>
<color name="custom_grey9">#ADB3B8</color>
<color name="custom_grey10">#ECEDEF</color>
</resources>
......
......@@ -41,4 +41,5 @@
<string name="demo_coupon_expired">Expired</string>
<string name="demo_partners_title">Partner businesses</string>
<string name="demo_search_title">Αναζήτηση</string>
<string name="lbl_directions">Οδηγίες</string>
</resources>
......
......@@ -30,4 +30,21 @@
<style name="progressBarBlue" parent="@style/Theme.AppCompat">
<item name="colorAccent">@color/custom_light_blue</item>
</style>
<style name="BottomSheetDialog" parent="Theme.MaterialComponents.Light.BottomSheetDialog">
<item name="android:windowIsFloating">false</item>
<item name="bottomSheetStyle">@style/BottomSheetStyle</item>
</style>
<style name="BottomSheetStyle" parent="Widget.MaterialComponents.BottomSheet.Modal">
<item name="shapeAppearanceOverlay">@style/BottomSheetShapeAppearance</item>
</style>
<style name="BottomSheetShapeAppearance" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSizeTopLeft">16dp</item>
<item name="cornerSizeTopRight">16dp</item>
<item name="cornerSizeBottomLeft">0dp</item>
<item name="cornerSizeBottomRight">0dp</item>
</style>
</resources>
......