We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//单列总布局 likeAll = new LinearLayout(getContext()); disAll = new LinearLayout(getContext()); likeAll.setOrientation(VERTICAL); disAll.setOrientation(VERTICAL); likeAll.setGravity(Gravity.CENTER_HORIZONTAL); disAll.setGravity(Gravity.CENTER_HORIZONTAL); likeAll.setBackgroundColor(Color.TRANSPARENT); disAll.setBackgroundColor(Color.TRANSPARENT); //添加文字图片放进一列 LayoutParams params = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); params.setMargins(0, 10, 0, 0); params.gravity = Gravity.CENTER; disAll.setGravity(Gravity.CENTER_HORIZONTAL); //1 likeAll.setGravity(Gravity.RIGHT); //2 这两句,为什么重新定义布局?
//编译出来之后的效果,好像对布局没影响?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
//编译出来之后的效果,好像对布局没影响?
The text was updated successfully, but these errors were encountered: