Skip to content

Instantly share code, notes, and snippets.

View dimasvm's full-sized avatar
🏠
Working from home

Dimas Maulana dimasvm

🏠
Working from home
View GitHub Profile
.inline {
color: cadetblue;
font-size: 12pt;
font-style: italic;
}
.box-margin {
width: 50%;
height: 100px;
background-color: green;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Belajar CSS</title>
<style>
h2 {
color: blueviolet;
@dimasvm
dimasvm / build.gradle
Created October 26, 2018 07:17
RecyclerView & CardView
dependencies {
// rest of code
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
}
@dimasvm
dimasvm / state_bnve.xml
Created October 25, 2018 06:44
BottomNavigationView
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@android:color/white" android:state_checked="true"/>
<item android:color="@color/colorPrimaryDark"/>
</selector>
@dimasvm
dimasvm / activity_main.xml
Created October 25, 2018 06:38
BottomNavigationView
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<!--Content Main-->
<FrameLayout
@dimasvm
dimasvm / AccountFragment.java
Created October 25, 2018 05:03
BottomNavigationView
public class AccountFragment extends Fragment {
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_account, container, false);
return view;
}
}
@dimasvm
dimasvm / FavoriteFragment.java
Created October 25, 2018 05:02
BottomNavigationView
public class FavoriteFragment extends Fragment {
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_favorite, container, false);
return view;
}
}
@dimasvm
dimasvm / SearchFragment.java
Created October 25, 2018 05:00
BottomNavigationView
public class SearchFragment extends Fragment {
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_search, container, false);
return view;
}
}
@dimasvm
dimasvm / HomeFragment.java
Created October 25, 2018 04:53
BottomNavigationView
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class HomeFragment extends Fragment {
@dimasvm
dimasvm / fragment_account.xml
Created October 25, 2018 04:48
BottomNavigationView
<?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="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/tv_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"