![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LinearLayout
1°叁柒
今天的努力就是明天的希望
展开
-
android 按下LinearLayout改变背景,并且使其子元素相应改变,如ImageView、TextView
国际惯例,先上图<LinearLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:layout_margin="6dp" android:paddingTop="@dimen/heigh_30" android:background="@drawable/ic_check_main"原创 2020-11-20 17:11:57 · 407 阅读 · 0 评论 -
Android 在指定 LinearLayout 中动态添加BUTTON,并设置样式
LinearLayout layout = new LinearLayout(this); layout.setOrientation(LinearLayout.VERTICAL); ViewGroup.LayoutParams lp2 = new ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.Lay.原创 2020-09-14 10:56:26 · 1191 阅读 · 0 评论 -
Android LinearLayout 点击时改变背景图片
改变背景图片的ic_click_ico.xml<?xml version="1.0" encoding="UTF-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:drawable="@drawable/img_check"/> <item android:st原创 2020-08-14 10:43:25 · 923 阅读 · 0 评论