Skip to content

Instantly share code, notes, and snippets.

View andrey-shikhov's full-sized avatar
💭
Knock, knock, Neo.

Andrew Shikhov andrey-shikhov

💭
Knock, knock, Neo.
View GitHub Profile
hello gist
string1
string2
string3
<com.google.android.flexbox.FlexboxLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:flexDirection="row"
android:background="#0c0">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#0c0">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="button1"
<!DOCTYPE html>
<html>
<head>
<style>
.flex-container {
display: -webkit-flex;
display: flex;
justify-content: center;
background-color: lightgrey;
}
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="#fff"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.google.android.flexbox.FlexboxLayout
android:layout_width="match_parent"
android:background="#ccc"
@andrey-shikhov
andrey-shikhov / css-flexbox.html
Created October 28, 2016 10:16
css flexbox center with margin right
<!DOCTYPE html>
<html>
<head>
<style>
.flex-container {
display: -webkit-flex;
-webkit-justify-content: center;
display: flex;
width: 100px;
height: 20px;