how to design form like google calender event in android? [closed]

You can achieve that by using PercentageRelativeLayout. Try this XML code: <?xml version=”1.0″ encoding=”utf-8″?> <android.support.percent.PercentRelativeLayout 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:orientation=”vertical” android:layout_width=”match_parent” android:layout_height=”match_parent” android:padding=”20dp” android:layout_margin=”10dp”> <android.support.percent.PercentRelativeLayout android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:id=”@+id/from_layout” android:layout_margin=”5dp”> <TextView android:text=”FROM” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:id=”@+id/textView8″ android:textSize=”24sp” style=”@android:style/Widget.DeviceDefault.Light.TextView” /> <Spinner app:layout_widthPercent=”60%” android:layout_height=”wrap_content” android:id=”@+id/spinner2″ android:layout_below=”@+id/textView8″ android:spinnerMode=”dialog” style=”@style/Platform.Widget.AppCompat.Spinner” /> <Spinner app:layout_widthPercent=”40%” android:layout_height=”wrap_content” android:id=”@+id/spinner4″ android:layout_toRightOf=”@+id/spinner2″ android:gravity=”start” android:layout_below=”@+id/textView8″ android:spinnerMode=”dialog” style=”@style/Platform.Widget.AppCompat.Spinner” /> </android.support.percent.PercentRelativeLayout> … Read more

Can anyone solve my Android Fragment issue? [closed]

Try this package com.example.myfragments; import android.os.Bundle; import android.app.Activity; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.res.Configuration; import android.view.WindowManager; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Configuration config = getResources().getConfiguration(); FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); /** * Check the device orientation and act accordingly */ if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) … Read more

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.