How to implement map layout in android

I need map layout information with some simple example. I do not get any example. please help me thank you

+6
source share
2 answers

In addition to the libraries already offered, there is also an official CardView created by Google , which is available as part of the android.support.v7.widget library.

CardView extends the FrameLayout class and allows you to display information inside cards that have a consistent look in any application. CardView widgets can have shadows and rounded corners.

To use this layout, you must add the following line to build.gradle (at least if you are using Android Studio):

 dependencies { compile 'com.android.support:cardview-v7:+' } 

Subsequently, you can use it as follows:

 <android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" android:id="@+id/card_view" android:layout_gravity="center" android:layout_width="200dp" android:layout_height="200dp" card_view:cardCornerRadius="4dp"> <!-- Content --> </android.support.v7.widget.CardView> 
+12
source

There are two large libraries for Card layouts.

I suggest you download and install an Android app called DevAppsDirect , where you have many open source libarires available, and check how they look and what they do. You can test the first library there.

+7
source

Source: https://habr.com/ru/post/974290/


All Articles