Drawable shape like this one

Try this : <?xml version=”1.0″ encoding=”utf-8″?> <layer-list xmlns:android=”http://schemas.android.com/apk/res/android” > <item android:bottom=”3dp” android:left=”-22dp” android:right=”3dp” android:top=”3dp”> <shape android:shape=”rectangle”> <solid android:color=”@color/transperent” /> <stroke android:width=”2dp” android:color=”@color/black” /> </shape> </item> </layer-list>

What is the difference between Android Material Design UI and Android UI without material design?

You simply have to provide UI which fits the suggestions and rules from https://material.io/guidelines/ That resource does describe, for example, minimum sizes for UI elements, padding, margin, etc. For the newest SDK versions of android most of these rules are already applied into default ui elements in Android Studio.

call method every 15 minutes [closed]

You are already requesting location updates from the system, just increase the time of the frequency from 100 milliseconds to 15 mintutes. Change this line: locationManager.requestLocationUpdates(locationProvider,100,100, new MajListener()); to this: locationManager.requestLocationUpdates(locationProvider,(15 * 60 * 1000),100, new MajListener()); Note also that since you are inside of an Activity you are going to stop getting callbacks when … Read more

Rectangle at the bottom of the activity

Use that Layout: <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”match_parent” android:layout_height=”match_parent”> <LinearLayout android:orientation=”vertical” android:layout_width=”match_parent” android:layout_height=”0dp” android:layout_weight=”0.90″> </LinearLayout> <LinearLayout android:orientation=”vertical” android:layout_width=”match_parent” android:layout_height=”0dp” android:layout_weight=”0.10″ android:background=”#ffFF9800″ android:layout_gravity=”center_vertical”> <LinearLayout android:orientation=”horizontal” android:layout_width=”wrap_content” android:layout_height=”match_parent” android:layout_gravity=”right” android:layout_marginRight=”20dp”> <TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”LOG IN >” android:id=”@+id/textView76″ android:textSize=”20sp” android:textColor=”#fff” android:layout_gravity=”center_vertical”/> </LinearLayout> </LinearLayout> </LinearLayout>

get Feature item to list View

while fetching the data from database give the respective column as order by desc. for example sql = “SELECT * FROM “+Database.tblname+” WHERE ORDER BY “+Database.clcolumnid+” ASC”; SQLiteDatabase sqlite = dbObject.getWritableDatabase(); Cursor cursor = sqlite.rawQuery(sql, null);