Getting started:
Related tutorials:
| package dd.com.myq.Fragment; | |
| import android.app.AlertDialog; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.net.Uri; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.app.Fragment; |
| package com.appsomniac.swagger.data.adapter; | |
| import android.app.Activity; | |
| import android.app.Fragment; | |
| import android.app.FragmentManager; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.support.v4.app.FragmentActivity; | |
| import android.support.v4.app.FragmentTransaction; | |
| import android.support.v7.widget.RecyclerView; |
| package com.example.absolutelysaurabh.perbmember.MealsData | |
| import android.annotation.SuppressLint | |
| import android.content.Context | |
| import android.support.v7.widget.RecyclerView | |
| import android.util.Log | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import android.widget.EditText |
Getting started:
Related tutorials:
| //db.go | |
| SELECT_DISTINCT_MASTER_TYPES = "select distinct master_type from master_types" | |
| //admin.go | |
| master_type := Admin.AddResource(&models.MasterType{}, &admin.Config{ | |
| Permission: configuration.GetPermission(C.MODEL_MASTER_TYPE), | |
| PageCount: C.PAGE_COUNT}) | |
| master_type.Meta(&admin.Meta{ | |
| Name: "Master_Type", |
| //admin | |
| booking.Filter(&admin.Filter{ | |
| Label: "Created At", | |
| Name: "CreatedAt", | |
| Type: "datetime", | |
| Handler: func(db *gorm.DB, argument *admin.FilterArgument) *gorm.DB { | |
| startDate := argument.Value.Get("Start").Value | |
| endDate := argument.Value.Get("End").Value |
| Handler: func(db *gorm.DB, argument *admin.FilterArgument) *gorm.DB { | |
| startDate := argument.Value.Get("Start").Value | |
| endDate := argument.Value.Get("End").Value | |
| startDateTime, _ := time.Parse(C.DATE_YYYY_MM_DD_HH_MM, utils.ToString(startDate)) | |
| endDateTime, _ := time.Parse(C.DATE_YYYY_MM_DD_HH_MM, utils.ToString(endDate)) | |
| diffStartEnd := startDateTime.Sub(Date(endDateTime.Year(), endDateTime.Month(), endDateTime.Day(), endDateTime.Hour(), endDateTime.Minute())).Hours() / 24 | |
| log.Printf("diffStartEnd: %f", diffStartEnd) | |
| if diffStartEnd < 0 { |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |