Skip to content

Instantly share code, notes, and snippets.

Method rMethod = sup3.getMethod("setRequestedOrientation", Integer.TYPE);
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<EditText
android:id="@+id/et_password"
android:layout_width="556px"
android:layout_height="99px"
android:layout_gravity="center"
android:layout_marginTop="40px"
1. commit
a. git status //confirm all modifys
b1. git add //if you can confirm that there is not conflict , just add all necessary files
b2. git stash // if you can't confirm any conflict
c1. git commit -m " some comment "
c2. git pull // get all newest files
d2. git stash apply //confirm if conflict
e2. git commit -m " some comment"
f1. git push
f2. git push
@JerryCui
JerryCui / gist:d9b32c7aae81b22589be308529ad5f88
Created May 28, 2018 12:00
Could not find com.android.tools.build:gradle:3.0.0
in build.gradle file, at the buildscripts, make google() before jcenter()
android studio gradle's proxy setting:
Only add below two lines in the file: gradle.property
systemProp.socks.proxyHost=127.0.0.1
systemProp.socks.proxyPort=1080
@JerryCui
JerryCui / git proxy settings
Last active August 9, 2018 12:54
git proxy settings
1. Basic:
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
2. socks: